mirror of
https://github.com/Komediruzecki/token-circles.git
synced 2026-10-20 09:46:43 +02:00
New users land in a guided six-step wizard instead of an empty dashboard:
welcome → name your space (profile rename/create + base currency) → first
account(s) → bring your data (the real import flow embedded, with in-place
account creation) → auto-detected subscriptions → orbit complete. Fully
skippable (with are-you-sure confirms where data could be lost), relaunchable
from Settings → About and the tour menu, and impossible to get trapped in:
any pristine-check failure keeps it closed.
Trigger: zero accounts AND zero transactions AND zero bills AND no recorded
decision. Finishing/skipping stamps localStorage AND mirrors into the
per-profile settings KV, so in server mode a decision made on one device is
respected everywhere. A relaunched wizard recognizes existing accounts
('Your accounts — N already in orbit') instead of pitching a first account.
Import page refactored into reusable modules (headless createImportFlow +
ImportDataEntry/ImportMappingStep/ImportPreviewStep/BankRulesEditor) shared
verbatim by the page and the wizard; the bank tab's per-file account picker
(AccountSelect) offers 'New account…' in-place creation. Re-imports are
honest end to end: the preview dry-run announces rows the dedup pass will
skip ('Everything here was already imported'), the result message names
already-imported counts in both storage modes, and the import log records
total duplicates avoided. Bank-file drops no longer fail silently (snapshot +
allSettled + loading overlay + per-file errors).
Subscription auto-detection (features/subscriptionDetection.ts, pure +
30 table-driven tests): token matching with a bounded typo budget, cadence
from median charge gaps, catalogue-plan matching (18.00 → Claude Pro),
ambiguous retailer tokens require stable recurrence, dominant-amount-cluster
keeps Prime detectable amid Amazon shopping. Review UI (SubscriptionScan)
serves the wizard step, Bills → Subscriptions → Scan transactions, and the
Import page's post-import prompt.
Orbital loading system: OrbitSpinner (binary planets around a luminous core)
fronts the Import overlays and subscription scan; OrbitBootScreen replaces
the bare 'Loading...' boot gate and Suspense fallback; index.html stamps the
saved theme pre-paint so nothing flashes. ConfirmDialog moves to z-index
5000 and gains test-ids. The Node test backend stubs GET /api/billing/status
(worker-only feature) so the client's boot probe stops 404-spamming consoles.
Testing: 46 new unit tests (detection engine, onboarding store incl. KV
mirroring via onboardingMirrorSettled), 13 e2e specs across
onboarding.spec.ts / import.spec.ts with a gotoServerlessZeroState helper
(suppressed demo seed = true zero state) and an E2E_PORT env for the whole
harness (default 3800; CI unchanged). EARS spec: docs/specs/frontend/onboarding.md.
4.1 KiB
4.1 KiB
Finance Manager - EARS Requirement Specifications
This directory contains all EARS (Exactly As Required Specification) requirement specifications for the Finance Manager application.
Structure
specs/
├── frontend/ # Frontend feature specifications
├── backend/ # Backend API specifications
└── INDEX.md # Module mapping
Frontend Modules
| Module | File | Status |
|---|---|---|
| Dashboard | dashboard.md | ✅ Active |
| Transactions | transactions.md | 🔄 In Progress |
| Accounts | accounts.md | 🔄 In Progress |
| Categories | categories.md | 🔄 In Progress |
| Budgets | budgets.md | 🔄 In Progress |
| Goals | goals.md | 🔄 In Progress |
| Loans | loans.md | 🔄 In Progress |
| Bills | bills.md | 🔄 In Progress |
| Housing | housing.md | 🔄 In Progress |
| Retirement | retirement.md | 🔄 In Progress |
| Compound Interest | compound-interest.md | 🔄 In Progress |
| Emergency Fund | emergency-fund.md | 🔄 In Progress |
| Analytics | analytics.md | 🔄 In Progress |
| Import | import.md | 🔄 In Progress |
| Onboarding | onboarding.md | ✅ Active |
| Settings | settings.md | 🔄 In Progress |
| Rent vs Buy | rent-buy.md | 🔄 In Progress |
Backend API Modules
| Module | File | Status |
|---|---|---|
| Authentication | auth.md | 🔄 In Progress |
| Profiles | profiles.md | 🔄 In Progress |
| Transactions | transactions.md | 🔄 In Progress |
| Accounts | accounts.md | 🔄 In Progress |
| Categories | categories.md | 🔄 In Progress |
| Tags | tags.md | 🔄 In Progress |
| Receipts | receipts.md | 🔄 In Progress |
| Bills | bills.md | 🔄 In Progress |
| Budgets | budgets.md | 🔄 In Progress |
| Savings Goals | savings-goals.md | 🔄 In Progress |
| Loans | loans.md | 🔄 In Progress |
| Housing | housing.md | 🔄 In Progress |
| Recurring | recurring.md | 🔄 In Progress |
| Analytics | analytics.md | 🔄 In Progress |
| Reports | reports.md | 🔄 In Progress |
| Calculator | calculator.md | 🔄 In Progress |
| Settings | settings.md | 🔄 In Progress |
| Health & Logs | health.md | 🔄 In Progress |
E2E Test Specifications
E2E test specifications follow each feature specification and define automated test cases for critical user journeys.
- Located in:
../e2e/specs/ - Follow the same module naming convention
- Test scenarios derived from EARS requirements