Frontend: - Replace Next.js with Vite + React + TypeScript - Add new component architecture (app-shell, sidebar, dashboard modules) - Implement product modules: FRAME, safety protocols, walkthrough checkin, campus/staff attendance, personality quiz, sign language, classroom timer - Add shadcn/ui component library with Tailwind CSS - Remove legacy generated components, stores, and pages Backend: - Add product migrations: frame_entries, user_progress, safety_quiz_results, walkthrough_checkins, communication_events, personality_quiz_results, campus_attendance_config/summaries, staff_attendance_records, content_catalog - Add corresponding models, services, and routes - Implement cookie-based auth with refresh token rotation - Add content catalog seeder with product content - Migrate to ESLint flat config - Switch from yarn to npm Infrastructure: - Update .gitignore for new tooling - Add project documentation (CLAUDE.md, docs/) - Remove deprecated config files and yarn.lock Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1.9 KiB
1.9 KiB
FRAME Frontend Integration
Purpose
FRAME follows the frontend three-layer architecture for persisted action-plan entries.
View -> Business Logic -> API/Data Access -> Backend
Files
View layer:
frontend/src/components/frameworks/FrameModule.tsxfrontend/src/components/frame/frontend/src/components/frameworks/Dashboard.tsxfrontend/src/components/dashboard/DashboardFramePreview.tsxfrontend/src/components/frameworks/DirectorDashboard.tsxfrontend/src/components/director-dashboard/DirectorRecentFramePanel.tsx
Business logic layer:
frontend/src/business/frame/hooks.tsfrontend/src/business/frame/mappers.tsfrontend/src/business/frame/selectors.tsfrontend/src/business/frame/types.tsfrontend/src/business/dashboard/hooks.tsfrontend/src/business/director-dashboard/hooks.tsfrontend/src/business/director-dashboard/selectors.ts
API/data access layer:
frontend/src/shared/api/frame.tsfrontend/src/shared/types/frame.ts
Constants:
frontend/src/shared/constants/frame.ts
Behavior
- FRAME entries load from
GET /api/frame_entries. - Create/update workflows use typed API calls and React Query mutations.
FrameModule.tsxis a thin wrapper that callsuseFrameModuleand renders focused FRAME view components.- FRAME view components use shared UI primitives:
Button,Input,Textarea, andStatePanel. - Static FRAME sample entries are not used as runtime persisted-data substitutes.
- Empty and error states are rendered explicitly.
- Dynamic F/R/A/M/E field access is typed through
FrameSectionKey. - Director dashboard renders recent FRAME previews through director dashboard selectors instead of deriving preview rows in JSX.
- Home dashboard renders the latest FRAME entry through
useDashboardPageandDashboardFramePreview.
Remaining Related Work
Dashboard zone check-ins are owned by the dashboard business layer and user progress API, not by FRAME.