Single-page application โ Phone mockup (left) + tabbed dashboard (right).
All UI lives in combined.html โ one self-contained file with HTML, CSS, and JavaScript.
12 pages accessible via bottom navigation and the "More" menu:
| Page | Description |
|---|---|
| ๐ Home | Bank card carousel (swipe between accounts), quick actions (Talk, Pay, Tasks, Budget), recent transactions |
| ๐ Ledger | Full transaction history with filters (All / Income / Expenses), running balance |
| ๐ฌ Chat | Free-form AI chat with knowledge graph context |
| ๐ Budgets | Budget cards with progress bars, over-limit badges |
| ๐จ Alerts | Fraud alerts and anomaly warnings with severity levels |
| ๐ Documents | PDF downloads โ bank statements, tax certificates, proof of payment |
| ๐ท Scanner | Receipt scanning (mock) with merchant/category extraction |
| โ Tasks | AI-generated to-do list with priority pills and check-off |
| ๐ Report | Weekly spending breakdown by category with AI insights |
| ๐งช Test | Live transaction classifier โ enter merchant/amount/time, get verdict |
| ๐ค Profile | User name editing, AI memory management (facts, preferences), conversation stats |
| ๐ Detail | Single transaction deep-dive with classification reasoning |
- ๐ณ Card Carousel โ iPhone-style horizontal swipe through bank accounts with dot indicators
- ๐๏ธ Floating Mic FAB โ Always-visible microphone button for voice commands
- ๐ฃ๏ธ Voice Overlay โ Full-screen overlay with recording waveform, text input, chat history, quick action chips
- ๐ Toast Notifications โ Animated alerts for transactions, fraud, and system events
- ๐ธ Payment Flow Cards โ Inline beneficiary list, disambiguation, amount entry, confirmation, success animation
- ๐งญ Bottom Navigation โ Home, Ledger, Chat, More (with badge count)
- ๐ Slide-up More Menu โ Access to all secondary pages
Real-time event feed showing every action, transaction, and system event. Color-coded by severity (๐ด critical, ๐ก warning, ๐ต action, ๐ข safe, โช info). Auto-scrolling with timestamps.
- ๐ Health Score Ring โ Animated SVG gauge (0-100), letter grade (A-F), component breakdown bars (DTI, buffer, budgets, insurance, investments, habits)
- ๐ฆ Loan Eligibility Panel โ Amount/type/term inputs with live assessment. Verdict badge (โ
Approved /
โ ๏ธ Conditional / โ Declined), DTI impact, max affordable, factor list - ๐ก AI Insights Feed โ Proactive insights from knowledge graph analysis. Budget warnings, spending habits, savings rate, concentration alerts
- ๐ Smart Transfer Panel โ Account selector (from/to), amount and reference fields, live transfer execution with balance update
- ๐ Spending Breakdown โ Category bar chart with amounts
- ๐ Knowledge Graph โ D3.js force-directed graph visualization. Nodes colored by type (merchant, category, loan, income, investment, insurance, tax, budget, goal, alert, pattern, beneficiary). Hover tooltips. Search capability
- ๐ฌ Demo Step Buttons โ Repeatable steps (salary, debit orders, daily spending, food delivery) and one-shot life events (fraud, bonus, emergency, tax refund, salary increase, travel, accident)
- โฉ Simulator Controls โ Start/stop button, speed selector (0.5x-5x), progress bar, month/phase indicator
- ๐ก Event Feed โ Real-time transaction and alert events during simulation
- ๐ก๏ธ Transaction Classifier โ Enter merchant name, amount (ZAR), time. Get real-time classification with verdict, confidence, reasoning, fraud indicators, and risk tags
- ๐๏ธ Voice Command Triggers โ Quick-test buttons for common voice commands
- ๐ณ Payment Flow Triggers โ Test beneficiary payments, disambiguation, and listing
- ๐ Web Speech API for browser-based recognition
- โ๏ธ Google Speech-to-Text for audio file transcription (16kHz mono WAV)
- ๐ Push-to-talk via mic button or text input fallback
- ๐ต Premium voice selection with priority list (Google UK English, Microsoft voices)
- โก Tuned rate (1.15x) and pitch (1.02) for natural delivery
- โจ Text cleanup: R currency expansion, abbreviation handling, markdown stripping
Voice responses can include interactive UI elements:
- ๐ฅ Beneficiary List โ Selectable cards with avatars, names, bank details
- โ Payment Confirmation โ Amount, recipient, reference fields with confirm/cancel
- ๐ Success Animation โ Checkmark with transaction summary
Colors:
๐ต --navy: #003B5C (primary brand, headers, buttons)
๐ข --teal: #007A6E (accent, interactive elements, links)
๐ --teal-light: #E8F5F2 (hover states, light backgrounds)
๐ด --red: #B91C1C (critical alerts, fraud, over-budget)
๐ --orange: #C2571A (warnings, flagged items)
๐ก --yellow: #C68A0E (caution, medium priority)
๐ฉ --green: #2E7D6F (safe, completed, positive)
Typography:
โ๏ธ Libre Franklin โ UI text (300-800 weights)
๐ข DM Mono โ Numbers, amounts, timestamps
Phone Dimensions:
๐ฑ 320px x 660px, border-radius 32px
The UI connects to ws://localhost:8000/ws and handles:
| Event | Source | Description |
|---|---|---|
๐ new_transaction |
Classification | New transaction classified |
๐ธ๏ธ graph_update |
KG | Knowledge graph changed |
๐ฎ sim_transaction |
Simulator | Simulated transaction |
๐จ sim_alert |
Simulator | Fraud/anomaly during simulation |
๐ sim_phase |
Simulator | Simulator phase change |
๐ก sim_insights |
Simulator | Proactive insights generated |
๐ health_score |
Simulator | Health score recalculated |