BUILD PROMPT — OFFLINE SHOP MANAGEMENT APP Build a complete desktop-only single-page…
- User
BUILD PROMPT — OFFLINE SHOP MANAGEMENT APP
Build a complete desktop-only single-page React app for offline retail management. Replace [BRAND] with your app name. Language: French only. Currency: DA (format with spaces). No server, no external APIs. All data lives in src/data/mockData.js.
Theme: Light mode only. Never generate dark mode classes or dark backgrounds. Minimalist editorial style: cards float on a warm light grey background with hairline (#E8E6E3) separators. No decorative gradients, no heavy shadows.
Stack: React, React Router, Tailwind CSS (CSS-first @theme in index.css only), Lucide icons (always monochrome, never inside colored circles), Recharts (recharts), Inter font. Plain JSX, no TypeScript. No version numbers in comments.
Layout: Fixed left sidebar (240px, full viewport height, no scrollbar) + main content area (ml-[240px], warm grey background). Sidebar bottom: a small static sun indicator, a hairline separator, then a connected user row (avatar circle + name + role).
Design direction (high-level):
Cards: white, rounded corners (md radius), no borders, subtle separation via hairlines. Status: small colored dots or bold/muted text only. No filled colored badges. Buttons: primary is black (#111), secondary is ghost/text with hairline borders. No bright blue accents. Icons: pure monochrome next to text. No background shapes around icons. Tables: clean, hairline row separators, subtle hover. Product cards (Stock + POS browser): vertical portrait orientation (height > width). Image is mandatory at top; if user provides no image, show a clean default placeholder (light grey background with product initial letter). Include an Image / List toggle filter in both Stock and POS. POS (/ventes): Split workspace. Left pane has product browser, category filters, vertical cards, and the mode tabs (Vente | Retour | Commande | Devis | Facture) locked at the bottom of the left pane only. Right pane (~42%) is the active cart — takes full independent height, never interrupted by left-pane tabs. Cart calculates live. Clients/Fournisseurs (/operateurs): Navigation uses text tabs with underline (Clients (8) | Fournisseurs (5)), exactly like editorial tabs. Active gets bold text + black underline. No toggle buttons. Stock (/stock): Same vertical card grid with image mandatory, plus the Image/List filter. List view shows table with small square thumbnails. Sidebar nav: 8 items with monochrome icons. Active item has a subtle low-contrast grey capsule (bg-[#F0EFEF]). No left stripe indicators.Pages to build fully with mock data:
/ Dashboard — 4 metric cards, one simple bar chart (monthly revenue, 6 months), two ranking tables. /ventes POS — working cart, barcode/reference search, product grid with image/list filter, quantity calculator, concurrent cart support, payment modal (Cash/Credit/Mixed). /stock — product catalog with image/list toggle, vertical cards in grid, table in list, add/edit modal (supports variants, barcode, price tiers, expiration, stock minimum, supplier, favorite), Excel import reference. /operateurs — clients and suppliers via underlined text tabs, unified table, debt settlement modal, detail view with transaction history. /depenses — expense and other revenue tabs (Dépenses | Autres Revenus), date filters, add modal. /caisse — cash balance, automatic toggles, transaction log (deposits/withdrawals), manual adjustment modal. /rapports — overview metrics, financial details table, operator debt rankings, Zakat calculator (2.5% based on stock value), simple bar chart for trends. /parametres — company info form, print template selection (3 previews selectable by hairline border), user management (Admin/Superviseur), alert thresholds, activation panel with machine serial and key input. - Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.