Files
KomediruzeckiandGitHub 2c4dae5024 feat: onboarding experience — orbital setup wizard, modular import flow, subscription auto-detection (#344)
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.
2026-07-16 17:37:23 +02:00

66 lines
4.1 KiB
Markdown

# 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](frontend/dashboard.md) | ✅ Active |
| Transactions | [transactions.md](frontend/transactions.md) | 🔄 In Progress |
| Accounts | [accounts.md](frontend/accounts.md) | 🔄 In Progress |
| Categories | [categories.md](frontend/categories.md) | 🔄 In Progress |
| Budgets | [budgets.md](frontend/budgets.md) | 🔄 In Progress |
| Goals | [goals.md](frontend/goals.md) | 🔄 In Progress |
| Loans | [loans.md](frontend/loans.md) | 🔄 In Progress |
| Bills | [bills.md](frontend/bills.md) | 🔄 In Progress |
| Housing | [housing.md](frontend/housing.md) | 🔄 In Progress |
| Retirement | [retirement.md](frontend/retirement.md) | 🔄 In Progress |
| Compound Interest | [compound-interest.md](frontend/compound-interest.md) | 🔄 In Progress |
| Emergency Fund | [emergency-fund.md](frontend/emergency-fund.md) | 🔄 In Progress |
| Analytics | [analytics.md](frontend/analytics.md) | 🔄 In Progress |
| Import | [import.md](frontend/import.md) | 🔄 In Progress |
| Onboarding | [onboarding.md](frontend/onboarding.md) | ✅ Active |
| Settings | [settings.md](frontend/settings.md) | 🔄 In Progress |
| Rent vs Buy | [rent-buy.md](frontend/rent-buy.md) | 🔄 In Progress |
## Backend API Modules
| Module | File | Status |
| -------------- | -------------------------------------------- | -------------- |
| Authentication | [auth.md](backend/auth.md) | 🔄 In Progress |
| Profiles | [profiles.md](backend/profiles.md) | 🔄 In Progress |
| Transactions | [transactions.md](backend/transactions.md) | 🔄 In Progress |
| Accounts | [accounts.md](backend/accounts.md) | 🔄 In Progress |
| Categories | [categories.md](backend/categories.md) | 🔄 In Progress |
| Tags | [tags.md](backend/tags.md) | 🔄 In Progress |
| Receipts | [receipts.md](backend/receipts.md) | 🔄 In Progress |
| Bills | [bills.md](backend/bills.md) | 🔄 In Progress |
| Budgets | [budgets.md](backend/budgets.md) | 🔄 In Progress |
| Savings Goals | [savings-goals.md](backend/savings-goals.md) | 🔄 In Progress |
| Loans | [loans.md](backend/loans.md) | 🔄 In Progress |
| Housing | [housing.md](backend/housing.md) | 🔄 In Progress |
| Recurring | [recurring.md](backend/recurring.md) | 🔄 In Progress |
| Analytics | [analytics.md](backend/analytics.md) | 🔄 In Progress |
| Reports | [reports.md](backend/reports.md) | 🔄 In Progress |
| Calculator | [calculator.md](backend/calculator.md) | 🔄 In Progress |
| Settings | [settings.md](backend/settings.md) | 🔄 In Progress |
| Health & Logs | [health.md](backend/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