From 3b142ca4c7e3c63bd49c6e1daf4f4a836544d809 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 25 Jun 2026 00:57:59 -0400 Subject: [PATCH] chore: bulk commit of pre-existing changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Includes: - Admin dashboard layout and page updates - API account auth module (routes, schemas, service) - Dashboard sign-up form extraction, middleware refactor - Marketplace proxy and middleware updates - CORS origins expansion for dev environment - Seed email domain correction (.com → .ma) - Docs: create-account guide, fleet page, signup plan - Various UI component and layout refinements --- .env.docker.dev | 2 +- .env.example | 2 +- apps/admin/src/app/dashboard/layout.tsx | 2 +- apps/admin/src/app/dashboard/page.tsx | 200 ++- apps/admin/src/app/layout.tsx | 4 +- apps/api/src/app.ts | 37 +- .../src/modules/auth/auth.account.routes.ts | 26 + .../src/modules/auth/auth.account.schemas.ts | 59 + .../src/modules/auth/auth.account.service.ts | 85 ++ .../src/tests/api/api-foundation.api.test.ts | 12 + apps/dashboard/next.config.js | 49 +- apps/dashboard/src/app/(dashboard)/layout.tsx | 2 +- apps/dashboard/src/app/(dashboard)/page.tsx | 111 +- apps/dashboard/src/app/globals.css | 163 +++ apps/dashboard/src/app/layout.tsx | 5 + .../app/sign-up/[[...sign-up]]/SignUpForm.tsx | 199 +++ .../src/app/sign-up/[[...sign-up]]/page.tsx | 936 +----------- .../DashboardAccessGuard.boundary.test.ts | 41 + .../layout/DashboardAccessGuard.tsx | 26 +- .../src/components/layout/PublicHeader.tsx | 7 +- .../layout/Sidebar.boundary.test.ts | 68 + .../src/components/layout/Sidebar.tsx | 86 +- .../src/components/layout/TopBar.tsx | 58 +- apps/dashboard/src/components/ui/StatCard.tsx | 18 +- apps/dashboard/src/middleware.test.ts | 16 +- apps/dashboard/src/middleware.ts | 86 +- apps/dashboard/src/next-config.test.ts | 27 + apps/marketplace.zip | Bin 6350387 -> 0 bytes apps/marketplace/next.config.js | 25 +- apps/marketplace/public/icon.svg | 14 + apps/marketplace/src/middleware.test.ts | 44 +- apps/marketplace/src/proxy.ts | 21 +- docs/create-account-guide.md | 256 ++++ docs/fleet_lue.html | 1252 +++++++++++++++++ docs/progressive-signup-plan.md | 202 +++ packages/database/prisma/seed.ts | 2 +- 36 files changed, 2987 insertions(+), 1156 deletions(-) create mode 100644 apps/api/src/modules/auth/auth.account.routes.ts create mode 100644 apps/api/src/modules/auth/auth.account.schemas.ts create mode 100644 apps/api/src/modules/auth/auth.account.service.ts create mode 100644 apps/dashboard/src/app/sign-up/[[...sign-up]]/SignUpForm.tsx create mode 100644 apps/dashboard/src/components/layout/DashboardAccessGuard.boundary.test.ts create mode 100644 apps/dashboard/src/components/layout/Sidebar.boundary.test.ts create mode 100644 apps/dashboard/src/next-config.test.ts delete mode 100644 apps/marketplace.zip create mode 100644 apps/marketplace/public/icon.svg create mode 100644 docs/create-account-guide.md create mode 100644 docs/fleet_lue.html create mode 100644 docs/progressive-signup-plan.md diff --git a/.env.docker.dev b/.env.docker.dev index 10a6d51..b22939a 100644 --- a/.env.docker.dev +++ b/.env.docker.dev @@ -32,7 +32,7 @@ ADMIN_SEED_LAST_NAME=Admin NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY= CLERK_SECRET_KEY=placeholder NODE_ENV=development -CORS_ORIGINS=http://localhost:3000,http://localhost:4000 +CORS_ORIGINS=http://localhost:3000,http://localhost:3001,http://localhost:3002,http://localhost:4000,http://127.0.0.1:3000,http://127.0.0.1:3001,http://127.0.0.1:3002,http://127.0.0.1:4000 # Email - disable Resend (placeholder), use SMTP instead RESEND_API_KEY=placeholder diff --git a/.env.example b/.env.example index fb74aa5..280124e 100644 --- a/.env.example +++ b/.env.example @@ -83,7 +83,7 @@ NEXT_PUBLIC_PUBLIC_SITE_DOMAIN=localhost:3003 DASHBOARD_URL=http://localhost:3000/dashboard # ─── Admin seed (first SUPER_ADMIN created on db:seed) ──────── -ADMIN_SEED_EMAIL=admin@rentaldrivego.com +ADMIN_SEED_EMAIL=admin@rentaldrivego.ma ADMIN_SEED_PASSWORD=placeholder ADMIN_SEED_FIRST_NAME=Super ADMIN_SEED_LAST_NAME=Admin diff --git a/apps/admin/src/app/dashboard/layout.tsx b/apps/admin/src/app/dashboard/layout.tsx index a465fc1..ec8a8f4 100644 --- a/apps/admin/src/app/dashboard/layout.tsx +++ b/apps/admin/src/app/dashboard/layout.tsx @@ -89,7 +89,7 @@ export default function AdminDashboardLayout({ children }: { children: React.Rea