π Frontend Pages
Status: Implemented (Feb 2026)
π Overview
Application pages and routing structure. All authenticated routes are under (app)/.
πΊοΈ Page Structure
frontend/src/routes/
βββ +page.svelte # Login page (public)
βββ +layout.svelte # Root layout (auth init)
βββ +error.svelte # Error page
βββ (app)/ # Authenticated routes
β βββ +layout.svelte # App layout (sidebar, header, settings init)
β βββ dashboard/
β β βββ +page.svelte # Main dashboard
β βββ brokers/
β β βββ +page.svelte # Broker list
β β βββ [id]/
β β βββ +page.svelte # Broker detail
β β βββ +page.ts # Load function
β βββ files/
β β βββ +page.svelte # Files management (static + BRIM tabs)
β βββ assets/
β β βββ +page.svelte # Assets (placeholder)
β βββ transactions/
β β βββ +page.svelte # Transactions (placeholder)
β βββ fx/
β β βββ +page.svelte # FX Management (placeholder)
β βββ settings/
β βββ +page.svelte # Settings (4 tabs)
π Pages
π Login Page (/)
- Public access
- LoginCard / RegisterCard / ForgotPasswordCard (card-style, not modals)
- Animated background with waves and chart lines
- Redirect to dashboard after login
- User preferences (language, theme) applied on login
π Dashboard (/dashboard)
- Overview of portfolio (placeholder)
- Quick stats cards
- (Charts with ECharts to be implemented in Phase 8)
π¦ Brokers (/brokers)
- Grid of broker cards with icons (fallback chain)
- Add/Edit broker via BrokerModal (extends ModalBase)
- Broker icon editable by clicking β AssetPickerModal
- Delete with confirmation dialog
π Broker Detail (/brokers/[id])
- Header with icon, name, status
- Cash balances with deposit/withdraw
- Holdings table
- Recent transactions
- Import files section (BRIM) with plugin selection
π Files (/files)
- Two tabs: Static Resources / Broker Reports (BRIM)
- DataTable with sorting, filtering, pagination, URL-synced filters
- Grid view toggle with image previews and search
- Upload interface with:
- Image files β ImageEditModal (crop, rotate, flip)
- Non-image files β FileEditModal (rename)
- Copy link, download, delete actions
- File thumbnails via
?img_preview=API
βοΈ Settings (/settings)
- 4 tabs: Preferences, Profile, Global (admin), About
- ProfileTab: Avatar editing via AssetPickerModal, username display
- PreferencesTab: Language, currency, theme
- GlobalSettingsTab: Admin-only settings with edit lock
- AboutTab: Version info (from Git tag), system info
- PasswordChangeModal from profile
- Mobile responsive with dropdown category selector