From c9883df3da09d672b86cafbc3a4d2eab6b11b198 Mon Sep 17 00:00:00 2001 From: Prashant Shendre Date: Thu, 15 Oct 2026 15:34:12 +0530 Subject: [PATCH] Updated the DESIGN.md --- project_sdlc/06_wireframes/DESIGN.md | 701 +++++++-------------------- 1 file changed, 188 insertions(+), 513 deletions(-) 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 / - - -``` - -### 5.2 Live Mandi Commodity Ticker (`MandiTickerMarquee.vue`) -```vue - - - -``` - -### 5.3 Sauda Entry Form Dialog (`SaudaSlipModal.vue`) -```vue - - - -``` - ---- - -## 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