Reduced CitizenProfile.tsx from 650 to 115 lines by extracting:
- CitizenProfileHeader: avatar and participation score display
- CitizenProfileTabs: tab navigation component
- CitizenOverviewTab: citizen summary and tax distribution cards
- CitizenTaxTab: tax payment history table
- CitizenBenefitsTab: benefits list with eligibility check
- CitizenAdvisoryTab: advisory distribution sliders
Leveraged existing types from types/governance.ts and utilities
from lib/governance/utils.ts for DRY compliance.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Refactored remaining 3 bot pages to use shared BotPageTemplate:
- legal-expert: simplified imports, uses template wrapper
- swiss-german-teacher: enabled hashScrolling and showFooter options
- product-manager: preserved page-specific scrollToTryIt function
All 6 bot pages now use consistent template pattern.
Updated @fix_plan.md to mark P1 as completed.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add BotSection and BotNotFoundFallback shared components
- Centralize menuItems and navigation config in data/bots.ts
- Add getBotBySlug and getBotTryLink helper functions
- Add BotMenuItem, BotAccentColor, and BotNavConfig types
- Refactor all 6 bot pages to use centralized configuration
- Remove ~180 lines of duplicated code across bot pages
- Improve consistency in error handling and section spacing
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add .eslintrc.json with strict TypeScript and React rules
- Fix all unused imports and variables (prefix with _ or remove)
- Replace all `any` types with `unknown` or specific types
- Fix React hooks rule violations (conditional hooks, deps)
- Change console.log to console.info per project standards
- Add eslint-disable comments for legitimate img element uses
- Fix anonymous default exports
- Update package.json with ESLint 8 and proper lint scripts
Lint: 0 warnings, 0 errors
Build: passes successfully
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>