tractatus/public/admin
TheFlow 4b7e50962d fix(admin): Phase 1 - critical auth and navigation fixes
SUMMARY:
Fixed 3 broken admin pages (newsletter, hooks dashboard, migrator) and
standardized navigation links. These pages were completely non-functional
due to localStorage key mismatches.

CRITICAL FIXES:
1. newsletter-management.js:
   - token → admin_token (5 occurrences)
   - admin → admin_user (2 occurrences)
   - Now matches login.js localStorage keys

2. hooks-dashboard.js:
   - tractatus_admin_token → admin_token
   - Now uses correct auth token

3. claude-md-migrator.js:
   - auth_token → admin_token (2 occurrences)
   - Added missing apiRequest() helper function
   - Fixed logout to clear both admin_token and admin_user

NAVIGATION FIXES:
4. newsletter-management.html:
   - dashboard.html → /admin/dashboard.html (absolute path)

5. claude-md-migrator.html:
   - ../css/tailwind.css → /css/tailwind.css?v=1759833751 (absolute + version)
   - Added tractatus-theme.min.css

BEFORE (BROKEN):
- Newsletter Management:  Auth failed (wrong token key)
- Hooks Dashboard:  Auth failed (wrong token key)
- CLAUDE.md Migrator:  Auth failed + missing apiRequest()

AFTER (WORKING):
- Newsletter Management:  Auth works, all API calls function
- Hooks Dashboard:  Auth works, metrics load
- CLAUDE.md Migrator:  Auth works, API requests function

NEXT STEPS (Phase 2):
- Create unified admin navbar component
- Standardize CSS versioning across all pages
- Verify/create missing API endpoints

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-20 21:33:50 +13:00
..
audit-analytics.html style(ui): update theme, branding, and GitHub repository links 2025-10-19 12:48:29 +13:00
blog-curation.html style(ui): update theme, branding, and GitHub repository links 2025-10-19 12:48:29 +13:00
case-moderation.html style(ui): update theme, branding, and GitHub repository links 2025-10-19 12:48:29 +13:00
claude-md-migrator.html fix(admin): Phase 1 - critical auth and navigation fixes 2025-10-20 21:33:50 +13:00
dashboard.html style(ui): update theme, branding, and GitHub repository links 2025-10-19 12:48:29 +13:00
hooks-dashboard.html style(ui): update theme, branding, and GitHub repository links 2025-10-19 12:48:29 +13:00
login.html style(ui): update theme, branding, and GitHub repository links 2025-10-19 12:48:29 +13:00
media-triage.html style(ui): update theme, branding, and GitHub repository links 2025-10-19 12:48:29 +13:00
newsletter-management.html fix(admin): Phase 1 - critical auth and navigation fixes 2025-10-20 21:33:50 +13:00
project-manager.html style(ui): update theme, branding, and GitHub repository links 2025-10-19 12:48:29 +13:00
rule-manager.html style(ui): update theme, branding, and GitHub repository links 2025-10-19 12:48:29 +13:00