Skip to content

Staging - #4

Merged
AdityaRaj212 merged 9 commits into
mainfrom
staging
Sep 27, 2026
Merged

AdityaRaj212 merged 9 commits into
mainfrom
staging

Conversation

@AdityaRaj212

Copy link
Copy Markdown
Owner

📋 Summary of Changes

A concise description of the changes introduced in this pull request.

🎯 Target Branch Verification

  • This PR targets the staging branch (Direct PRs to main are reserved exclusively for staging-to-main production releases).

✅ Verification & Quality Checklist

Before requesting review, please confirm:

  • Typecheck: npx tsc --noEmit passes with 0 errors.
  • Test Suite: npm test passes all tests (unit & security tests).
  • Production Build: npm run build succeeds without warnings or compilation errors.
  • Deterministic Financial Math: All currency math is conducted in integer minor units (paise/cents). No floating-point rounding drift.
  • Security & Authorization: All newly added or modified API endpoints strictly validate sessions and prevent cross-tenant IDOR.
  • Design Aesthetics & Theming: Tested in both Light and Dark mode, responsive on desktop and mobile viewports.

AdityaRaj212 and others added 6 commits September 27, 2026 13:04
…gauges, budget health, interactive burn chart, NaN fix, CSV tags

- Add category/tag toggle switch for expense breakdown analytics
- Remove split transactions analytics section
- Move 30/60/90 day forecast to end of page
- Add 3 dynamic SVG speedometer gauges (savings rate, budget utilization, expense ratio)
- Add Y-axis labels and hover tooltips with values to daily burn chart
- Fix NaN/day average (metrics.totalExpense → metrics.monthlyExpenses)
- Add budget health summary with over-budget/near-limit alerts
- Add getSpendingByTag() and getBudgetHealthSummary() to finance service
- Fix CSV export missing Tags column (now includes tag names)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
feat(reports): analytics overhaul — tag/category toggle, speedometer …
feat(reports): add interactive SVG Donut chart with Split/Chart/List view modes for Category/Tag expenses
Copilot AI lite review requested due to automatic review settings September 27, 2026 09:39
@vercel

vercel Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
bagstack Ready Ready Preview Sep 27, 2026 10:03am UTC

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

A critical CSV formula-injection issue and several report correctness and usability issues remain unresolved.

Review effort: Lite
Findings: 1 High severity · 2 Medium severity · 2 Low severity

Open (5)
What changed in this PR

Expands reporting with tag analytics, budget health summaries, interactive visualizations, and tag-aware CSV exports.

Changes:

  • Adds tag spending and budget-health calculations and API data.
  • Redesigns reports with gauges, charts, tooltips, and layout controls.
  • Includes transaction tags in CSV exports.
File Summary
src/​lib/​finance-service.ts Adds tag and budget-health calculations; service-level test coverage is needed.
src/​app/​reports/​page.tsx Adds analytics visualizations and interactions; several correctness, accessibility, sizing, and theme issues remain.
src/​app/​api/​reports/​route.ts Exposes tag and budget report data.
src/​app/​api/​export/​route.ts Adds transaction tags to CSV output; formula-leading values require sanitization.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/app/api/export/route.ts Resolved
Comment thread src/app/reports/page.tsx Resolved
Comment thread src/app/reports/page.tsx Resolved
Comment thread src/app/reports/page.tsx Resolved
Comment thread src/lib/finance-service.ts Resolved
AdityaRaj212 and others added 2 commits September 27, 2026 15:32
feat(reports): account for uncategorized/untagged expenses and stream…
Co-authored-by: AdityaRaj212 <127577061+AdityaRaj212@users.noreply.github.com>
@AdityaRaj212
AdityaRaj212 merged commit 0a266e8 into main Sep 27, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
Preview — 555af469 Deployed Sep 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants