feat(01-04): Next.js 16 admin portal with Auth.js v5, tenant CRUD, and Agent Designer
- Initialize Next.js 16 project in packages/portal/ with TypeScript, Tailwind 4, shadcn/ui - Auth.js v5 with Credentials provider calling FastAPI /auth/verify endpoint - proxy.ts (Next.js 16 replacement for middleware.ts) protects all routes - Login page with React Hook Form + zod validation (standard-schema resolver for zod v4 compat) - Agent Designer: prominent dedicated module with Identity, Personality, Configuration, Capabilities, Escalation, and Status sections; employee-centric language throughout - Tenant CRUD: list, create (slug auto-gen), view/edit, delete with confirmation - TanStack Query hooks for all API operations with proper cache invalidation - Route group (dashboard) provides shared Nav sidebar + QueryClientProvider - Update docker-compose.yml to add portal service on port 3000 - Deviations: middleware.ts renamed to proxy.ts in Next.js 16; zodResolver replaced with standardSchemaResolver for zod v4 + @hookform/resolvers v5 compatibility
This commit is contained in:
1
packages/portal
Submodule
1
packages/portal
Submodule
Submodule packages/portal added at 29a27100f6
Reference in New Issue
Block a user