Commit graph

168 commits

Author SHA1 Message Date
TheFlow
28eb2ea624 chore: bump cache version for deployment 2025-10-26 15:47:47 +13:00
TheFlow
2273db7acf chore: bump cache version for deployment 2025-10-26 14:53:45 +13:00
TheFlow
42c3de76f3 chore: bump cache version for deployment 2025-10-26 14:52:38 +13:00
TheFlow
95262b1244 chore: bump cache version for deployment 2025-10-26 14:51:07 +13:00
TheFlow
f0df8434f2 chore: bump cache version for deployment 2025-10-26 14:44:41 +13:00
TheFlow
3e91e34312 chore: bump cache version for deployment 2025-10-26 13:46:34 +13:00
TheFlow
7e4fb44829 chore: bump cache version for deployment 2025-10-26 13:24:15 +13:00
TheFlow
4895c4c3e2 chore: bump cache version for deployment 2025-10-26 13:21:22 +13:00
TheFlow
8b3b37bdee chore: bump cache version for deployment 2025-10-26 13:16:00 +13:00
TheFlow
e0bea7c893 chore: bump cache version for deployment 2025-10-26 12:24:05 +13:00
TheFlow
242bd8575c chore: bump cache version for deployment 2025-10-26 12:19:42 +13:00
TheFlow
5e3c7308cd chore: bump cache version for deployment 2025-10-26 12:18:58 +13:00
TheFlow
6cd7a6d40c chore: bump cache version for deployment 2025-10-26 11:04:37 +13:00
TheFlow
63fd753622 fix(docs): card overflow, sequencing, colour legend, and category fixes
Fixed multiple issues with the docs page card-based document view:

**Card Overflow Fixed:**
- Added overflow-x-hidden to #document-content container
- Added w-full max-w-full to card-grid-container
- Added w-full to grid itself
- Added max-w-full overflow-hidden to individual cards
- Cards now stay within container boundaries at all viewport sizes

**Long Title Wrapping:**
- Added insertSoftHyphens() method to break CamelCase words
- Inserts soft hyphens (­) before capitals in compound words
- Examples: "InstructionPersistenceClassifier" → "Instruction­Persistence­Classifier"
- Titles now wrap intelligently without being cut off

**Colour Legend (Option C):**
- Added toggle button (ℹ️) next to ToC and PDF buttons
- Popup shows all 5 colour codes with descriptions
- Translated to EN ("Colour Guide"), DE ("Farbcode"), FR ("Guide des couleurs")
- Fixed colour square visibility (bg-500 with borders instead of bg-400)
- Click outside to close functionality

**Card Sequencing:**
- Cards now display in original markdown document order
- Removed groupByCategory() grouping logic
- Removed category header sections
- Color coding preserved based on section category

**Category Fallback Bug:**
- Fixed invalid fallback category 'downloads-resources' → 'resources'
- Ensures uncategorized documents go to valid category

**Database Migration:**
- Added scripts/move-guides-to-resources.js
- Moved 3 implementation guides from getting-started to resources
- Getting Started now contains only: Introduction, Core Concepts
- Resources now contains: Implementation guides

**Result:**
 Cards respect container width (no overflow)
 Long titles wrap with hyphens (no cutoff)
 Colour legend accessible and translated
 Cards in logical reading order from markdown
 Implementation guides in correct category

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-26 11:03:23 +13:00
TheFlow
0c4c978dcd chore: bump cache version for deployment 2025-10-26 10:26:33 +13:00
TheFlow
7549ee43a6 chore: bump cache version for deployment 2025-10-26 10:11:06 +13:00
TheFlow
325aaa509b fix(docs): resolve language persistence and duplicate selector issues
Fixed three P0 bugs preventing language selection from persisting:

1. **Removed duplicate language selector** (docs.html:499-508)
   - Page had both navbar flags AND dropdown selector
   - Caused UX confusion (two selectors, no sync)
   - Now uses navbar flags only (consistent with site)

2. **Fixed localStorage key mismatch** (docs-app.js:207)
   - i18n-simple.js used 'tractatus-lang'
   - docs-app.js used 'tractatus_language' (underscore)
   - Unified to 'tractatus-lang' for persistence

3. **Removed dead code** (docs-app.js:836-871)
   - initLanguageSelector() expected removed dropdown
   - Caused potential JS errors
   - Navbar language-selector.js now handles all switching

**Result:**
-  Single language selector (navbar flags)
-  Language persists across page reloads
-  No JavaScript errors
-  Ready for Caixin Global launch (Oct 29)

**Version:** 0.1.2 → 0.1.3 (service worker cache bust)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-26 10:09:42 +13:00
TheFlow
fadee8929b chore: bump cache version for deployment 2025-10-26 02:21:25 +13:00
TheFlow
a608b838f5 feat(i18n): add language selector UI to docs page
Added interactive language switcher dropdown to make translations accessible:

UI Changes:
- Added language selector dropdown to docs.html header
- Flag emojis + language names (🇬🇧 English, 🇩🇪 Deutsch, 🇫🇷 Français)
- Positioned next to search button in page header

Functionality:
- Detect language from URL param, localStorage, or default to English
- Save language choice to localStorage for persistence
- Auto-reload document when language changes
- Update URL with ?lang= parameter
- Preserves selected document when switching languages

Implementation:
- Enhanced detectLanguage() to check URL > localStorage > i18n > default
- Added initLanguageSelector() IIFE to wire up dropdown
- Dropdown reflects current language on page load

User Experience:
- One-click language switching
- Language persists across page reloads
- Seamless document reload in new language
- URL updates to reflect language choice

🌐 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-26 02:02:48 +13:00
TheFlow
be53ab36f8 fix(security): secure archived documents endpoint and reorganize docs UI
Security:
- Add authentication to /api/documents/archived endpoint (admin-only)
- Prevent public exposure of 108 archived/internal documents

Documentation UI:
- Remove duplicate hardcoded Resources section from docs.html
- Add Resources category to docs-app.js for implementation guides
- Move 3 implementation guides from Getting Started to Resources
- Move Glossary from Technical Reference to Getting Started
- Set Research & Theory section to collapsed by default
- Update service worker cache version to 0.1.4

Migration Scripts:
- Add scripts for document category reorganization
- Add scripts for research document migration to production
- Add scripts for glossary verification and comparison

Files changed:
- public/docs.html: Remove duplicate Resources section
- public/js/docs-app.js: Add Resources category, collapse Research
- public/service-worker.js: Bump cache to v0.1.4
- src/routes/documents.routes.js: Secure /archived endpoint
- scripts/*: Add 10 migration/diagnostic scripts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-26 00:03:13 +13:00
TheFlow
295647532e chore: bump cache version for deployment 2025-10-25 21:41:24 +13:00
TheFlow
fe7200c038 chore: bump cache version for deployment 2025-10-25 20:11:42 +13:00
TheFlow
4f889b073c fix(audit): fix timeline chart rendering with pixel heights and count labels
Fixed broken "Decisions Over Time" chart that wasn't displaying bars.

Root cause: Empty divs with percentage heights collapsed in flex containers.

Fixes applied:
1. **Pixel heights instead of percentages**
   - Calculate absolute pixel heights from h-48 container (192px)
   - Percentage heights don't work in flex containers with items-end

2. **Non-breaking space inside bars**
   - Added &nbsp; to prevent empty div collapse
   - Even with height set, empty divs can collapse in some layouts

3. **Decision count labels**
   - Display count above each bar for exact numbers
   - Shows both visual proportion (bar height) and exact value (label)

4. **Minimum 10px height**
   - Ensures small values are always visible
   - Prevents bars from disappearing for low counts

5. **Wider bars**
   - Changed from max-w-16 (64px) to w-3/4 (75% width)
   - More visible and easier to interact with

Timeline modes working:
-  6-Hourly (24h) - 4 bars showing last 24 hours in 6-hour buckets
-  Daily (7d) - 7 bars showing last 7 days
-  Weekly (4w) - 4 bars showing last 4 weeks

All modes show current snapshot updated on refresh.

Files changed:
- public/js/admin/audit-analytics.js: Timeline rendering logic
- public/admin/audit-analytics.html: Updated cache version
- public/*.html: Cache version bump for consistency

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-25 12:22:55 +13:00
TheFlow
bb3d74006d chore: bump cache version for audit analytics fix 2025-10-25 11:51:21 +13:00
TheFlow
38687f4d27 chore: bump cache version for audit analytics improvements 2025-10-25 11:47:22 +13:00
TheFlow
79e873a1fb chore: bump cache version for deployment 2025-10-25 09:37:46 +13:00
TheFlow
fecc868797 chore: bump cache version again 2025-10-25 08:48:14 +13:00
TheFlow
649eda71e1 chore: bump cache version to 0.1.1 for JS changes 2025-10-25 08:47:54 +13:00
TheFlow
63c808e68b chore(cache): bump cache version for newsletter DELETE fix
Updated cache-busting version to force browser reload of fixed JavaScript.

Root cause: Browser serving cached version of newsletter-management.js
with old arrow function bug, even though production file had the fix.

Changes:
- Bumped version to 0.1.0.1761283486841 across all HTML files
- Updated public/admin/newsletter-management.html (missed by auto-script)
- Updated version.json and service worker

Related fix: Newsletter DELETE button sending [object Object]
Fixed in commit edb1540 but cached version prevented fix from loading.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-24 18:25:26 +13:00
TheFlow
c96441560b chore: bump cache version for CSRF fix deployment 2025-10-24 16:44:40 +13:00
TheFlow
ca8edb383b chore: bump cache version for production deployment 2025-10-24 16:35:41 +13:00
TheFlow
b036c14d84 fix(submissions): extract data from API response wrappers
CRITICAL FIX: Economist submission package was showing no data because
the frontend was storing the entire API response wrapper instead of
extracting the actual post and submission data.

Changes:
- submission-modal-enhanced.js: Extract .post from blog API response
- submission-modal-enhanced.js: Extract .data from submissions API response
- publications.routes.js: Restore original routes and add /targets endpoint
- Cache version bumped to force browser updates

Fixes: #economist-submission-data-missing
2025-10-24 16:35:10 +13:00
TheFlow
bda0de0ceb fix(cache): standardize cache version across all HTML files
Fixed inconsistent cache version parameters across admin pages.
All HTML files now use v=0.1.0.1761262254119 to ensure mobile
browsers fetch fresh assets.

Changes:
- Updated all 12 admin HTML files to consistent cache version
- Updated all 17 public HTML files via update-cache-version script
- Service worker version: 0.1.1
- Version.json: 0.1.1

This ensures service worker cache invalidation triggers properly
and all pages reference matching asset versions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-24 12:34:39 +13:00
TheFlow
7291f816cd chore: bump cache version to 0.1.0.1761261456822
- Updated all HTML cache parameters
- Fixed calendar.html version tags
- Forces mobile browsers to fetch new calendar.js with error handling
2025-10-24 12:18:34 +13:00
TheFlow
b44686579a chore: bump cache version after submissions controller fix
- Updated to v0.1.1 to force browser refresh
- Ensures users get fixed submissions controller code
- Removed BlogPost populate() calls that caused 500 errors
2025-10-24 10:27:57 +13:00
TheFlow
7f865fbe70 fix(blog-curation-enhanced): add null check for publication dropdown
- Fixed TypeError when page loads in Pre-Submission section
- publication-target element only exists in Generate section
- Cache version updated
2025-10-24 10:02:31 +13:00
TheFlow
eb666a2504 debug: add console logging to track Le Monde loading
- Added detailed console logs to track submission loading
- Check if API response is ok
- Log all submissions found
- Log filtering logic for standalone submissions
- Cache version updated
2025-10-24 09:53:14 +13:00
TheFlow
d3074f87a3 fix(blog-validation): show Le Monde standalone submission package
- Modified loadValidationArticles() to load standalone submissions (no blogPostId)
- Updated rendering to handle both blog posts and standalone packages
- Fixed API endpoint from /api/blog/posts/:id to /api/blog/admin/:id
- Standalone packages show with purple 'STANDALONE PACKAGE' badge
- Button text changes to 'View Package' for standalone submissions
- Cache version bumped to 0.1.1
2025-10-24 09:50:42 +13:00
TheFlow
971690bb64 feat(cache): enforce mandatory cache version updates for JS changes
- Enhanced update-cache-version.js to update service worker and version.json
- Added inst_075 governance instruction (HIGH persistence)
- Integrated cache check into deployment script (Step 1/5)
- Created CACHE_MANAGEMENT_ENFORCEMENT.md documentation
- Bumped version to 0.1.1
- Updated all HTML cache parameters

BREAKING: Deployment now blocks if JS changed without cache update
2025-10-24 09:43:20 +13:00
TheFlow
2298d36bed fix(submissions): restructure Economist package and fix article display
- Create Economist SubmissionTracking package correctly:
  * mainArticle = full blog post content
  * coverLetter = 216-word SIR— letter
  * Links to blog post via blogPostId
- Archive 'Letter to The Economist' from blog posts (it's the cover letter)
- Fix date display on article cards (use published_at)
- Target publication already displaying via blue badge

Database changes:
- Make blogPostId optional in SubmissionTracking model
- Economist package ID: 68fa85ae49d4900e7f2ecd83
- Le Monde package ID: 68fa2abd2e6acd5691932150

Next: Enhanced modal with tabs, validation, export

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-24 08:47:42 +13:00
TheFlow
0dd4a5f6c8 refactor: reduce public repo to minimal implementation-only resource
REMOVED: 267 non-implementation files (51% reduction)

Categories removed:
- Research documents & case studies (35 files)
- Planning/internal development docs (28 files)
- Website pages & assets (93 files - this is framework code, not website code)
- Audit reports (6 files)
- Non-essential admin UI (11 files)
- Markdown content duplicates (10 files)
- Internal development scripts (96 files)
- Internal setup docs (2 files)

RETAINED: 253 implementation-focused files
- Core framework services (src/)
- Test suite (tests/)
- API documentation (docs/api/)
- Deployment quickstart guide
- Essential admin UI (rule manager, dashboard, hooks dashboard)
- Architecture decision records
- Configuration files

PURPOSE: Public repo is now focused exclusively on developers
implementing Tractatus, not researchers studying it or users visiting
the website. All background/research content available at
https://agenticgovernance.digital

🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-21 21:09:34 +13:00
TheFlow
9ccbe85c12 SECURITY: fix GitHub repository links exposing internal repo
CRITICAL SECURITY VIOLATION:
- Public website was linking to INTERNAL repository (tractatus)
- Should link to PUBLIC repository (tractatus-framework)

FIXES (5 instances across 3 pages):
- public/docs.html: 2 links (repository + readme)
- public/faq.html: 1 link (GitHub issues)
- public/implementer.html: 2 links (deployment guide + source code)

Changed:
  github.com/AgenticGovernance/tractatus
  → github.com/AgenticGovernance/tractatus-framework

RESULT: Public website now correctly links to sanitized public repository
IMPACT: Prevents external users from accessing internal development files

🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-21 19:03:18 +13:00
TheFlow
fc4bd77493 perf(docs): improve LCP with deferred scripts and font preloading
SUMMARY:
Optimized docs.html performance to improve Lighthouse score from 89/100
to >90/100 and reduce LCP from 1.8s to <1.5s.

PERFORMANCE OPTIMIZATIONS:

1. Deferred Script Loading:
   - Added defer attribute to 5 scripts (lines 865, 867-869, 872-873)
   - version-manager.js
   - document-cards.js
   - docs-app.js
   - docs-search-enhanced.js
   - i18n-simple.js
   - language-selector.js
   - Scripts now download in parallel without blocking HTML parsing
   - Execute in order after DOM ready

2. Font Preloading:
   - Added preload hints for critical fonts (lines 24-25)
   - Inter Regular (400) - body text
   - Inter Bold (700) - headings
   - Browser starts downloading fonts immediately
   - Reduces FOIT/FOUT (flash of invisible/unstyled text)

EXPECTED IMPACT:
- LCP improvement: 1.8s → <1.5s (expected 15-20% reduction)
- Performance score: 89/100 → >90/100
- Scripts no longer block initial render
- Fonts render faster with less layout shift
- Reduced critical request chain length

LIGHTHOUSE ISSUES ADDRESSED:
✓ Render-blocking scripts eliminated
✓ Font loading optimized with preload hints
✓ Critical resources prioritized

FILES MODIFIED:
- public/docs.html (added defer to 6 scripts, preload 2 fonts)

NEXT STEPS:
Deploy to production and run Lighthouse audit to verify improvements.

🤖 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 21:22:05 +13:00
TheFlow
4ab92b5e3f fix(accessibility): improve contrast ratios and add meta description
SUMMARY:
Fixed accessibility contrast issues across multiple pages to achieve
perfect Lighthouse accessibility scores (96 → 100). Added SEO meta
description to docs page.

CHANGES:

1. architecture.html:
   - Changed amber badge from bg-amber-600 to bg-amber-700
   - Improves contrast ratio with white text

2. faq.html:
   - Changed blue button from bg-blue-500 to bg-blue-600
   - Changed border from border-blue-300 to border-blue-400
   - Improves contrast ratio with white text

3. koha.html:
   - Changed tier badge background from #3b82f6 to #1d4ed8 (blue-500 → blue-700)
   - Improves contrast ratio with white text

4. docs.html:
   - Added meta description for SEO
   - Describes framework documentation and key features

LIGHTHOUSE IMPACT:
Before:
- architecture.html: 96 Accessibility
- faq.html: 96 Accessibility
- koha.html: 96 Accessibility
- docs.html: 91 SEO

After (Expected):
- architecture.html: 100 Accessibility ✓
- faq.html: 100 Accessibility ✓
- koha.html: 100 Accessibility ✓
- docs.html: 100 SEO ✓

WCAG COMPLIANCE:
All color contrast ratios now meet or exceed WCAG AA (4.5:1 minimum)
✓ Amber-700: Better contrast with white text
✓ Blue-600/700: Better contrast with white text

🤖 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 20:55:04 +13:00
TheFlow
8bb01f4342 perf(docs): fix CLS and improve accessibility across pages
SUMMARY:
Fixed cumulative layout shift (CLS) issues in docs.html and improved
accessibility contrast ratios across leader.html and implementer.html.

CHANGES:

1. docs.html Performance Fixes:
   - Fixed CLS (0.22 → <0.1): Added min-height: 800px to #document-list
   - Added contain: layout to isolate layout calculations
   - Added defer to navbar.js to prevent render-blocking
   - Result: Expected performance score improvement from 79 to >90

2. leader.html Accessibility Fixes:
   - Changed amber links from amber-700 to amber-800 (4 instances)
   - Added underline to all amber links for color-independent distinction
   - Changed amber badge from amber-700 to amber-900 on amber-100 background
   - Result: Expected accessibility score improvement from 92 to 100
   - WCAG AA compliance: amber-800 = 5.4:1 contrast ratio

3. implementer.html Accessibility Fixes:
   - Changed green buttons from green-600 to green-700 (2 instances)
   - Changed yellow text from yellow-600 to yellow-900 on yellow-50 background
   - Result: Expected accessibility score improvement from 96 to 100
   - WCAG AA compliance: green-700 = 4.6:1, yellow-900 = 9.4:1

LIGHTHOUSE IMPACT:
Before:
- docs.html: 79 Performance, 100 Accessibility, 100 Best Practices
- leader.html: 99 Performance, 92 Accessibility
- implementer.html: 99 Performance, 96 Accessibility

After (Expected):
- docs.html: >90 Performance, 100 Accessibility, 100 Best Practices
- leader.html: 99 Performance, 100 Accessibility
- implementer.html: 99 Performance, 100 Accessibility

WCAG COMPLIANCE:
✓ All color contrast ratios now meet WCAG AA (4.5:1 minimum)
✓ Links distinguishable by underline, not color alone
✓ Layout shifts minimized with reserved space

FRAMEWORK COMPLIANCE:
Completes remaining accessibility and performance work
All pages now target 100/100 Lighthouse accessibility scores

🤖 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 14:04:33 +13:00
TheFlow
d8e5061873 fix(mobile): implement navigation toggle for document viewer
Add mobile-specific navigation pattern to resolve catch-22 UX issue where
users couldn't see documents without scrolling but didn't know to scroll.

Changes:
- Add mobile CSS to toggle between sidebar and document viewer
- Add back button to return to document list on mobile
- Add document-active body class to manage navigation state
- Update GitHub repository links to correct URL

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 12:41:48 +13:00
TheFlow
dd601857a1 fix(i18n): resolve language selector display issues with cache-busting
Language Selector Issues Resolved:
- Add cache-busting version (v0.1.0.1760643941) to i18n-simple.js
- Add cache-busting version to language-selector.js on all pages
- Previously: Scripts cached without versions, causing stale JS to load
- Now: Browser forced to reload latest language selector code

Pages Updated with Cache-Busting:
- index.html: Added ?v= to both i18n scripts
- about.html: Added ?v= to both i18n scripts
- researcher.html: Added ?v= to both i18n scripts
- leader.html: Added ?v= to both i18n scripts
- implementer.html: Added ?v= to both i18n scripts
- faq.html: Added ?v= to both i18n scripts
- docs.html: Added missing i18n scripts + cache-busting

Root Cause Analysis:
- navbar.js had cache-busting (?v=0.1.0.1760254958072)
- i18n scripts had NO cache-busting
- Browsers served cached old versions of language-selector.js
- Language selector container created by navbar, but old selector code failed

Technical Details:
- Desktop language selector: Already correctly shows dropdown only (hidden md:block)
- Mobile language selector: Already correctly shows icons only (flex md:hidden)
- No code changes needed - cache was the issue
- Script loading order: navbar.js → i18n-simple.js → language-selector.js

Deployment:
- All 7 HTML pages deployed to production
- Language selector now appears on all pages including index.html
- Cache invalidation forces browser to fetch new JavaScript

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-17 08:47:15 +13:00
TheFlow
44a91e7fcf feat: add case submission portal admin interface and i18n support
Case Submission Portal (Admin Moderation Queue):
- Add statistics endpoint (GET /api/cases/submissions/stats)
- Enhance filtering: status, failure_mode, AI relevance score
- Add sorting options: date, relevance, completeness
- Create admin moderation interface (case-moderation.html)
- Implement CSP-compliant admin UI (no inline event handlers)
- Deploy moderation actions: approve, reject, request-info
- Fix API parameter mapping for different action types

Internationalization (i18n):
- Implement lightweight i18n system (i18n-simple.js, ~5KB)
- Add language selector component with flag emojis
- Create German and French translations for homepage
- Document Te Reo Māori translation requirements
- Add i18n attributes to homepage
- Integrate language selector into navbar

Bug Fixes:
- Fix search button modal display on docs.html (remove conflicting flex class)

Page Enhancements:
- Add dedicated JS modules for researcher, leader, koha pages
- Improve page-specific functionality and interactions

Documentation:
- Add I18N_IMPLEMENTATION_SUMMARY.md (implementation guide)
- Add TE_REO_MAORI_TRANSLATION_REQUIREMENTS.md (cultural sensitivity guide)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-16 14:50:47 +13:00
TheFlow
f19154c9e6 feat: add version control system and PWA support
Implements cache busting and progressive web app features:

**Version Management:**
- version.json manifest with changelog tracking
- Service worker with automatic update checking (hourly)
- Update notification UI with changelog display
- Configurable forced updates after timeout
- Cache control headers for optimal performance

**PWA Features:**
- manifest.json with app shortcuts
- Apple touch icon support
- "Add to Home Screen" functionality
- Offline support via service worker

**Cache Strategy:**
- HTML: 5-minute cache with revalidation
- CSS/JS: 1-year immutable cache
- Images: 1-year immutable cache
- version.json/service-worker.js: no-cache

**Integration:**
- All main pages updated with PWA meta tags
- Version manager loaded on all user-facing pages
- Production deployment successful

Users who previously visited the site will now automatically receive
update notifications when version changes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-14 10:53:29 +13:00
TheFlow
36019ce3c9 chore: cache busting for document review updates
Updated cache version to v=0.1.0.1760254958072 across all HTML files
to ensure users receive latest document corrections.
2025-10-12 20:42:46 +13:00