How jaybee-v/money works
This is a household-finance web app for recording ordinary and recurring expenses, tracking recipe income, and viewing upcoming obligations and yearly summaries. The workflow routes authenticated users to dashboard or domain pages; page views load and submit data through server actions, which use Prisma for persistence. Authentication creates sessions and protects app pages. The source index supports the main page-to-action links and major domain branches, but several action/view implementations were not excerpted, so uncertain internal calls are omitted.
Main entry points: app App routes · prisma.ts Application database · ExpenseYearlyChart.tsx Yearly finance chart · page.tsx Dashboard summary
Components 21
Identity & sessions
- Sign-up form
src/components/forms/SignupForm.tsx - Auth actions
src/actions/auth.action.ts - Session management
src/lib/session.ts - Auth validation
src/lib/definitions/auth.definition.ts
App experience
- App routes
src/app/app - Dashboard summary
src/app/app/page.tsx - Yearly finance chart
src/components/charts/ExpenseYearlyChart.tsx - Upcoming obligations
src/components/elements/UpcomingObligatoryExpenses.tsx
Finance tracking
- Expense history view
src/components/pages/ExpensePageView.tsx - Expense form
src/components/forms/ExpenseForm.tsx - Expense actions
src/actions/expense.action.ts - Expense validation
src/lib/definitions/expense.definition.ts - Recurring expense view
src/components/pages/ObligatoryExpensePageView.tsx - Recurring expense form
src/components/forms/ObligatoryExpenseForm.tsx - Recurring expense actions
src/actions/obligatoryExpense.action.ts - Recipe income view
src/components/pages/RecipePageView.tsx - Recipe actions
src/actions/recipe.action.ts - Recurring recipe view
src/components/pages/ObligatoryRecipesPageView.tsx - Recurring recipe actions
src/actions/obligatoryRecipe.action.ts
Persistence
- Application database
src/lib/prisma.ts
Other components
- Household user
Connections 32
- Household user → Sign-up form: submits details
src/components/forms/SignupForm.tsx - Sign-up form → Auth actions: calls signup
src/components/forms/SignupForm.tsx - Sign-up form → Auth validation: validates with
src/components/forms/SignupForm.tsx - Auth actions → Application database: creates user
src/actions/auth.action.ts - Auth actions → Session management: creates session
src/actions/auth.action.ts - App routes → Session management: checks session
src/app/app/expenses/page.tsx - App routes → Expense history view: renders
src/app/app/expenses/page.tsx - App routes → Recurring expense view: renders
src/app/app/obligatory-expenses/page.tsx - App routes → Recipe income view: renders
src/app/app/recipes/page.tsx - App routes → Recurring recipe view: renders
src/app/app/obligatory-recipes/page.tsx - App routes → Dashboard summary: renders
src/app/app/page.tsx - Dashboard summary → Session management: loads user
src/app/app/page.tsx - Dashboard summary → Yearly finance chart: renders
src/app/app/page.tsx - Dashboard summary → Upcoming obligations: renders
src/app/app/page.tsx - Yearly finance chart → Expense actions: requests yearly data
src/components/charts/ExpenseYearlyChart.tsx - Yearly finance chart → Recurring expense actions: requests obligations
src/components/charts/ExpenseYearlyChart.tsx - Yearly finance chart → Recipe actions: requests recipe totals
src/components/charts/ExpenseYearlyChart.tsx - Yearly finance chart → Recurring recipe actions: requests recurring recipes
src/components/charts/ExpenseYearlyChart.tsx - Upcoming obligations → Recurring expense actions: loads obligations
src/components/elements/UpcomingObligatoryExpenses.tsx - Upcoming obligations → Recurring recipe actions: loads recipes
src/components/elements/UpcomingObligatoryExpenses.tsx - Expense history view → Expense actions: loads and creates
src/components/pages/ExpensePageView.tsx - Expense history view → Expense form: renders
src/components/pages/ExpensePageView.tsx - Expense form → Expense validation: validates with
src/components/forms/ExpenseForm.tsx - Expense actions → Application database: reads and writes
src/actions/expense.action.ts - Recurring expense view → Recurring expense actions: manages obligations
src/components/pages/ObligatoryExpensePageView.tsx - Recurring expense view → Recurring expense form: renders
src/components/pages/ObligatoryExpensePageView.tsx - Recurring expense actions → Application database: reads and writes
src/actions/obligatoryExpense.action.ts - Recipe income view → Recipe actions: manages recipes
src/components/pages/RecipePageView.tsx - Recipe actions → Application database: reads and writes
src/actions/recipe.action.ts - Recurring recipe view → Recurring recipe actions: manages recurring recipes
src/components/pages/ObligatoryRecipesPageView.tsx - Recurring recipe actions → Application database: reads and writes
src/actions/obligatoryRecipe.action.ts - Session management → Application database: looks up user
src/lib/session.ts