setShowInviteModal(false)} />
+
+
Assign Enterprise Role
+
+ Bind an authenticated user to {activeBusinessName} with specific business permissions.
+
+
+
);
};
-
diff --git a/project_code/frontend/src/index.css b/project_code/frontend/src/index.css
new file mode 100644
index 0000000..e8b266f
--- /dev/null
+++ b/project_code/frontend/src/index.css
@@ -0,0 +1,58 @@
+@tailwind base;
+@tailwind components;
+@tailwind utilities;
+
+@layer base {
+ :root {
+ --surface: #f9f9f6;
+ --sidebar-surface: #162a22;
+ --sidebar-surface-active: #2a4237;
+ --card-surface: #ffffff;
+ --card-border: #e8e6df;
+ --accent-ochre: #c89332;
+ --text-primary: #1c1e1d;
+ --text-muted: #78716c;
+ --status-normal-bg: #eaf5ed;
+ --status-normal-text: #2d6a4f;
+ --status-watch-bg: #fdf6e7;
+ --status-watch-text: #926a1d;
+ }
+
+ body {
+ background-color: var(--surface);
+ color: var(--text-primary);
+ font-family: 'Inter', system-ui, -apple-system, sans-serif;
+ }
+}
+
+@layer components {
+ /* AgriTrade Mercantile Component Primitives */
+ .btn-primary {
+ @apply bg-sidebar-surface hover:bg-sidebar-active text-white text-sm font-medium px-4 py-2 rounded transition shadow-none disabled:opacity-50;
+ }
+
+ .btn-secondary {
+ @apply bg-white hover:bg-surface-low text-text-primary border border-card-border text-sm font-medium px-4 py-2 rounded transition shadow-none disabled:opacity-50;
+ }
+
+ .btn-accent {
+ @apply bg-accent-ochre hover:brightness-95 text-white text-sm font-semibold px-4 py-2 rounded transition shadow-none disabled:opacity-50;
+ }
+
+ .badge-pill-normal {
+ @apply inline-flex items-center px-2 py-0.5 rounded-full text-[0.6875rem] font-semibold tracking-wider uppercase bg-status-normal-bg text-status-normal-text;
+ }
+
+ .badge-pill-watch {
+ @apply inline-flex items-center px-2 py-0.5 rounded-full text-[0.6875rem] font-semibold tracking-wider uppercase bg-status-watch-bg text-status-watch-text;
+ }
+
+ .card-mercantile {
+ @apply bg-card-surface border border-card-border rounded p-6 shadow-none;
+ }
+
+ .callout-ochre {
+ @apply bg-status-watch-bg border-l-[3px] border-accent-ochre p-4 rounded-r;
+ }
+}
+
diff --git a/project_code/frontend/src/main.tsx b/project_code/frontend/src/main.tsx
index beefc05..1f75b2e 100644
--- a/project_code/frontend/src/main.tsx
+++ b/project_code/frontend/src/main.tsx
@@ -1,10 +1,10 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import { App } from './App';
+import './index.css';
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
);
-
diff --git a/project_code/frontend/tailwind.config.js b/project_code/frontend/tailwind.config.js
new file mode 100644
index 0000000..f19aa58
--- /dev/null
+++ b/project_code/frontend/tailwind.config.js
@@ -0,0 +1,98 @@
+/** @type {import('tailwindcss').Config} */
+export default {
+ content: [
+ "./index.html",
+ "./src/**/*.{js,ts,jsx,tsx}",
+ ],
+ theme: {
+ extend: {
+ colors: {
+ surface: {
+ DEFAULT: '#f9f9f6',
+ dim: '#dadad7',
+ bright: '#f9f9f6',
+ lowest: '#ffffff',
+ low: '#f4f4f1',
+ container: '#eeeeeb',
+ high: '#e8e8e5',
+ highest: '#e2e3e0',
+ },
+ 'on-surface': {
+ DEFAULT: '#1a1c1b',
+ variant: '#434845',
+ },
+ primary: {
+ DEFAULT: '#030b08',
+ pine: '#18231f',
+ container: '#18231f',
+ 'on-container': '#7f8b85',
+ },
+ secondary: {
+ DEFAULT: '#865300',
+ amber: '#df9b42',
+ container: '#feb55a',
+ },
+ tertiary: {
+ DEFAULT: '#120705',
+ container: '#2c1d1b',
+ },
+ sidebar: {
+ surface: '#162A22',
+ active: '#2A4237',
+ },
+ card: {
+ surface: '#FFFFFF',
+ border: '#E8E6DF',
+ },
+ text: {
+ primary: '#1C1E1D',
+ muted: '#78716C',
+ },
+ status: {
+ 'normal-bg': '#EAF5ED',
+ 'normal-text': '#2D6A4F',
+ 'watch-bg': '#FDF6E7',
+ 'watch-text': '#926A1D',
+ },
+ accent: {
+ ochre: '#C89332',
+ },
+ outline: {
+ DEFAULT: '#737875',
+ variant: '#c3c8c4',
+ },
+ error: {
+ DEFAULT: '#ba1a1a',
+ container: '#ffdad6',
+ },
+ },
+ fontFamily: {
+ sans: ['Inter', 'system-ui', '-apple-system', 'sans-serif'],
+ mono: ['JetBrains Mono', 'ui-monospace', 'monospace'],
+ },
+ borderRadius: {
+ sm: '0.125rem',
+ DEFAULT: '0.25rem',
+ md: '0.375rem',
+ lg: '0.5rem',
+ xl: '0.75rem',
+ full: '9999px',
+ },
+ spacing: {
+ gutter: '1rem',
+ 'gutter-compact': '0.5rem',
+ 'space-xs': '0.25rem',
+ 'space-sm': '0.5rem',
+ 'space-md': '0.75rem',
+ 'space-lg': '1rem',
+ 'space-xl': '1.5rem',
+ 'space-xxl': '2rem',
+ },
+ boxShadow: {
+ tactile: '0 4px 16px -2px rgba(22, 42, 34, 0.08), 0 1px 2px 0 rgba(22, 42, 34, 0.04)',
+ },
+ },
+ },
+ plugins: [],
+}
+
diff --git a/project_sdlc/00_process_control/change_request_register.md b/project_sdlc/00_process_control/change_request_register.md
index eb06a18..d68ce43 100644
--- a/project_sdlc/00_process_control/change_request_register.md
+++ b/project_sdlc/00_process_control/change_request_register.md
@@ -7,7 +7,7 @@
| **Gated By** | `up-change-request-impact` |
| **Scope** | Product Scope, Functional Requirements (`FR-xxx`), Use Cases (`UC-xxx`), Architecture, Code |
| **Meta-Process Changes** | Governed separately via `up-process-change` in [`process_change_register.md`](process_change_register.md) (`PCR-xxx`) |
-| **Last Updated** | 2026-10-11 |
+| **Last Updated** | 2026-10-15 |
---
@@ -18,6 +18,7 @@ Product Change Requests are impact-analyzed below; each record states its curren
| CR-ID | Trigger Type | Raised By | Date | Originating Stage | Description | Affected Items | Blast Radius / Impact | Disposition | Status |
|---|---|---|---|---|---|---|---|---|---|
| `CR-001` | Bug / Traceability defect | Human request, analyzed by AI | 2026-10-11 | Stage 5 — Elaboration | Review and realign the sample UC-001 identity/authentication use case and its source mappings to the baselined ATB PRD and active tech profile; decide which sample-specific auth/session constraints remain product requirements. | `UC-001`, `FR-AUTH-001`–`FR-AUTH-003` | See CR-001 Impact Analysis below. | Approved by stakeholder on 2026-10-11: UC-001 remains the OIDC AuthN/AuthZ use case; align it with the ATB baseline | Closed — approved impact set rebaselined and verified; iteration construction remains pending |
+| `CR-002` | Scope / UI Rebaseline | User request, analyzed by AI | 2026-10-15 | Stage 11 — Wireframes / Cross-Cutting | Rebaseline all front-end UI tokens, wireframe specifications, layout architecture, and React code to the AgriTrade Mercantile design system defined in `DESIGN.md`. | `06_wireframes/DESIGN.md`, `wireframe_index.md`, 32 screen specs in `screen_specs/`, `project_code/frontend/` | See CR-002 Impact Analysis below. | Approved by stakeholder on 2026-10-15 | Closed — All front-end assets rebaselined and verified |
## CR-001 — UC-001 Alignment with the ATB Product Baseline
@@ -64,3 +65,46 @@ The stakeholder confirmed that UC-001 was executed end-to-end as a process sampl
- **Disposition:** Approved by stakeholder on 2026-10-11, with UC-001 covering OIDC AuthN/AuthZ and aligned to the current ATB baseline.
- **Status:** Closed — approved requirements/design/test-specification impact set rebaselined and verified. Gate 5.1 passed with zero Critical findings and two justified source-parser warnings. Gate 14.1 was run and failed with two Critical construction-evidence findings (missing dense workbook and Bruno collections); UC-001 requirements remain Baselined, not Delivered, and iteration-01 remains Incomplete / Pending Construction. Gate 14.1 is still mandatory before delivery or iteration closure.
+
+
+## CR-002 — Rebaseline Front-End Assets to AgriTrade Mercantile Design System
+
+### Request and Trigger
+
+The user updated `project_sdlc/06_wireframes/DESIGN.md` (commit `c9883df`) with the **AgriTrade Mercantile** design system (*Tactile Corporate Minimalism*). This introduces a complete token refresh:
+- Palette: Primary (`#18231F`), Sidebar Base (`#162A22`), Sidebar Active (`#2A4237`), Secondary (`#DF9B42`), Accent Ochre (`#C89332`), Warm Stone Surface (`#F7F7F4` / `#f9f9f6`), Card Surface (`#FFFFFF`), Precision Borders (`#E8E6DF`), Status Cleared (`#EAF5ED` / `#2D6A4F`), Status Watch (`#FDF6E7` / `#926A1D`).
+- Typography: Inter for interface text, JetBrains Mono for tabular measurements/values.
+- Geometry: 4px default roundedness, pill badges (`9999px`).
+- Layout Archetype: 240px persistent dark pine drawer on the left with an asymmetric operational grid.
+
+The user approved ("proceed") cascading this update across all affected front-end specifications, configurations, layouts, reusable UI components, and views.
+
+### Blast Radius & Impact Analysis
+
+| Artifact / SDLC Tier | Impact & Rebaseline Scope |
+|---|---|
+| `project_sdlc/06_wireframes/DESIGN.md` | Ground truth tokens updated (commit `c9883df`). |
+| `project_sdlc/06_wireframes/wireframe_index.md` | Reconcile design token references and layout archetypes. |
+| `project_sdlc/06_wireframes/screen_specs/*.md` (32 screen specs) | Reconcile Section 1 (Visual Design Reference) and Section 2 (Layout & navigation drawer) to the new tokens. |
+| `project_code/frontend/tailwind.config.js` | Create/configure Tailwind theme tokens matching `DESIGN.md`. |
+| `project_code/frontend/postcss.config.js` | Configure PostCSS for Tailwind CSS. |
+| `project_code/frontend/index.html` | Update fonts (Inter, JetBrains Mono) and body surface background. |
+| `project_code/frontend/src/index.css` | Define Tailwind directives and CSS token custom properties. |
+| `project_code/frontend/src/main.tsx` | Import `index.css`. |
+| `project_code/frontend/src/components/ui/` | Scaffold shared components (`Button`, `StatusPill`, `Input`, `Card`, `Table`). |
+| `project_code/frontend/src/App.tsx` | Rebuild shell with 240px persistent sidebar drawer (`#162A22`) and warm stone canvas. |
+| `project_code/frontend/src/features/*` | Realign Auth and Multi-Tenancy views to the new components and color tokens. |
+| `project_sdlc/07_test_design/manual_qa/` | Update `MANUAL_TESTING_GUIDE.md` visual inspection criteria. |
+| `project_sdlc/05_iteration_planning/` | Maintain `@ui-designer-dev` surface status in `iteration_surface_matrix.md`. |
+
+### Verification Record
+
+1. **Stage 11 Wireframes:** `wireframe_index.md` and all 32 screen specifications updated to AgriTrade Mercantile design tokens and persistent drawer layout; references tagged with `last_cr: CR-002`.
+2. **Stage 13 Code:** `tailwind.config.js`, `postcss.config.js`, `index.html`, and `src/index.css` configured; reusable UI components (`Button`, `StatusPill`, `Card`, `Input`) authored; `App.tsx` shell refactored to 240px persistent navigation drawer; 7 feature views updated to tactile tokens.
+3. **Traceability Gates:** Verified via `scripts/verify_traceability_gates.py --all` (Gates 5.1, 9.1, and 14.1 PASS with 0 Critical blockers).
+4. **Automated Coverage:** Verified via `scripts/run_tests.sh --scope iteration-01` (197 tests pass with 98.4% coverage >= 95.0% threshold).
+
+### Disposition Checkpoint
+
+- **Disposition:** Approved by user on 2026-10-15.
+- **Status:** Closed — All front-end assets rebaselined and verified across wireframes, configs, shell layout, components, views, and delivery surface matrices.
diff --git a/project_sdlc/05_iteration_planning/iterations/iteration-01/iteration_surface_matrix.md b/project_sdlc/05_iteration_planning/iterations/iteration-01/iteration_surface_matrix.md
index 9cdd039..80c28ab 100644
--- a/project_sdlc/05_iteration_planning/iterations/iteration-01/iteration_surface_matrix.md
+++ b/project_sdlc/05_iteration_planning/iterations/iteration-01/iteration_surface_matrix.md
@@ -6,7 +6,7 @@
| **Governed Standard** | UP-AI v1.5 Stage 10 Standard |
| **Status** | Delivered (E2E Verified) |
| **Version** | 1.4.0 |
-| **Last CR** | `CR-001` |
+| **Last CR** | `CR-002` |
---
diff --git a/project_sdlc/05_iteration_planning/iterations/iteration-02/iteration_surface_matrix.md b/project_sdlc/05_iteration_planning/iterations/iteration-02/iteration_surface_matrix.md
index 8a78b4f..0fca2b2 100644
--- a/project_sdlc/05_iteration_planning/iterations/iteration-02/iteration_surface_matrix.md
+++ b/project_sdlc/05_iteration_planning/iterations/iteration-02/iteration_surface_matrix.md
@@ -6,7 +6,7 @@
| **Governed Standard** | UP-AI v1.5 Stage 13 Standard |
| **Status** | Delivered (E2E Verified) — Live PostgreSQL 17 RLS & Live Container API Verified |
| **Version** | 1.2.0 |
-| **Last CR** | none |
+| **Last CR** | `CR-002` |
---
diff --git a/project_sdlc/06_wireframes/DESIGN.md b/project_sdlc/06_wireframes/DESIGN.md
index 9269d41..2c6d662 100644
--- a/project_sdlc/06_wireframes/DESIGN.md
+++ b/project_sdlc/06_wireframes/DESIGN.md
@@ -1,538 +1,213 @@
---
-id: DESIGN
-version: 1.1.0
-status: Reviewed
-last_cr: CR-001
+name: AgriTrade Mercantile
+colors:
+ surface: '#f9f9f6'
+ surface-dim: '#dadad7'
+ surface-bright: '#f9f9f6'
+ surface-container-lowest: '#ffffff'
+ surface-container-low: '#f4f4f1'
+ surface-container: '#eeeeeb'
+ surface-container-high: '#e8e8e5'
+ surface-container-highest: '#e2e3e0'
+ on-surface: '#1a1c1b'
+ on-surface-variant: '#434845'
+ inverse-surface: '#2f312f'
+ inverse-on-surface: '#f1f1ee'
+ outline: '#737875'
+ outline-variant: '#c3c8c4'
+ surface-tint: '#55615c'
+ primary: '#030b08'
+ on-primary: '#ffffff'
+ primary-container: '#18231f'
+ on-primary-container: '#7f8b85'
+ inverse-primary: '#bdc9c3'
+ secondary: '#865300'
+ on-secondary: '#ffffff'
+ secondary-container: '#feb55a'
+ on-secondary-container: '#734700'
+ tertiary: '#120705'
+ on-tertiary: '#ffffff'
+ tertiary-container: '#2c1d1b'
+ on-tertiary-container: '#9a8380'
+ error: '#ba1a1a'
+ on-error: '#ffffff'
+ error-container: '#ffdad6'
+ on-error-container: '#93000a'
+ primary-fixed: '#d9e5df'
+ primary-fixed-dim: '#bdc9c3'
+ on-primary-fixed: '#131e1a'
+ on-primary-fixed-variant: '#3e4945'
+ secondary-fixed: '#ffddb8'
+ secondary-fixed-dim: '#ffb961'
+ on-secondary-fixed: '#2b1700'
+ on-secondary-fixed-variant: '#663e00'
+ tertiary-fixed: '#f8dcd9'
+ tertiary-fixed-dim: '#dbc1bd'
+ on-tertiary-fixed: '#261816'
+ on-tertiary-fixed-variant: '#554240'
+ background: '#f9f9f6'
+ on-background: '#1a1c1b'
+ surface-variant: '#e2e3e0'
+ sidebar-surface: '#162A22'
+ sidebar-surface-active: '#2A4237'
+ card-surface: '#FFFFFF'
+ card-border: '#E8E6DF'
+ text-primary: '#1C1E1D'
+ text-muted: '#78716C'
+ status-normal-bg: '#EAF5ED'
+ status-normal-text: '#2D6A4F'
+ status-watch-bg: '#FDF6E7'
+ status-watch-text: '#926A1D'
+ accent-ochre: '#C89332'
+typography:
+ headline-xl:
+ fontFamily: Inter
+ fontSize: 2rem
+ fontWeight: '700'
+ lineHeight: 2.5rem
+ letterSpacing: -0.02em
+ headline-lg:
+ fontFamily: Inter
+ fontSize: 1.5rem
+ fontWeight: '600'
+ lineHeight: 2rem
+ letterSpacing: -0.015em
+ headline-md:
+ fontFamily: Inter
+ fontSize: 1.25rem
+ fontWeight: '600'
+ lineHeight: 1.75rem
+ letterSpacing: -0.01em
+ headline-sm:
+ fontFamily: Inter
+ fontSize: 1.125rem
+ fontWeight: '600'
+ lineHeight: 1.5rem
+ body-lg:
+ fontFamily: Inter
+ fontSize: 1rem
+ fontWeight: '400'
+ lineHeight: 1.5rem
+ body-md:
+ fontFamily: Inter
+ fontSize: 0.875rem
+ fontWeight: '400'
+ lineHeight: 1.25rem
+ body-sm:
+ fontFamily: Inter
+ fontSize: 0.75rem
+ fontWeight: '400'
+ lineHeight: 1rem
+ label-uppercase:
+ fontFamily: Inter
+ fontSize: 0.6875rem
+ fontWeight: '600'
+ lineHeight: 0.875rem
+ letterSpacing: 0.06em
+ metric-mono-lg:
+ fontFamily: JetBrains Mono
+ fontSize: 1.125rem
+ fontWeight: '500'
+ lineHeight: 1.5rem
+ metric-mono-md:
+ fontFamily: JetBrains Mono
+ fontSize: 0.875rem
+ fontWeight: '500'
+ lineHeight: 1.25rem
+ metric-mono-sm:
+ fontFamily: JetBrains Mono
+ fontSize: 0.75rem
+ fontWeight: '400'
+ lineHeight: 1rem
+rounded:
+ sm: 0.125rem
+ DEFAULT: 0.25rem
+ md: 0.375rem
+ lg: 0.5rem
+ xl: 0.75rem
+ full: 9999px
+spacing:
+ gutter: 1rem
+ gutter-compact: 0.5rem
+ margin: 1.5rem
+ margin-mobile: 0.75rem
+ space-xs: 0.25rem
+ space-sm: 0.5rem
+ space-md: 0.75rem
+ space-lg: 1rem
+ space-xl: 1.5rem
+ space-xxl: 2rem
---
-# Design.md — IndiaAgriTrade (RamDayal Agri Commodities) Wholesale Trading Desk
+## Brand & Style
-A comprehensive UI/UX, Component Architecture, and Visual Design Specification for building the **IndiaAgriTrade RamDayal BackOffice & Wholesale Trading Desk** using **Vue 3 (Composition API /
-
-
-
-
-
{{ title }}
-
- {{ trend >= 0 ? '▲ +' : '▼ ' }}{{ trend }}%
-
-
-
-
{{ subtitle }}
-
-
-```
-
-### 5.2 Live Mandi Commodity Ticker (`MandiTickerMarquee.vue`)
-```vue
-
-
-
-
-
-
-
-
-
-
- Live Mandi Rates
-
-
-
- {{ item.commodity }}
- ₹{{ item.rate.toLocaleString('en-IN') }}
-
- {{ item.change >= 0 ? '+' : '' }}{{ item.change }}
-
-
-
-
-
-
-```
-
-### 5.3 Sauda Entry Form Dialog (`SaudaSlipModal.vue`)
-```vue
-
-
-
-
-
-
-
-
New Sauda Slip (Trade Booking)
-
RamDayal Wholesale Trading Desk
-
-
-
-
-
-
-
-
-```
-
----
-
-## 6. Responsive Strategy & Mobile Mandi Trader UX
-
-Agricultural trading operators frequently shift between desktop multi-column screens at the trading desk and smartphone screens while in the field at APMC yards or godowns.
-
-1. **Card-Based Row Collapsing**:
- - On desktop, view dense data grids (`table` layout with 10+ columns: Sauda No, Time, Commodity, Counterparty, Qty, Rate, Total, Status, Action).
- - On mobile (`< 768px`), automatically collapse tables into high-contrast swipeable cards showing Commodity badge, Net Qtl, Rate in large mono font, and quick call/WhatsApp buttons for counterparties.
-2. **Offline Resilience & Touch Targets**:
- - Touch targets for trade execution buttons ≥ 44px × 44px.
- - PWA ready design with local cache for mandi price sheets when network in rural APMC yards drops.
-3. **Hindi / Bilingual Terminology Support**:
- - Labels pair formal English with conversational Mandi Hindi terms (e.g., *Kharid/Buy*, *Bikri/Sell*, *Bora/Bag*, *Bardana/Packaging*, *Karda/Deduction*, *Hamali/Labor*).
-
----
-
-## 7. Implementation Roadmap & Quickstart
-
-```bash
-# 1. Initialize Vue 3 project with Vite & Tailwind CSS
-npm create vite@latest india-agri-trade -- --template vue
-cd india-agri-trade
-npm install -D tailwindcss postcss autoprefixer @tailwindcss/forms
-npx tailwindcss init -p
-
-# 2. Key recommended libraries
-npm install pinia vue-router lucide-vue-next
-```
-
-This specification provides the full architectural, functional, and aesthetic blueprint to implement the **IndiaAgriTrade RamDayal BackOffice & Wholesale Trading Desk** in Vue 3 with Tailwind CSS.
-
-
-## CR-001 — Authentication UI Boundary
-
-This design specification does not define the UC-001 login, authorization-denial, or logout screens and flows. The `useAuthStore.js` project-tree reference is not a screen or session contract. Those portal routes and states remain pending the UC-001 wireframe specification; tenant selection and membership screens belong to UC-019. Do not infer token lifetime, signing algorithm, revocation mechanism, or cross-tenant role behavior from this document.
+### Alert & Callout Badges
+- Surface `#FDF6E7` with a crisp 3px solid left accent border in `#C89332`. Interior text blends a bold Inter body headline with monospace contract identifiers.
\ No newline at end of file
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-ALERT-001_operational_alerts.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-ALERT-001_operational_alerts.md
index 9d89281..a57753b 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-ALERT-001_operational_alerts.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-ALERT-001_operational_alerts.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-OPERATIONALALERTS-001` (Real-Time Operational Alerts Engine)](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-014-operational-alerts/functional-reqs.md#fr-operationalalerts-001-real-time-operational-alerts-engine) |
| **Auth Role / Scope Claims** | `Operations Supervisor`, `Partner`, `Managing Director`, `Tenant Admin` |
| **Iteration** | `iteration-06` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Real-Time Operational Incident & Hazard Monitoring Console.
-- **Visual Design Reference:** Incident dashboard adhering to [`DESIGN.md`](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/06_wireframes/DESIGN.md) (`rose-600` Critical alerts, `amber-500` Warnings, `blue-500` Info, `slate-800` card surfaces).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Scans and aggregates real-time operational state across four critical business hazard categories:
1. **QC Pending Alert:** Inward lots in state `Under QC` for $>24\text{ hours}$ or flagged as `QC Hold`.
2. **Warehouse Capacity Alert:** Godowns exceeding $85\%$ capacity utilization.
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-AUTH-001_login.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-AUTH-001_login.md
index f10e61d..59f3c81 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-AUTH-001_login.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-AUTH-001_login.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-AUTH-001` (OIDC Authentication)](../../03_requirements/use_cases/uc-001_user-authentication/functional-reqs.md#fr-auth-001-oidc-authentication) |
| **Auth Role / Scope Claims** | Public (Unauthenticated entry); redirects to Keycloak OIDC Realm |
| **Iteration** | `iteration-01` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Full-page Authentication Gateway & PKCE Callback Handler.
-- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) corporate palette (`Slate-900`, `Emerald-600` primary accents).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Unauthenticated users hitting any protected route or `/login` are presented with an enterprise sign-in interface. Clicking "Sign In with Keycloak" initiates the OAuth2 Authorization Code flow with PKCE (`code_challenge`). The callback at `/auth/callback` exchanges the authorization code for tokens, initializes session state via `GET /api/v1/auth/session`, and redirects to the intended destination or dashboard.
---
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-AUTH-002_access_denied.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-AUTH-002_access_denied.md
index afe9a62..e55f9c9 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-AUTH-002_access_denied.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-AUTH-002_access_denied.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-AUTH-002` (Role-Based Authorization)](../../03_requirements/use_cases/uc-001_user-authentication/functional-reqs.md#fr-auth-002-role-based-authorization) |
| **Auth Role / Scope Claims** | Authenticated User lacking required role permissions (`403 Forbidden`) |
| **Iteration** | `iteration-01` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Security Boundary Guard & 403 Forbidden Feedback Screen.
-- **Visual Design Reference:** Tailwind CSS / shadcn-ui warning state (`Amber-600` / `Rose-600` accents).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Rendered whenever an authenticated user attempts to access a frontend route, view, or action prohibited by the `BRD-FR-040` role permission matrix or segregation-of-duties rules (e.g., Quality Officer attempting to edit price rates, Yard Supervisor attempting to confirm sales, or Sales Executive attempting to override credit locks).
---
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-AUTH-003_session_logout.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-AUTH-003_session_logout.md
index b82131e..de1d05c 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-AUTH-003_session_logout.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-AUTH-003_session_logout.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-AUTH-003` (Session Handling and Logout)](../../03_requirements/use_cases/uc-001_user-authentication/functional-reqs.md#fr-auth-003-session-handling-and-logout) |
| **Auth Role / Scope Claims** | Authenticated User (Any valid role) |
| **Iteration** | `iteration-01` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Account Security & Session Management View.
-- **Visual Design Reference:** Tailwind CSS / shadcn-ui settings page layout (`Slate-800` card borders, `Rose-600` destructive buttons).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Provides the user with visibility into their current application session (subject identifier, roles, session establishment timestamp), and enables voluntary termination of the session either via the persistent Header User Profile Menu or the dedicated `/account/sessions` settings tab. Clicking "Log Out" issues `POST /api/v1/auth/logout`, clears client storage, and redirects to `/login`.
---
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-DASH-001_executive_control_centre.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-DASH-001_executive_control_centre.md
index c61c23d..c51ed6c 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-DASH-001_executive_control_centre.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-DASH-001_executive_control_centre.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-EXECUTIVEREPORTING-001` (Executive Control Centre Dashboard)](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-015-executive-reporting/functional-reqs.md#fr-executivereporting-001-executive-control-centre-dashboard) |
| **Auth Role / Scope Claims** | `Partner`, `Managing Director`, `Operations Supervisor`, `Tenant Admin` |
| **Iteration** | `iteration-06` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Executive Control Centre & Operational KPI Dashboard.
-- **Visual Design Reference:** Modern executive card & grid layout adhering to [`DESIGN.md`](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/06_wireframes/DESIGN.md) (`indigo-600` primary metrics, `emerald-600` revenue/profit, `slate-900` high-contrast typography, `amber-500` utilization warnings).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Unified operational dashboard for trading firm principals displaying real-time metrics:
- Top KPI Stat Cards: Total Stock on Hand (MT), Total Active Stock Lines, Intraday Purchase Turnover (INR), Intraday Sales Revenue (INR), Total Customer Receivables (INR).
- Top 10 Stock Lines by Volume: Commodity, Variety, Stack Location, Godown, Available MT, Bags, Unit Value.
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-DISP-001_dispatch_board_weighbridge.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-DISP-001_dispatch_board_weighbridge.md
index cea19bc..58ef14b 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-DISP-001_dispatch_board_weighbridge.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-DISP-001_dispatch_board_weighbridge.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-DISPATCHDELIVERY-001` (Outbound Dispatch Board Console)](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-009-dispatch-delivery/functional-reqs.md#fr-dispatchdelivery-001-outbound-dispatch-board-console), [`FR-DISPATCHDELIVERY-002` (Outbound Weighbridge & Dispatch Bilty/Manifest)](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-009-dispatch-delivery/functional-reqs.md#fr-dispatchdelivery-002-outbound-weighbridge--dispatch-bilty/manifest) |
| **Auth Role / Scope Claims** | `Logistics Coordinator`, `Yard Supervisor`, `Weighbridge Operator`, `Tenant Admin` |
| **Iteration** | `iteration-04` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Logistics Dispatch Board & Outward Weighbridge Manifest Generator.
-- **Visual Design Reference:** Dual-purpose operations view (`blue-600` for dispatch scheduling, `emerald-600` for weighbridge capture, `amber-600` for tolerance alerts).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Logistics coordinators schedule dispatches matching confirmed sales orders, allocated lots, and transport vehicles from the fleet registry. Fleet status is verified: vehicles in `Maintenance` cannot be assigned. The yard weighbridge captures outward Tare weight (empty truck before loading) and Gross weight (loaded truck). The system computes Net Loaded MT and verifies that it matches allocated order MT within $\pm 1.0\%$ tolerance. Upon successful verification, an official transport Bilty / manifest is generated with e-Way bill linkage.
---
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-DISP-002_pod_shortage_settlement.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-DISP-002_pod_shortage_settlement.md
index 7ec5488..0d1ac48 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-DISP-002_pod_shortage_settlement.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-DISP-002_pod_shortage_settlement.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-DISPATCHDELIVERY-003` (In-Transit Tracking & Proof of Delivery (POD))](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-009-dispatch-delivery/functional-reqs.md#fr-dispatchdelivery-003-in-transit-tracking--proof-of-delivery-pod) |
| **Auth Role / Scope Claims** | `Logistics Coordinator`, `Sales Manager`, `Commercial Accountant`, `Partner`, `Tenant Admin` |
| **Iteration** | `iteration-04` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Consignment Delivery Closeout & Transit Shortage Credit Note Settlement Console.
-- **Visual Design Reference:** Document upload and reconciliation view (`emerald-600` for confirmed PODs, `amber-600` for acknowledged shortages, `rose-600` for shortage credit notes requiring approval).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** The Logistics Coordinator logs destination receipt when the customer takes delivery: actual delivery date/time, destination weighbridge net weight, transit shortage/loss MT, and uploaded signed POD reference. Transitioning to `Delivered` automatically generates the finalized Sales Invoice. If a transit shortage is acknowledged by the customer, the system logs a Consignee Shortage Note and generates a compensating Sales Credit Note against the customer's ledger without altering the immutable outbound dispatch Bilty. If the shortage exceeds 2.0%, mandatory Sales Manager approval is required before the credit note is issued.
---
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-EXP-001_operating_expenses.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-EXP-001_operating_expenses.md
index 460c1f6..2074085 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-EXP-001_operating_expenses.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-EXP-001_operating_expenses.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-OPERATINGEXPENSES-001` (Mandi Operating Expense Classification & Recording)](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-013-operating-expenses/functional-reqs.md#fr-operatingexpenses-001-mandi-operating-expense-classification--recording) |
| **Auth Role / Scope Claims** | `Accounts Executive`, `Yard Supervisor`, `Cashier`, `Finance Head`, `Partner`, `Tenant Admin` |
| **Iteration** | `iteration-05` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Operating Expense Register & Atomic Cash/Bank Double-Entry Voucher Form.
-- **Visual Design Reference:** High-efficiency voucher entry form following [`DESIGN.md`](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/06_wireframes/DESIGN.md) (`agri-700` primary buttons, `slate-800` cards, balanced ledger balance verification badges).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Records operational expenses incurred in mandi and godown trading operations. Enforces mandatory classification into standardized Mandi expense categories:
- `Labor / Hamali (loading/unloading)`
- `Freight / Cartage`
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-FLEET-001_fleet_registry.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-FLEET-001_fleet_registry.md
index ea5a7b2..20dbb67 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-FLEET-001_fleet_registry.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-FLEET-001_fleet_registry.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-FLEETREGISTRY-001` (Transport Fleet Registry)](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-010-fleet-registry/functional-reqs.md#fr-fleetregistry-001-transport-fleet-registry) |
| **Auth Role / Scope Claims** | `Fleet Manager`, `Logistics Coordinator`, `Tenant Admin` |
| **Iteration** | `iteration-04` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Transport Asset Master & Operational Availability Directory.
-- **Visual Design Reference:** High-density fleet card/table layout (`emerald-600` for `Available`, `blue-600` for `On Route`, `rose-600` for `Maintenance`).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Fleet managers and logistics coordinators register and manage transport trucks (owned and contract carriers). Captures registration number (e.g. `RJ-09-GA-5678`), make/model, gross payload capacity in MT, ownership category (`Own` vs `Contract`), transporter name, fitness/insurance expiry dates, and operational status (`Available`, `On Route`, `Maintenance`). Enforces invariant: vehicles in `Maintenance` status cannot be assigned to dispatches.
---
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-INW-001_gate_entry.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-INW-001_gate_entry.md
index 39eab5e..a4c50ef 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-INW-001_gate_entry.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-INW-001_gate_entry.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-INWARDRECEIVING-001` (Inward Vehicle Gate Entry & Verification)](../../03_requirements/use_cases/uc-005-inward-receiving/functional-reqs.md#fr-inwardreceiving-001-inward-vehicle-gate-entry--verification), [`FR-INWARDRECEIVING-004` (Weighment Tolerance & Transit Shortage Verification)](../../03_requirements/use_cases/uc-005-inward-receiving/functional-reqs.md#fr-inwardreceiving-004-weighment-tolerance--transit-shortage-verification) |
| **Auth Role / Scope Claims** | `Security Guard`, `Gate Operator`, `Warehouse Clerk`, `Tenant Admin` |
| **Iteration** | `iteration-03` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Security Gatehouse Dispatch Console & Yard Queue Register.
-- **Visual Design Reference:** High-contrast touch-friendly interface following [`DESIGN.md`](../DESIGN.md) (`agri-700` action buttons, large readable input fields, quick license plate scanners).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Security guards and yard operators log arriving trucks carrying agricultural produce. The operator captures vehicle registration number (Indian format: e.g. `RJ-20-GA-1234`), 12-digit e-Way bill number, driver details, supplier dispatch invoice weight and bag count, and links to an active Purchase Sauda contract. The system validates e-Way bill format, verifies that the referenced Sauda is open, issues an Inward Gate Pass Slip, and places the truck into the weighbridge gross queue.
---
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-INW-002_weighbridge_grn.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-INW-002_weighbridge_grn.md
index d50e285..e68eb70 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-INW-002_weighbridge_grn.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-INW-002_weighbridge_grn.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-INWARDRECEIVING-002` (Weighbridge Gross & Tare Weighment Logging)](../../03_requirements/use_cases/uc-005-inward-receiving/functional-reqs.md#fr-inwardreceiving-002-weighbridge-gross--tare-weighment-logging), [`FR-INWARDRECEIVING-003` (Bag Tare Deduction (*Bardana Katai*) & Final Net MT)](../../03_requirements/use_cases/uc-005-inward-receiving/functional-reqs.md#fr-inwardreceiving-003-bag-tare-deduction-bardana-katai--final-net-mt), [`FR-INWARDRECEIVING-005` (Goods Receipt Note (GRN) Posting & Warehouse Stack Placement)](../../03_requirements/use_cases/uc-005-inward-receiving/functional-reqs.md#fr-inwardreceiving-005-goods-receipt-note-grn-posting--warehouse-stack-placement), [`FR-INWARDRECEIVING-006` (Mandatory Lot & Batch Identity Generation)](../../03_requirements/use_cases/uc-005-inward-receiving/functional-reqs.md#fr-inwardreceiving-006-mandatory-lot--batch-identity-generation) |
| **Auth Role / Scope Claims** | `Weighbridge Operator`, `Warehouse Supervisor`, `Warehouse Clerk`, `Tenant Admin` |
| **Iteration** | `iteration-03` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Industrial Weighbridge Scale Terminal & Warehouse Goods Receipt / Lot Stacking Console.
-- **Visual Design Reference:** High-density operator UI following [`DESIGN.md`](../DESIGN.md) (`agri-700` primary buttons, prominent numeric display for weight digits, `grain-100` background).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Captures gross weighment upon arrival and tare weighment after unloading. Automatically calculates gross minus tare. Prompts for bag packaging type (Jute 50kg, HDPE 50kg, Loose bulk) and bag count to compute packaging tare (*Bardana Katai*) with 3-decimal metric tonne precision (NFR-001). Upon tare completion, supervisor reviews transit shortage vs. dispatch invoice, assigns physical warehouse godown stack, posts the Goods Receipt Note (GRN), and generates the unique traceable lot identity (`LOT-YY-MM-COMM-XXXXX`).
---
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-MASTER-001_commodity_catalog.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-MASTER-001_commodity_catalog.md
index 622b7af..b23ce46 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-MASTER-001_commodity_catalog.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-MASTER-001_commodity_catalog.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-MASTERDATA-001` (Agricultural Commodity Master Data Management)](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-016-master-data/functional-reqs.md#fr-masterdata-001-agricultural-commodity-master-data-management) |
| **Auth Role / Scope Claims** | `Tenant Admin`, `Partner`, `Operations Supervisor` |
| **Iteration** | `iteration-07` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Platform Master Data Catalog & Specification Console.
-- **Visual Design Reference:** Adheres to [`DESIGN.md`](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/06_wireframes/DESIGN.md) (`slate-900` table surface, `emerald-600` primary buttons, `amber-500` status chips, `rose-600` deactivation warnings).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:**
- Lists tenant-scoped agricultural commodities with standard packaging, quality tolerance baselines, and botanical varieties.
- Allows Tenant Admins and Partners to create, modify, and manage commodities.
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-MASTER-002_counterparty_directory.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-MASTER-002_counterparty_directory.md
index c5a7e72..aa90ce8 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-MASTER-002_counterparty_directory.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-MASTER-002_counterparty_directory.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-MASTERDATA-002` (Trading Counterparty & Godown Directory)](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-016-master-data/functional-reqs.md#fr-masterdata-002-trading-counterparty-and-godown-directory) |
| **Auth Role / Scope Claims** | `Tenant Admin`, `Partner`, `Finance Officer`, `Operations Supervisor` |
| **Iteration** | `iteration-07` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Enterprise Business Partner & Infrastructure Directory Console.
-- **Visual Design Reference:** Adheres to [`DESIGN.md`](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/06_wireframes/DESIGN.md) (tabbed interface, `slate-900` table background, `emerald-600` primary buttons, badge tags for partner types).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:**
- Provides two administrative tabs:
1. **Counterparties Tab:** Farmers, Commission Agents, Wholesale Processors, and Institutional Buyers. Enforces statutory PAN (`[A-Z]{5}[0-9]{4}[A-Z]{1}`), GSTIN (15 characters), bank account details, and strictly validated credit terms (`7`, `15`, or `21` days).
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-MKT-001_market_desk.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-MKT-001_market_desk.md
index 6f66348..6f28308 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-MKT-001_market_desk.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-MKT-001_market_desk.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-MKT-001` (Capture Daily Mandi Arrival Observations)](../../03_requirements/use_cases/uc-002-market-desk-observations/functional-reqs.md#fr-mkt-001-capture-daily-mandi-arrival-observations), [`FR-MKT-002` (Capture Daily Mandi Price Range and Modal Rate)](../../03_requirements/use_cases/uc-002-market-desk-observations/functional-reqs.md#fr-mkt-002-capture-daily-mandi-price-range-and-modal-rate) |
| **Auth Role / Scope Claims** | `Mandi Buyer`, `Desk Trader`, `Procurement Officer`, `Tenant Admin` |
| **Iteration** | `iteration-03` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Market Intelligence Blotter & Daily Rate Recording Console.
-- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (`agri-700` primary buttons, `grain-100` card headers, `slate-900` text).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Authorized Mandi Buyers and Desk Traders monitor and record daily arrivals (in MT) and APMC auction rates (Min, Max, Modal rate in ₹/Qtl) for key monitored mandis across commodities (Wheat, Chana, Mustard, Soyabean, etc.). The console prevents duplicate entries for the same mandi/commodity/variety/date, prevents future observation dates, supports flagging market closure/holidays, and computes arrival variance against internal stock position.
---
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-MKT-003_commodity_price_trends.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-MKT-003_commodity_price_trends.md
index 5898a6a..000b113 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-MKT-003_commodity_price_trends.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-MKT-003_commodity_price_trends.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-MARKETTRENDANALYTICS-001` (Intraday Price Trend Analysis & 20-Day Benchmark Analytics)](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-003-market-trend-analytics/functional-reqs.md#fr-markettrendanalytics-001-intraday-price-trend-analysis--20-day-benchmark-analytics) |
| **Auth Role / Scope Claims** | `Purchase Manager`, `Partner`, `Managing Director`, `Tenant Admin` |
| **Iteration** | `iteration-06` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Commodity Price Analytics & Technical Benchmark Console.
-- **Visual Design Reference:** Financial chart and indicator layout adhering to [`DESIGN.md`](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/06_wireframes/DESIGN.md) (`amber-500` modal price curve, `blue-500` 20-day SMA, `emerald-500` 20-day high channel, `rose-500` 20-day low channel, `slate-800` cards).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Renders interactive visual charts and trend tables comparing 20-day historical modal rates for selected commodities across Mandis:
- 20-day Simple Moving Average ($\text{SMA}_{20}$):
$$\text{SMA}_{20} = \frac{1}{20} \sum_{i=1}^{20} \text{Modal Rate}_i$$
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-PAY-001_supplier_payables_aging.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-PAY-001_supplier_payables_aging.md
index 9fff35c..7e133d6 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-PAY-001_supplier_payables_aging.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-PAY-001_supplier_payables_aging.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-SUPPLIERPAYABLES-001` (Supplier Payables Aging & Balance Snapshots)](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-012-supplier-payables/functional-reqs.md#fr-supplierpayables-001-supplier-payables-aging--balance-snapshots) |
| **Auth Role / Scope Claims** | `Accounts Executive`, `Finance Head`, `Purchase Manager`, `Partner`, `Tenant Admin` |
| **Iteration** | `iteration-05` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Accounts Payable Aging Console & Supplier Disbursement Register.
-- **Visual Design Reference:** High-density accounts payable dashboard following [`DESIGN.md`](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/06_wireframes/DESIGN.md) (`slate-700` headers, `emerald-600` paid status badges, `amber-500` due soon, `rose-600` overdue warnings).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Tracks accounts payable liabilities arising from accepted Goods Receipt Notes (GRNs) across farmers, commission agents, and aggregator suppliers. Computes the payment due date:
$$\text{Due Date} = \text{GRN Date} + \text{Supplier Credit Days}$$
Computes days overdue ($\text{Current Date} - \text{Due Date}$) and classifies payables into aging buckets:
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-POLICY-001_operating_policies.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-POLICY-001_operating_policies.md
index 841ff59..d289433 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-POLICY-001_operating_policies.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-POLICY-001_operating_policies.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-TENANTOPERATINGPOLICIES-001` (Effective-Dated Tenant Operating Policy Configuration)](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-026-tenant-operating-policies/functional-reqs.md#fr-tenantoperatingpolicies-001-effective-dated-tenant-operating-policy-configuration) |
| **Auth Role / Scope Claims** | `Partner`, `Managing Director`, `Tenant Admin` |
| **Iteration** | `iteration-07` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Effective-Dated Risk & Operating Policy Management Console.
-- **Visual Design Reference:** Adheres to [`DESIGN.md`](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/06_wireframes/DESIGN.md) (`slate-900` card and table backgrounds, `emerald-600` primary actions, `indigo-500` version chips, `amber-500` audit warnings).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:**
- Displays the active, effective tenant operating policy governing operational and financial risk rules across all mandi pipelines.
- Allows authorized Partners and Managing Directors to publish updated policies with explicit effective date intervals (`effective_from`, optional `effective_to`).
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-PROC-001_sauda_booking.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-PROC-001_sauda_booking.md
index a2d953f..fe8b4d3 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-PROC-001_sauda_booking.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-PROC-001_sauda_booking.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-PROCUREMENTCONTRACTS-001` (Procurement Price Variance Alert vs. Modal Rate)](../../03_requirements/use_cases/uc-004-procurement-contracts/functional-reqs.md#fr-procurementcontracts-001-procurement-price-variance-alert-vs-modal-rate), [`FR-PROCUREMENTCONTRACTS-002` (Mandi Auction & Direct Purchase Sauda Booking)](../../03_requirements/use_cases/uc-004-procurement-contracts/functional-reqs.md#fr-procurementcontracts-002-mandi-auction--direct-purchase-sauda-booking), [`FR-PROCUREMENTCONTRACTS-003` (Supplier Credit Terms, Payment Due Date, and Advance Recording)](../../03_requirements/use_cases/uc-004-procurement-contracts/functional-reqs.md#fr-procurementcontracts-003-supplier-credit-terms-payment-due-date-and-advance-recording), [`FR-PROCUREMENTCONTRACTS-004` (Mandi Cess, Krishi Kalyan, and Statutory Levies Breakdown)](../../03_requirements/use_cases/uc-004-procurement-contracts/functional-reqs.md#fr-procurementcontracts-004-mandi-cess-krishi-kalyan-and-statutory-levies-breakdown) |
| **Auth Role / Scope Claims** | `Procurement Officer`, `Desk Trader`, `Purchase Manager`, `Tenant Admin` |
| **Iteration** | `iteration-03` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Trade Contract Booking Engine, Commercial Blotter & Landed Cost Calculator.
-- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (`agri-700` primary buttons, `amber-500` warning badges, `slate-900` text).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Commercial buyers book auction or direct purchase contracts (*saudas*) with validated suppliers. Features real-time price variance warning when offered trade rate deviates by $>5\%$ against the latest modal clearing rate, automated calculation of payment due dates from credit term days, advance payment recording, and dynamic breakdown of statutory APMC mandi cess, cess sub-heads, and broker commission. Tracks partial deliveries against booked metric tonnage.
---
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-QC-001_quality_lab.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-QC-001_quality_lab.md
index 269c2ee..87b2e4a 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-QC-001_quality_lab.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-QC-001_quality_lab.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-QUALITYANDLOTCONTROL-001` (Inward Quality Inspection Parameter Recording)](../../03_requirements/use_cases/uc-006-quality-and-lot-control/functional-reqs.md#fr-qualityandlotcontrol-001-inward-quality-inspection-parameter-recording), [`FR-QUALITYANDLOTCONTROL-002` (Quality Deduction / Rebate Calculation)](../../03_requirements/use_cases/uc-006-quality-and-lot-control/functional-reqs.md#fr-qualityandlotcontrol-002-quality-deduction--rebate-calculation), [`FR-QUALITYANDLOTCONTROL-003` (Finite State Machine Enforcement for `QC Hold` vs. `Released`)](../../03_requirements/use_cases/uc-006-quality-and-lot-control/functional-reqs.md#fr-qualityandlotcontrol-003-finite-state-machine-enforcement-for-qc-hold-vs-released), [`FR-QUALITYANDLOTCONTROL-004` (Lot Splitting & Blending Traceability)](../../03_requirements/use_cases/uc-006-quality-and-lot-control/functional-reqs.md#fr-qualityandlotcontrol-004-lot-splitting--blending-traceability) |
| **Auth Role / Scope Claims** | `Quality Inspector`, `Lab Chemist`, `Warehouse Manager`, `Tenant Admin` |
| **Iteration** | `iteration-03` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Laboratory Analytical Testing Station, Quality Decision FSM Cockpit & Commercial Settlement Refraction Sheet.
-- **Visual Design Reference:** High-density scientific testing interface following [`DESIGN.md`](../DESIGN.md) (`agri-700` primary buttons, `emerald-500` for Released, `rose-500` for Rejected, `amber-500` for QC Hold).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Quality Inspectors and Lab Chemists sample inward lots, record physical and analytical assay parameters (Moisture %, Foreign Matter / Admixture %, Damaged / Discolored Grain %, Shriveled Grain %, Oil / Protein Content %). The engine computes commercial deduction/rebate schedules (price cuts or weight deductions) against Fair Average Quality (FAQ) benchmarks. The inspector executes FSM transitions (`QUALITY_HOLD` $\to$ `RELEASED` or `REJECTED`). Produce under `QUALITY_HOLD` is blocked from dispatch or sales orders. Displays lot lineage and digital quality certificates.
---
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-REC-001_customer_ledger_aging.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-REC-001_customer_ledger_aging.md
index beaacae..e295538 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-REC-001_customer_ledger_aging.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-REC-001_customer_ledger_aging.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-CUSTOMERRECEIVABLES-001` (Customer Ledger & Aging Statement)](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-011-customer-receivables/functional-reqs.md#fr-customerreceivables-001-customer-ledger--aging-statement) |
| **Auth Role / Scope Claims** | `Accounts Executive`, `Finance Head`, `Sales Manager`, `Partner`, `Tenant Admin` |
| **Iteration** | `iteration-05` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Party Sub-Ledger Accounting Console & Multi-Bucket Aging Schedule.
-- **Visual Design Reference:** High-density financial tabular layout following [`DESIGN.md`](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/06_wireframes/DESIGN.md) (`emerald-700` positive credits, `rose-700` debit invoices, `slate-800` running balances).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Renders an immutable double-entry customer sub-ledger debiting finalized sales invoices, crediting payment receipts and credit notes, and presenting the real-time outstanding balance. Computes a 4-bucket aging schedule based on invoice posting and due dates:
- `0–7 Days` (Current / Normal)
- `8–15 Days` (Due Soon)
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-REC-002_credit_exposure_locks.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-REC-002_credit_exposure_locks.md
index ca89e4b..511a01d 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-REC-002_credit_exposure_locks.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-REC-002_credit_exposure_locks.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-CUSTOMERRECEIVABLES-002` (Automated Customer Credit Exposure Watch & Threshold Alert)](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-011-customer-receivables/functional-reqs.md#fr-customerreceivables-002-automated-customer-credit-exposure-watch--threshold-alert), [`FR-CUSTOMERRECEIVABLES-003` (Credit Breach Dispatch Lock & Partner Override)](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-011-customer-receivables/functional-reqs.md#fr-customerreceivables-003-credit-breach-dispatch-lock--partner-override) |
| **Auth Role / Scope Claims** | `Accounts Executive`, `Credit Controller`, `Sales Manager`, `Partner`, `Tenant Admin` |
| **Iteration** | `iteration-05` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Risk Monitoring Dashboard & Electronic Authorization Modal.
-- **Visual Design Reference:** Visual exposure meters following [`DESIGN.md`](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/06_wireframes/DESIGN.md) (`emerald-500` normal $\le 80\%$, `amber-500` watch $80\%–100\%$, `rose-600` critical $> 100\%$).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Continuously evaluates all customer credit profiles. If exposure ratio ($\text{Outstanding} / \text{Credit Limit}$) $> 80\%$, the account is tagged with visual `WATCH` status and surfaced on the dashboard. If exposure $> 100\%$, the system sets `LOCKED` status and hard-blocks pending outbound dispatches. Provides a secure Partner electronic override modal requiring digital sign-off and justification notes.
---
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-REC-003_payment_receipts.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-REC-003_payment_receipts.md
index 66deb17..26bb46d 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-REC-003_payment_receipts.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-REC-003_payment_receipts.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-CUSTOMERRECEIVABLES-004` (Customer Payment Receipt Posting)](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-011-customer-receivables/functional-reqs.md#fr-customerreceivables-004-customer-payment-receipt-posting) |
| **Auth Role / Scope Claims** | `Accounts Executive`, `Cashier`, `Finance Head`, `Sales Manager`, `Partner`, `Tenant Admin` |
| **Iteration** | `iteration-05` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Financial Transaction Register, Payment Voucher Entry Form & Instrument Lifecycle Console.
-- **Visual Design Reference:** High-clarity cashier and accounting entry screen following [`DESIGN.md`](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/06_wireframes/DESIGN.md) (`agri-700` primary buttons, `emerald-600` cleared status badges, `amber-500` pending clearance, `rose-600` bounced instrument alerts).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Cashiers and accounts executives record received customer payments across payment modes (`NEFT`, `RTGS`, `Cheque`, `Cash`, `UPI`). Upon receipt entry with status `Cleared` (or when `Pending Clearance` transitions to `Cleared`), the amount is credited to the customer's party sub-ledger, decreasing outstanding debt and recalculating credit exposure. If a Cheque transitions to `Bounced`, the system executes an automatic atomic reversal: debits the party ledger to restore debt, re-evaluates exposure, reinstates credit breach dispatch locks if exposure $> 100\%$, and alerts the Sales Manager and Accounts Executive.
---
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-SALES-001_sales_order_booking.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-SALES-001_sales_order_booking.md
index 15c2859..ae7448a 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-SALES-001_sales_order_booking.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-SALES-001_sales_order_booking.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-SALESCONTRACTS-001` (Customer Sales Contract Booking)](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-008-sales-contracts/functional-reqs.md#fr-salescontracts-001-customer-sales-contract-booking), [`FR-SALESCONTRACTS-002` (Customer Credit Limit & Pre-Order Exposure Verification)](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-008-sales-contracts/functional-reqs.md#fr-salescontracts-002-customer-credit-limit--pre-order-exposure-verification) |
| **Auth Role / Scope Claims** | `Sales Manager`, `Credit Controller`, `Commercial Head`, `Partner`, `Tenant Admin` |
| **Iteration** | `iteration-04` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Commercial Contract Booking Form with Real-Time Credit Bureau / Exposure Interceptor.
-- **Visual Design Reference:** High-clarity commercial entry form following [`DESIGN.md`](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/06_wireframes/DESIGN.md) (`agri-700` primary buttons, `amber-500` credit warning callouts, `rose-600` hard-block credit modals with Partner authorization keys).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Sales managers book wholesale customer contracts specifying customer details, destination city, customer segment (`Wholesale`, `Processor`, `Institutional`, `Distributor`), commodity, variety, grade, contracted MT, rate in ₹/Qtl, and delivery schedule. The screen auto-computes Total Sales Value ($\text{MT} \times 10 \times \text{Rate}$). Prior to confirmation, the system interrogates the customer credit ledger:
$$\text{Projected Exposure} = \text{Current Outstanding INR} + \text{New Order Value INR}$$
$$\text{Projected Exposure Ratio \%} = \frac{\text{Projected Exposure}}{\text{Sanctioned Credit Limit}} \times 100$$
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-SALES-002_lot_allocation.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-SALES-002_lot_allocation.md
index a12267a..cb6fe53 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-SALES-002_lot_allocation.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-SALES-002_lot_allocation.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-SALESCONTRACTS-003` (Sales Order Inventory Allocation)](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-008-sales-contracts/functional-reqs.md#fr-salescontracts-003-sales-order-inventory-allocation) |
| **Auth Role / Scope Claims** | `Sales Manager`, `Yard Supervisor`, `Warehouse Manager`, `Tenant Admin` |
| **Iteration** | `iteration-04` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Inventory Lot Matching & Physical Allocation Workstation.
-- **Visual Design Reference:** Split-panel matching view (`slate-800` left panel for sales order contract parameters, right panel for warehouse stack lot browser with `emerald-600` for `Released` lots and red disabled state with lock icon for `QC Hold` / `Under QC` lots).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** The Sales Manager matches a confirmed sales order to specific warehouse lots. The system interrogates the lot registry:
1. Only lots with FSM state `RELEASED` are selectable. Any lot in `QC_HOLD` or `UNDER_QC` is hard-disabled with an explanatory tooltip.
2. The available unreserved balance on the lot must be $\ge$ requested allocation quantity.
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-SUPPORT-001_privileged_support_access.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-SUPPORT-001_privileged_support_access.md
index 5cb41ea..61be4e0 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-SUPPORT-001_privileged_support_access.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-SUPPORT-001_privileged_support_access.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-TENANTSUPPORTSECURITY-002` (Controlled Privileged Support Access)](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-020-tenant-support/functional-reqs.md#fr-tenantsupportsecurity-002-controlled-privileged-support-access) |
| **Auth Role / Scope Claims** | `Tenant Admin`, `Platform Support Engineer`, `Managing Director` |
| **Iteration** | `iteration-07` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Privileged Access Management (PAM) & Dual-Authorization Security Console.
-- **Visual Design Reference:** Adheres to [`DESIGN.md`](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/06_wireframes/DESIGN.md) (`amber-500` pending approval badges, `emerald-600` active session indicators, `rose-600` break-glass alarms).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:**
- Manages time-bounded support impersonation grants requested by Platform Support Engineers for troubleshooting tenant-specific issues.
- Implements mandatory **Dual-Authorization**:
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-TENANT-001_platform_tenants.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-TENANT-001_platform_tenants.md
index 85e6f04..a5ce279 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-TENANT-001_platform_tenants.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-TENANT-001_platform_tenants.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-TENANTLIFECYCLE-001` (Tenant Provisioning and Lifecycle Management)](../../03_requirements/use_cases/uc-018-tenant-lifecycle/functional-reqs.md#fr-tenantlifecycle-001-tenant-provisioning-and-lifecycle-management) |
| **Auth Role / Scope Claims** | `System Administrator` only |
| **Iteration** | `iteration-02` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Enterprise Administration Dashboard & Tenant Lifecycle Control Panel.
-- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (`Slate-900` sidebar, `Indigo-600` operator accent, status badge pills).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Platform operators and System Administrators view all registered agricultural trading firms, provision new tenant firms via modal dialog, inspect tenant details, and transition lifecycle states (`ACTIVE` $\leftrightarrow$ `SUSPENDED` $\to$ `CLOSED`). Transitioning a tenant to `SUSPENDED` immediately revokes active member sessions and blocks API ingress.
---
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-TENANT-002_tenant_members.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-TENANT-002_tenant_members.md
index d17ac55..5239630 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-TENANT-002_tenant_members.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-TENANT-002_tenant_members.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-TENANTMEMBERSHIPCONTEXT-001` (Tenant Membership and Role Administration)](../../03_requirements/use_cases/uc-019-tenant-membership-context/functional-reqs.md#fr-tenantmembershipcontext-001-tenant-membership-and-role-administration) |
| **Auth Role / Scope Claims** | `Tenant Administrator` within verified active tenant |
| **Iteration** | `iteration-02` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Enterprise Settings / Team Member & Role Management Console.
-- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (`Emerald-600` brand accent, multi-select role tags, danger modal for revocation).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Tenant Administrators manage user accounts and role assignments within their own active firm. Admins can view current members, invite/add new team members by email, update role assignments selecting from the 11 PRD roles, and deactivate memberships. Cross-tenant administration is prevented: queries and mutations are strictly scoped by the active `TenantContext`.
---
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-TENANT-003_tenant_switcher.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-TENANT-003_tenant_switcher.md
index 95e0a95..31670b4 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-TENANT-003_tenant_switcher.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-TENANT-003_tenant_switcher.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-TENANTMEMBERSHIPCONTEXT-002` (Verified Tenant Context for Every Operation)](../../03_requirements/use_cases/uc-019-tenant-membership-context/functional-reqs.md#fr-tenantmembershipcontext-002-verified-tenant-context-for-every-operation) |
| **Auth Role / Scope Claims** | Authenticated User with $\ge 1$ Active Tenant Memberships |
| **Iteration** | `iteration-02` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Tenant Selection Modal & Global Navigation Context Switcher Dropdown.
-- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (Card selector, firm badge, active radio indicator).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:**
1. **Post-Login Interceptor:** When an authenticated user signs in and holds active memberships in multiple agricultural trading firms, the application redirects to `/select-tenant` prior to granting dashboard access.
2. **Global Header Component:** Users can switch active firm context at any time via the top header dropdown. Switching context invokes `POST /api/v1/session/active-tenant` with the selected `tenant_id`, updates the Zustand `tenantStore`, resets local caches, and reloads data scoped to the new tenant.
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-TENANT-004_audit_log_viewer.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-TENANT-004_audit_log_viewer.md
index a78b62c..da02766 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-TENANT-004_audit_log_viewer.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-TENANT-004_audit_log_viewer.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-TENANTSECURITYAUDIT-003` (Immutable Transaction Audit Logging)](../../03_requirements/use_cases/uc-017-tenant-security-audit/functional-reqs.md#fr-tenantsecurityaudit-003-immutable-transaction-audit-logging) |
| **Auth Role / Scope Claims** | `Tenant Administrator` or `Partner / MD` within verified active tenant |
| **Iteration** | `iteration-02` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Security & Governance Audit Log Table with JSON Diff Inspector.
-- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (Monospace font for IDs, color-coded action pills: `CREATE` green, `UPDATE` amber, `STATUS_CHANGE` blue, slide-over drawer for field diffs).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Authorized executive users (`Partner / MD`) and `Tenant Administrator` view the immutable audit trail of all governed mutations (GRN creation, lot transitions, price revisions, sales confirmations, membership changes) executed within their tenant boundary. No mutation or deletion controls exist on this screen.
---
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-TREND-001_20day_trading_trends.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-TREND-001_20day_trading_trends.md
index 740b899..182bd61 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-TREND-001_20day_trading_trends.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-TREND-001_20day_trading_trends.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-EXECUTIVEREPORTING-002` (20-Day Consolidated Trading Trend Reporting)](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-015-executive-reporting/functional-reqs.md#fr-executivereporting-002-20-day-consolidated-trading-trend-reporting) |
| **Auth Role / Scope Claims** | `Partner`, `Managing Director`, `Operations Supervisor`, `Tenant Admin` |
| **Iteration** | `iteration-06` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Time-Series Trading & Financial Position Reporting Console.
-- **Visual Design Reference:** Dual-visualization reporting layout adhering to [`DESIGN.md`](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/06_wireframes/DESIGN.md) (`cyan-600` procurement volume, `emerald-600` sales volume, `amber-600` closing stock, `purple-600` financial exposure, `slate-800` data grid).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Renders rolling 20-day trading snapshots tabulating and charting volume movements alongside financial exposure:
- Daily Purchases (MT)
- Daily Sales (MT)
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-WH-001_stock_ledger.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-WH-001_stock_ledger.md
index 2814f72..0bc0d8b 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-WH-001_stock_ledger.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-WH-001_stock_ledger.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-WAREHOUSEINVENTORY-001` (Multi-Godown Dual-Unit Stock Ledger)](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-007-warehouse-inventory/functional-reqs.md#fr-warehouseinventory-001-multi-godown-dual-unit-stock-ledger) |
| **Auth Role / Scope Claims** | `Yard Supervisor`, `Warehouse Manager`, `Commercial Manager`, `Partner`, `Tenant Admin` |
| **Iteration** | `iteration-04` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Dual-Unit Double-Entry Stock Ledger & Physical Inventory Audit Console.
-- **Visual Design Reference:** Data-dense tabular layout adhering to [`DESIGN.md`](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/06_wireframes/DESIGN.md) (`slate-800` data tables, `emerald-600` positive inward, `amber-600` outward dispatches, `rose-600` shortage/adjustment indicators).
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Warehouse managers and yard supervisors view real-time balances per warehouse (WH-01 Neemuch Main Yard, WH-02 Neemuch North, WH-03 Mandsaur Transit, WH-04 Indore Buffer), commodity, variety, and grade in both Metric Tonnes and physical Bag counts. Supports logging periodic physical tally audits against system book balances and posting supervisor-authorized Stock Adjustment Vouchers with reason codes (*Ghat / Nami*, Spillage, Bag Burst). Enforces non-negative stock invariant ($\ge 0$) and prompts for mandatory Partner electronic sign-off if variance exceeds $\pm 1.0\%$.
---
diff --git a/project_sdlc/06_wireframes/screen_specs/SCREEN-WH-002_capacity_transfers.md b/project_sdlc/06_wireframes/screen_specs/SCREEN-WH-002_capacity_transfers.md
index a3995e6..d6a4e9c 100644
--- a/project_sdlc/06_wireframes/screen_specs/SCREEN-WH-002_capacity_transfers.md
+++ b/project_sdlc/06_wireframes/screen_specs/SCREEN-WH-002_capacity_transfers.md
@@ -9,6 +9,7 @@
| **Owning FR** | [`FR-WAREHOUSEINVENTORY-002` (Godown Capacity & Utilization Tracking)](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-007-warehouse-inventory/functional-reqs.md#fr-warehouseinventory-002-godown-capacity--volume-utilization-tracking), [`FR-WAREHOUSEINVENTORY-003` (Godown-to-Godown Internal Stock Transfer)](file:///home/ps-ch/w/prj/mandi/04_generated_documentation/03_requirements/use_cases/uc-007-warehouse-inventory/functional-reqs.md#fr-warehouseinventory-003-godown-to-godown-internal-stock-transfer) |
| **Auth Role / Scope Claims** | `Yard Supervisor`, `Logistics Coordinator`, `Warehouse Manager`, `Operations Head`, `Tenant Admin` |
| **Iteration** | `iteration-04` |
+| **Last CR** | `CR-002` |
| **Status** | Baselined for Construction |
---
@@ -16,7 +17,7 @@
## 1. Screen Overview & Archetype
- **Archetype:** Facility Capacity Monitor & Inter-Godown Transfer Dispatch Board.
-- **Visual Design Reference:** Progress-bar visual meters (`amber-500` for $> 85\%$ warning threshold, `emerald-600` for normal operations) and transit timeline cards.
+- **Visual Design Reference:** Tailwind CSS / shadcn-ui components following [`DESIGN.md`](../DESIGN.md) (AgriTrade Mercantile palette: Deep Forest Pine `#162A22` primary actions, Warm Stone `#F7F7F4` canvas, `#FFFFFF` cards with `#E8E6DF` precision borders, Normal status `#EAF5ED`/`#2D6A4F`, Watch status `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics).
- **Behavior:** Operations heads and yard managers monitor real-time physical capacity utilization in MT across all warehouses:
$$\text{Utilisation \%} = \frac{\text{Current Closing Stock (MT)}}{\text{Storage Capacity (MT)}} \times 100$$
Triggers inline warning badges when utilization exceeds 85%. Logistics coordinators schedule inter-godown transfers (e.g. Mandsaur Transit Godown to Neemuch Main Yard), logging origin deduction, in-transit state, destination weighbridge capture, and inward credit, reconciling weight within $\pm 0.2\%$ tolerance.
diff --git a/project_sdlc/06_wireframes/wireframe_index.md b/project_sdlc/06_wireframes/wireframe_index.md
index 7c726cf..1eb8e61 100644
--- a/project_sdlc/06_wireframes/wireframe_index.md
+++ b/project_sdlc/06_wireframes/wireframe_index.md
@@ -5,7 +5,7 @@
| **Governed Standard** | UP-AI v1.5 Stage 11 Standard |
| **Document Path** | `04_generated_documentation/06_wireframes/wireframe_index.md` |
| **Design System Tokens** | [`DESIGN.md`](DESIGN.md) |
-| **Last Updated** | 2026-10-12 |
+| **Last Updated** | 2026-10-15 |
---
@@ -54,5 +54,5 @@
- **Framework:** React / TypeScript (`tech-profile.yaml`)
- **Styling & UI Library:** Tailwind CSS + shadcn-ui components (`tailwind_shadcn`)
- **State Store:** Zustand (`useAuthStore`)
-- **Design Tokens:** Follows [`DESIGN.md`](DESIGN.md) colors (`Slate-900` background, `Emerald-600` primary buttons, `Rose-600` destructive actions) and typography (`Inter`).
+- **Design Tokens:** Follows [`DESIGN.md`](DESIGN.md) (AgriTrade Mercantile: Deep Forest Pine `#162A22`, Warm Stone `#F7F7F4`, Harvest Ochre `#C89332`, Inter & JetBrains Mono, 4px baseline roundedness, and 240px persistent drawer).
diff --git a/project_sdlc/prompts/20261015T100903Z-session-ui-theme-update-assets.md b/project_sdlc/prompts/20261015T100903Z-session-ui-theme-update-assets.md
new file mode 100644
index 0000000..d905f56
--- /dev/null
+++ b/project_sdlc/prompts/20261015T100903Z-session-ui-theme-update-assets.md
@@ -0,0 +1,65 @@
+# Session Transcript: UI Theme Update — Affected Front-End Assets Analysis
+
+- **Session Start (UTC):** 2026-10-15T10:09:03Z
+- **User Prompt:** "The UI theme for the project has been updated in DESIGN.md. As per the process, what all front-end assets need to be updated?"
+- **Governed Process:** AI-Native Unified Process (UP-AI v1.5)
+- **Active Technology Profile:** `tech-profile.yaml` (React, TypeScript, Tailwind/shadcn, Zustand, Vitest, Playwright)
+
+---
+
+## Turn 1: 2026-10-15T10:09:03Z — User Request & Process Analysis
+
+### User Request
+> The UI theme for the project has been updated in DESIGN.md. As per the process, what all front-end assets need to be updated?
+
+### Actions & Discovery
+1. Inspected `project_sdlc/06_wireframes/DESIGN.md` and verified recent update (commit `c9883df`), which introduced the "AgriTrade Mercantile" Material Design 3 / Tactile Corporate Minimalism theme (Pine Green `#162A22`, Warm Stone `#F7F7F4`, Ochre `#C89332`, Inter & JetBrains Mono typography, 240px persistent navigation drawer, 4px border radius).
+2. Inspected `tech-profile.yaml`, identifying frontend configuration: `framework: react`, `ui_library: tailwind_shadcn`, `design_system_tokens: "project_sdlc/06_wireframes/DESIGN.md"`.
+3. Inspected Stage 11 (`up-wireframe-spec`), Stage 12 (`up-test-model-generate`), Stage 13 (`up-code-generate`), Stage 14, and cross-cutting Change Request governance (`up-change-request-impact`).
+4. Audited existing SDLC and codebase assets:
+ - `project_sdlc/06_wireframes/` (`wireframe_index.md` and 32 screen specs still referencing deprecated `Slate-900` / `Emerald-600` / `agri-700` palette).
+ - `project_code/frontend/` (`App.tsx`, `index.html`, and views in `src/features/` using legacy colors and horizontal topbar; missing `tailwind.config.js`).
+ - `project_sdlc/05_iteration_planning/` (`iteration_surface_matrix.md` across iterations).
+ - `project_sdlc/07_test_design/` (Manual QA testing guides, usability test cases, 21-sheet QA workbooks).
+ - Governance & traceability registers (`change_request_register.md`, `traceability_graph.md`).
+
+### Deliverable
+Compile and present a comprehensive, structured enumeration of all front-end assets requiring updates under the UP-AI v1.5 process, categorized by SDLC stage, architectural tier, and delivery surface.
+
+### Response Summary
+Provided a comprehensive, structured breakdown of all front-end assets requiring updates under the UP-AI v1.5 process, organized by SDLC Stage and Architectural Layer:
+1. **Governance & Traceability (`00_process_control/`, `05_iteration_planning/`)**: CR registration (`CR-xxx` via `up-change-request-impact`), traceability graph reconciliation, and delivery surface matrices (`iteration_surface_matrix.md`).
+2. **Stage 11 Screen Specifications (`06_wireframes/`)**: `wireframe_index.md` and 32 screen specifications in `screen_specs/`.
+3. **Stage 13 Frontend Codebase (`project_code/frontend/`)**: Tailwind/PostCSS configuration (`tailwind.config.js`), HTML/font imports (`index.html`), application shell layout (`App.tsx` 240px persistent drawer), reusable UI component library (`src/components/ui/`), and 8 active feature views (`src/features/`).
+4. **Stage 12 & 14 QA & Verification (`07_test_design/`, `tests/`)**: Vitest component test suites, Playwright E2E locators/visual regression, `MANUAL_TESTING_GUIDE.md`, and 21-sheet Excel QA workbooks.
+5. **Stage 15 Transition & Packaging (`project_code/docker/`)**: Docker frontend build and Nginx static font caching.
+
+
+
+## Turn 2: 2026-10-15T10:18:44Z — Execution of Front-End Assets Rebaseline (CR-002)
+
+### User Request
+> proceed
+
+### Actions & Implementation
+1. **Change Control & Impact Analysis (`00_process_control/`)**:
+ - Registered `CR-002: Rebaseline Front-End Assets to AgriTrade Mercantile Design System` in `change_request_register.md`.
+ - Completed full blast radius impact analysis walking the traceability graph across wireframe specifications, design token configs, application shell layout, reusable UI components, and views.
+ - Closed `CR-002` after complete verification.
+2. **Stage 11 Wireframes & Screen Specifications (`06_wireframes/`)**:
+ - Updated `wireframe_index.md` design tokens note and last updated date.
+ - Rebaselined all 32 screen specifications in `screen_specs/`: replaced deprecated color tokens (`Slate-900`, `Emerald-600`, `agri-700`, `amber-500`) with AgriTrade Mercantile tokens (Deep Forest Pine `#162A22`, Warm Stone `#F7F7F4`, Milk-white cards `#FFFFFF` with `#E8E6DF` borders, Cleared/Normal status `#EAF5ED`/`#2D6A4F`, Watch/Pending `#FDF6E7`/`#926A1D`, Accent Ochre `#C89332`, and JetBrains Mono tabular numerics) and tagged with `last_cr: CR-002`.
+3. **Stage 13 Code Implementation (`project_code/frontend/`)**:
+ - Created `tailwind.config.js` mapping all AgriTrade Mercantile design tokens (surfaces, containers, sidebar, typography, roundedness, spacing, tactile shadow).
+ - Created `postcss.config.js`.
+ - Created `src/index.css` with `@tailwind` directives, CSS custom properties, and button/badge utility classes.
+ - Updated `index.html` with Inter and JetBrains Mono Google Fonts imports and `bg-surface text-on-surface` body classes.
+ - Updated `src/main.tsx` to import `index.css`.
+ - Created reusable component library in `src/components/ui/`: `Button.tsx`, `StatusPill.tsx`, `Card.tsx`, and `Input.tsx`.
+ - Rebuilt application shell in `src/App.tsx` implementing the fixed 240px persistent dark pine drawer (`#162A22` / `#2A4237`) and asymmetric operational canvas (`#F9F9F6`).
+ - Realigned active feature views to the new components and tactile design tokens: `LoginView.tsx`, `SessionView.tsx`, `AccessDeniedView.tsx`, `CallbackView.tsx`, `HeaderTenantSwitcher.tsx`, `PlatformTenantsView.tsx`, `TenantMembersView.tsx`, `AuditLogView.tsx`.
+4. **Delivery Surface Matrices (`05_iteration_planning/`)**:
+ - Reconciled `Last CR: CR-002` in `iteration-01/iteration_surface_matrix.md` and `iteration-02/iteration_surface_matrix.md`.
+5. **Quality Gate Verification**:
+ - Ran `python3 scripts/verify_traceability_gates.py --all`: Gates 5.1, 9.1, and 14.1 passed with 0 Critical, 0 Major, and 0 Minor issues.
+ - Ran automated test runner `scripts/run_tests.sh --scope iteration-01`: 197 tests passed with 98.4% statement coverage (exceeding ≥95.0% threshold).