From ac9f474554eb2967df3391d3a59cc902fbfd94ad Mon Sep 17 00:00:00 2001 From: Prashant Shendre Date: Sat, 17 Oct 2026 11:24:07 +0530 Subject: [PATCH] Demo setup --- project_code/compose.yaml | 5 ++++ project_code/frontend/src/App.tsx | 11 ++++++++- ...T100903Z-session-ui-theme-update-assets.md | 23 +++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/project_code/compose.yaml b/project_code/compose.yaml index 38e705e..c6c50c4 100644 --- a/project_code/compose.yaml +++ b/project_code/compose.yaml @@ -74,6 +74,9 @@ services: ports: - "127.0.0.1:8000:8000" command: ["uvicorn", "backend.app.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1", "--log-level", "info"] + volumes: + - ./backend:/app/backend + - ./sandbox:/app/sandbox depends_on: postgres: condition: service_healthy @@ -92,6 +95,8 @@ services: dockerfile: docker/Dockerfile.frontend ports: - "${PORTAL_PORT:-3000}:80" + volumes: + - ./frontend/dist:/usr/share/nginx/html:ro depends_on: backend: condition: service_healthy diff --git a/project_code/frontend/src/App.tsx b/project_code/frontend/src/App.tsx index a326ee7..ad47284 100644 --- a/project_code/frontend/src/App.tsx +++ b/project_code/frontend/src/App.tsx @@ -163,6 +163,7 @@ const ALL_NAV_ITEMS: NavItemConfig[] = [ allowedRoles: [ 'Mandi Buyer', 'Purchase Manager', + 'Yard Supervisor', 'Partner / MD', 'Tenant Administrator', 'Procurement Officer', @@ -188,11 +189,15 @@ const ALL_NAV_ITEMS: NavItemConfig[] = [ label: 'Stock Ledger', icon: Warehouse, allowedRoles: [ + 'Yard Supervisor', + 'Logistics Coordinator', 'Warehouse Clerk', 'Purchase Manager', 'Partner / MD', 'Tenant Administrator', 'Desk Trader', + 'Sales Executive', + 'Sales Manager', 'Accounts Executive' ], }, @@ -214,6 +219,7 @@ const ALL_NAV_ITEMS: NavItemConfig[] = [ label: 'Dispatch & Fleet', icon: Send, allowedRoles: [ + 'Logistics Coordinator', 'Warehouse Clerk', 'Sales Executive', 'Sales Manager', @@ -296,9 +302,12 @@ const resolveDefaultTab = (roles: string[]): TabId => { if (roles.includes('Quality Officer') || roles.includes('Lab Chemist')) { return 'quality'; } - if (roles.includes('Warehouse Clerk')) { + if (roles.includes('Yard Supervisor') || roles.includes('Warehouse Clerk')) { return 'receiving'; } + if (roles.includes('Logistics Coordinator')) { + return 'logistics'; + } if (roles.includes('System Administrator')) { return 'tenants'; } diff --git a/project_sdlc/prompts/20261015T100903Z-session-ui-theme-update-assets.md b/project_sdlc/prompts/20261015T100903Z-session-ui-theme-update-assets.md index 2a18d8a..77a5fc4 100644 --- a/project_sdlc/prompts/20261015T100903Z-session-ui-theme-update-assets.md +++ b/project_sdlc/prompts/20261015T100903Z-session-ui-theme-update-assets.md @@ -451,3 +451,26 @@ Resume from `CKPT-035`. First let's start with step 4 (Process & Quality Gate Ha - Documented full blast radius, impact matrix, verification record (17/17 live E2E passing, 197/197 unit tests passing, 98.2% coverage, Gates 5.1/9.1/14.1 PASS with 0 Critical blockers), and disposition checkpoint (Approved & Closed). +## Turn 14: 2026-10-17T05:51:00Z — End-to-End Sales Demo from Scratch Procedure + +### User Request +> Great. Now suggest to me how to proceed with the demo from scratch + +### Key Decisions & Actions Summary + +1. **Container & Volume Infrastructure Hardening:** + - Updated `project_code/compose.yaml` to mount `./backend:/app/backend`, `./sandbox:/app/sandbox`, and `./frontend/dist:/usr/share/nginx/html:ro`. + - Re-aligned navigation gating in `project_code/frontend/src/App.tsx` across `receiving`, `inventory`, and `logistics` to include canonical roles (`Yard Supervisor`, `Logistics Coordinator`). + - Built fresh frontend bundle using `docker compose build frontend` in 7.4 seconds. + - Recreated and validated both backend (port 8000) and frontend (port 3000) containers; verified health checks. + - Verified live container demo seed endpoint: `POST /api/v1/demo/seed` returns HTTP 200 with all 21 relational domain entities seeded. + +2. **Actionable Walkthrough Structure:** + - Synthesized the end-to-end demo execution guide connecting: + - Pre-flight reset & seeding commands (`scripts/demo/cleanup_demo_data.py` & `seed_demo_data.py`). + - Accessing the portal at `http://localhost:3000` in Mock Identity mode. + - The 8-journey golden thread spanning Buyer, Yard, QC, Godown, Sales, Logistics, Accounts, and MD personas. + - Live demonstration of zero-hardcoding via clean purge and re-seed. + + +