- /admin opted out of shopper chrome in MyLayout; /admin added to server protectedRoutes; useRequireAdmin() gates to superusers (UserProfile.isSuperuser). - Admin shell (admin.tsx) with sidebar nav (Overview live; other sections stubbed) and a mobile top bar; Overview dashboard (KPI cards + 14-day orders chart) via use-admin-hooks.ts hitting /api/adminpanel/v1/overview/. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| assets | ||
| components | ||
| data | ||
| hooks | ||
| lib | ||
| requestHandler | ||
| routes | ||
| styles | ||
| types | ||
| utils | ||
| auth.server.ts | ||
| cookie.ts | ||
| entry.client.tsx | ||
| entry.server.tsx | ||
| i18n.ts | ||
| root.tsx | ||
| sessions.server.ts | ||
| tailwind.css | ||