Skip to content

feat(dashboard): add financial overview by currency - #98

Merged
legions-developer merged 2 commits into
mainfrom
gurbinder/financial-dashboard
Oct 3, 2026
Merged

legions-developer merged 2 commits into
mainfrom
gurbinder/financial-dashboard

Conversation

@legions-developer

@legions-developer legions-developer commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Adds a separate Dashboard page for understanding collected, outstanding, and overdue invoice amounts, with every total, monthly trend, and client ranking kept within its own currency.

The page combines invoices stored on this device with the signed-in user's server invoices, using an authenticated financial-only query and decimal arithmetic. It includes six- and twelve-month billed/collected trends, the top five clients, loading and partial-data states, and a custom duotone dashboard icon in the sidebar and header.

Overdue is included in outstanding. Refunded invoices are excluded from amounts; paid invoices without a payment date remain in all-time totals with an explanatory note. Existing invoice fields support the feature, so no database migrations, new dependencies, or environment variables are required.

Validation: full web TypeScript and ESLint pass; the existing invoice-transfer tests pass; changed-file formatting and diff checks pass. Browser verification covered the empty page and populated components using temporary sample data, currency changes, twelve-month trends, and mobile layout. A live signed-in database session was not exercised.

@coderabbitai

coderabbitai Bot commented Oct 3, 2026

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c2e84753-d706-4e46-aa1d-35e3fd441988
📥 Commits

Reviewing files that changed from the base of the PR and between f915d2d and aa348c3.

📒 Files selected for processing (13)
  • README.md
  • apps/web/src/app/(dashboard)/dashboard/dashboard-panels.tsx
  • apps/web/src/app/(dashboard)/dashboard/dashboard.client.tsx
  • apps/web/src/app/(dashboard)/dashboard/monthly-trend.client.tsx
  • apps/web/src/app/(dashboard)/dashboard/page.tsx
  • apps/web/src/assets/icons/dashboard.tsx
  • apps/web/src/assets/icons/index.ts
  • apps/web/src/constants/sidebar.tsx
  • apps/web/src/lib/dashboard/financial-dashboard.test.mjs
  • apps/web/src/lib/dashboard/financial-dashboard.ts
  • apps/web/src/lib/db-queries/invoice/getDashboardInvoices.ts
  • apps/web/src/trpc/services/invoice/getDashboard.ts
  • apps/web/src/trpc/services/invoice/index.ts
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://gurbinder-financial-dashboard.preview.invoicely.gg (commit 7b060f6)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://2790d079.preview.invoicely.gg 7b060f6 2026-10-03T19:49:13.608Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://2249e113.preview.invoicely.gg aa348c3 2026-10-03T19:43:31.544Z Visit the dashboard ↗

@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Preview database and deployment

Commit: 7b060f6b8998

Migration command and Cloudflare build/deploy completed successfully. There may have been no pending migrations.

Cloudflare build logs

Migration status is inferred from the required migration hook and the overall Cloudflare result. Build logs contain the individual migration output.

@legions-developer
legions-developer merged commit 71996e7 into main Oct 3, 2026
3 checks passed
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown

Production database and deployment

Commit: 71996e72ce18

Migration command and Cloudflare build/deploy completed successfully. There may have been no pending migrations.

Cloudflare build logs

Migration status is inferred from the required migration hook and the overall Cloudflare result. Build logs contain the individual migration output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant