I'll build a comprehensive envelope budgeting application with all the features you requested. Let me start by exploring the existing project structure, then build it out.
Now let me build the application. I'll create all the files systematically.
Now let me create the UI components:
Now let me update the HTML title and build the project:
The build succeeds. Let me review and improve a few things - the rollover logic and the category dot rendering in transactions.
Now let me improve the rollover logic and the close-month functionality:
The build succeeds. Let me verify the Tailwind config and add a few final polish touches:
Let me fix a bug in the CategoryManager where categories were always being added to the first group instead of the correct one:
The project builds successfully. Here's a summary of what was built:
Envelope Budgeting App
A complete, feature-rich envelope budgeting web application with:
Features
-
Groups & Categories Management (Categories page)
- Add/edit/delete groups with color coding
- Add/edit/delete categories within groups with budget amounts
- Inline editing for both groups and categories
- Collapsible group sections
-
Carry Over Overspend Toggle (in Categories page)
- Per-category toggle to carry overspend/surplus to next month
- Visual indicator when toggle is active
- "Close Month & Rollover" button on the Envelopes page
-
Split Transactions (Transactions page)
- Single receipt split across multiple categories (e.g., RM20 food + RM80 health)
- Per-split notes and amounts
- Dynamic add/remove splits
- Filter by account or category, full-text search
- Visual split breakdown on each transaction
-
Multiple Accounts (Accounts page)
- Create/edit/delete accounts (bank, cards, etc.)
- Color-coded account tracking
- Account filter in transactions
- Account spending breakdown on dashboard
-
Data Persistence
- Auto-saves to localStorage on every change
- Import/Export as JSON (download file or paste JSON)
- Full data reset option
-
Dashboard & Envelopes Views
- Summary cards (total budget, spent, remaining)
- Top spent categories with progress bars
- Over-budget alerts
- Per-account spending breakdown
- Month-by-month navigation
Pages
- Dashboard — Overview with summary stats
- Envelopes — Budget vs spent visualization per category
- Categories — Manage groups and categories
- Accounts — Manage payment accounts
- Transactions — Add/edit split transactions with filters
- Import/Export — Data management
Files built: src/types.ts, src/store.ts, src/context.tsx, src/components/Sidebar.tsx, src/components/Dashboard.tsx, src/components/EnvelopeView.tsx, src/components/CategoryManager.tsx, src/components/TransactionManager.tsx, src/components/ImportExport.tsx, src/components/AccountManager.tsx, src/components/MonthSelector.tsx, src/App.tsx, index.html