diff --git a/.agents/planning/00-index.md b/.agents/planning/00-index.md new file mode 100644 index 000000000..d06d93ca0 --- /dev/null +++ b/.agents/planning/00-index.md @@ -0,0 +1,143 @@ +# UI Framework Migration Planning + +## Overview + +Planning documents for migrating the Antenna UI from Vite + React Router to a more opinionated framework. Two options are evaluated: **Next.js** and **Remix**. + +**Recommendation**: Remix is better aligned with our motivations (reducing boilerplate, prescribed patterns, DRF-like experience). + +--- + +## Document Index + +### Context & Motivations + +| # | Document | Description | +|---|----------|-------------| +| 01 | [Current State](./01-current-state.md) | Analysis of current UI and API architecture | +| 08 | [**Motivations**](./08-motivations.md) | Why we're considering migration (small team, patterns, maintenance) | +| 09 | [**E2E Testing Strategy**](./09-e2e-testing-strategy.md) | Playwright setup, test generation strategies, analytics-driven prioritization | + +### Next.js Assessment + +| # | Document | Description | +|---|----------|-------------| +| 02 | [Next.js Benefits](./02-nextjs-benefits.md) | What Next.js offers and can replace | +| 03 | [Required Changes](./03-required-changes.md) | Everything that needs to change for Next.js | +| 04 | [Custom/Bespoke](./04-custom-bespoke.md) | What stays custom (Next.js) | +| 05 | [Migration Steps](./05-migration-steps.md) | Phased implementation plan (Next.js) | +| 06 | [Questions & Risks](./06-questions-risks.md) | Risks, alternatives, benefits (Next.js) | +| 07 | [Testing & Evaluation](./07-testing-evaluation.md) | Testing plan (Next.js) | + +### Remix Assessment (Recommended) + +| # | Document | Description | +|---|----------|-------------| +| R1 | [Remix Benefits](./remix/01-remix-benefits.md) | What Remix offers - loaders, actions, forms | +| R2 | [Required Changes](./remix/02-required-changes.md) | Everything that needs to change for Remix | +| R3 | [Custom/Bespoke](./remix/03-custom-bespoke.md) | What stays custom (Remix) | +| R4 | [Migration Steps](./remix/04-migration-steps.md) | Phased implementation plan (Remix) | +| R5 | [Questions & Risks](./remix/05-questions-risks.md) | Risks, alternatives, benefits (Remix) | +| R6 | [Testing & Evaluation](./remix/06-testing-evaluation.md) | Testing plan (Remix) | +| R7 | [**AI-Driven Migration**](./remix/07-ai-driven-migration.md) | How Claude Code executes migration in 1-2 hours | + +--- + +## Quick Comparison + +### Current Stack +- **Build**: Vite 4.5.3 +- **Routing**: React Router v6.8.2 +- **State**: React Query + Context +- **Styling**: Tailwind CSS + SCSS +- **Components**: Radix UI + nova-ui-kit + +### Option A: Next.js +- **Build**: Next.js 14 (App Router) +- **Routing**: File-based (app/) +- **State**: React Query + Context (keep) +- **Data loading**: Flexible (server components, client) +- **Forms**: Manual (Server Actions basic) + +### Option B: Remix (Recommended) +- **Build**: Remix 2.x (Vite-based) +- **Routing**: File-based (routes/) +- **State**: Minimal (loaders handle server state) +- **Data loading**: Prescribed (loaders) +- **Forms**: First-class (`