Refactor in progressSource: Demo repositoryFamily code: demo-family

Ucreds is now being reshaped into a cleaner banking product for kids, parents, and a future Supabase backend.

The old Vite plus Firebase app has been split into a Next.js App Router shell, pure domain logic, and a repository layer that is ready to move toward Vercel and Supabase without dragging the UI around each time we change infrastructure.

What changed
  • Moved from a single giant Vite App.tsx into App Router pages plus shared domain modules.
  • Extracted balance, period, and transaction logic into testable pure functions.
  • Prepared relational schema and Supabase client helpers for the next phase of backend migration.
  • Kept a demo repository so the product still runs before the database is wired in.
Deployment readiness
Vercel-ready structure
Ready
Supabase environment
Demo mode
App Router structure is ready for Vercel deploys.
Data access is routed through a repository layer so Firebase-specific coupling is gone.
Supabase env vars switch the app from demo mode toward live data without changing the UI layer.
Family savings
$109.50
Pending approvals
1
Children onboarded
2
Control tower

Maya's view of the new Ucreds stack

The parent surface is organized around approval flow, configurable interest and allowance rules, and a cleaner split between product logic and storage.

Rates
Weekly interest2.5%
Weekly penalty4.0%
Data strategy
Current modedemo
Repository layerEnabled
Supabase schemaPrepared
Activity feed

Latest money movement

This stays driven by pure domain utilities, so later swapping data sources does not rewrite the UI.

📈
Weekly interest
4/18/2026
+$1.50
🖍️
Requested new markers
4/17/2026
+$12.00
🧽
Kitchen cleanup bonus
4/16/2026
+$15.00
🥪
School canteen snack
4/15/2026
-$4.50
📘
Bought sketchbook
4/14/2026
-$8.00
💵
Weekly Allowance
4/13/2026
+$12.00
Approval queue

Requests needing a parent decision

These are the transactions that were previously tightly coupled to Firebase writes.

🖍️
Requested new markers
PENDING_APPROVAL
$12.00
Allowance setup

Active child rules

Each child now carries their own config, which makes the future relational model much cleaner.

🦊 Ava
Weekly
Interest2.5%
Allowance weekly$12.00
🐼 Noah
Weekly
Interest2.0%
Allowance weekly$10.00