Demo setup

This commit is contained in:
Prashant Shendre 2026-10-17 11:24:07 +05:30
parent e89b8388f5
commit 0c7a68a7b0
2 changed files with 15 additions and 1 deletions

View File

@ -74,6 +74,9 @@ services:
ports: ports:
- "127.0.0.1:8000:8000" - "127.0.0.1:8000:8000"
command: ["uvicorn", "backend.app.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1", "--log-level", "info"] 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: depends_on:
postgres: postgres:
condition: service_healthy condition: service_healthy
@ -92,6 +95,8 @@ services:
dockerfile: docker/Dockerfile.frontend dockerfile: docker/Dockerfile.frontend
ports: ports:
- "${PORTAL_PORT:-3000}:80" - "${PORTAL_PORT:-3000}:80"
volumes:
- ./frontend/dist:/usr/share/nginx/html:ro
depends_on: depends_on:
backend: backend:
condition: service_healthy condition: service_healthy

View File

@ -163,6 +163,7 @@ const ALL_NAV_ITEMS: NavItemConfig[] = [
allowedRoles: [ allowedRoles: [
'Mandi Buyer', 'Mandi Buyer',
'Purchase Manager', 'Purchase Manager',
'Yard Supervisor',
'Partner / MD', 'Partner / MD',
'Tenant Administrator', 'Tenant Administrator',
'Procurement Officer', 'Procurement Officer',
@ -188,11 +189,15 @@ const ALL_NAV_ITEMS: NavItemConfig[] = [
label: 'Stock Ledger', label: 'Stock Ledger',
icon: Warehouse, icon: Warehouse,
allowedRoles: [ allowedRoles: [
'Yard Supervisor',
'Logistics Coordinator',
'Warehouse Clerk', 'Warehouse Clerk',
'Purchase Manager', 'Purchase Manager',
'Partner / MD', 'Partner / MD',
'Tenant Administrator', 'Tenant Administrator',
'Desk Trader', 'Desk Trader',
'Sales Executive',
'Sales Manager',
'Accounts Executive' 'Accounts Executive'
], ],
}, },
@ -214,6 +219,7 @@ const ALL_NAV_ITEMS: NavItemConfig[] = [
label: 'Dispatch & Fleet', label: 'Dispatch & Fleet',
icon: Send, icon: Send,
allowedRoles: [ allowedRoles: [
'Logistics Coordinator',
'Warehouse Clerk', 'Warehouse Clerk',
'Sales Executive', 'Sales Executive',
'Sales Manager', 'Sales Manager',
@ -296,9 +302,12 @@ const resolveDefaultTab = (roles: string[]): TabId => {
if (roles.includes('Quality Officer') || roles.includes('Lab Chemist')) { if (roles.includes('Quality Officer') || roles.includes('Lab Chemist')) {
return 'quality'; return 'quality';
} }
if (roles.includes('Warehouse Clerk')) { if (roles.includes('Yard Supervisor') || roles.includes('Warehouse Clerk')) {
return 'receiving'; return 'receiving';
} }
if (roles.includes('Logistics Coordinator')) {
return 'logistics';
}
if (roles.includes('System Administrator')) { if (roles.includes('System Administrator')) {
return 'tenants'; return 'tenants';
} }