Ck 7vn/total refactor#1137
Conversation
PageHeader, StatusBadge, EmptyState, SearchInput, ConfirmDialog, FormModal, and DataTable components with consistent design system theming and reusable patterns.
Split monolithic common.ts into 15 domain-specific type modules (auth, user, facility, program, attendance, provider, content, insights, events, server, reports, navigation, websocket, ui, global.d.ts). Port API client with CSRF handling and credential passing. Add formatters and cn() utility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Port AuthProvider with Ory Kratos flow integration, RouteGuard for role-based access control, useAuth with role helpers and session management. Port BroadcastChannel tab session and WebSocket session. Rewrite ThemeContext for next-themes, ToastContext for sonner. Port Tour, Breadcrumb, and PageTitle contexts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Port useUrlPagination, useSessionViewType, useCheckResponse (adapted for shadcn Dialog controlled state), useBreadcrumbsFromRoutes. Port all route loaders for data prefetching. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Port all 52 shadcn/ui components from the redesign. Components use Radix UI primitives with forest green/olive/gold design tokens. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Port AuthenticatedLayout with redesign top nav bar (bg-[#203622]), role-based nav items, facility selector, user menu, theme toggle. Port GuestLayout, TopNav, MobileNav, Breadcrumbs. Port TitleManager, Loading, Brand, and UnlockEdTour components. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Set up React Router v6 with route guards, loaders, and breadcrumbs. Configure provider nesting order (PostHog, Tour, SWR, Theme). Define all app routes (admin, program, provider, knowledge center). Add globals.css with design tokens and dark mode support. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Port Login with Ory Kratos flow integration (rate limiting, lockout, deactivation detection). Add ChangePasswordForm with validation and first-login facility setup. Add ConsentForm for OAuth2. Port Welcome landing page and StudentLayer0 greeting page. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add AdminManagement with role-based CRUD and permission checks. Add StudentManagement with deactivation support. Add FacilityManagement with room and timezone configuration. Add ResidentProfile detail page. Add ProviderPlatformManagement with OIDC registration and archive. Add ProviderUserManagement with user import and Kolibri detection. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add ProgramManagementForm and ClassManagementForm for create/edit. Add ProgramOverviewDashboard, ProgramClassManagement, ClassLayout, ClassEnrollmentDetails, ClassEvents, and AddClassEnrollments. Add decomposed EventAttendance page with grid and summary. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add ResidentHome with featured content and favorites. Add StudentDashboard with weekly activity chart. Add MyCourses with tabs and grid/list toggle. Add MyProgress with stats and sortable table. Add ResidentOverview and CourseCatalog. Add WeeklyActivity, TopContentList, EnrolledCourseCard, CatalogCourseCard, and ActivityHistoryCard components. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add OpenContent tabbed container for admin/student views. Add LibraryLayout, VideoManagement, HelpfulLinksManagement for admins. Add StudentOpenContent, VideoContent, LibraryViewer (Kiwix iframe), VideoViewer, HelpfulLinks, and Favorites for students. Add LibraryCard, VideoCard, HelpfulLinkCard, FavoriteCard, and OpenContentItemAccordion. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add OperationalInsights, KnowledgeInsights, and LearningInsights with recharts visualizations. Add EngagementRateGraph and chart components. Add Schedule with weekly calendar view. Add FAQs with accordion and HelpCenter. Port Dashboard, ClassesPage, ProgramsPage, TakeAttendance, Error page, and class-detail/program-detail modules. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…me blocking Add forwardRef to Input, Textarea, and Button for react-hook-form compatibility. Move side effects (navigate, window.location.href) from render bodies into useEffect in AuthProvider, RouteGuard, Login, and ResidentProfile. Extract shared formatDate/formatDateTime into formatters.ts to eliminate duplication. Fix LoginForm timer to use derived state instead of synced useState. Fix X-Frame-Options to use SAMEORIGIN for proxy routes so Kiwix content renders in iframes. Fix inverted NATS cache condition in middleware that prevented library proxy params from being cached. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…der (#1126) * feat: add new redesign files to frontend folder and remove old v2 folder * feat: add new redesign files to frontend folder and remove old v2 folder * fix: add changes for linting errors
…ve duplicated code
… component and then remove unused code
* fix: export sessionutil funcs * fix: split 3 helpers to lib and session-utils * fix: type linked_override_event nullable, type VideoViewer fetch * refactor: split SessionDetailSheet into focused sub-components * refactor: split SessionsTab into sub-components * refactor: extract LoadingSkeleton and ClassNotFoundCard from class-detail * refactor: dedupe buildFacilityEvent, tighten EnrollResidentModal cast * fix: routes for top content and resident dashboard * fix: scrollbars
* refactor: brand colors in globals * refactor: sweep stragglers + add brand-gold-dark token * refactor: focus rings * refactor: consolidate more hex and extract reusable component classes * refactor: extract more component classes * refactor: more component class extractions and library viewer stretch fix * refactor: css hex and badges * fix: schedule tab click state color
|
Important Review skippedToo many files! This PR contains 292 files, which is 142 over the limit of 150. To get a review, narrow the scope: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (8)
📒 Files selected for processing (292)
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
carddev81
left a comment
There was a problem hiding this comment.
Dude! This is a lot of code.
Pre-Submission PR Checklist
Description of the change
Merges total refactor into main