Repository navigation
feat(summary): Gemini summary panel on the dashboard (F-15) - #47
Conversation
… the day (F-15) Adds summary_write (migration 0019): one row per request. Each person may ask five times a day; the draft is stored in label form and filled with current figures on each page load that day (ADR-068). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps both sides in AGENTS.md, the isolation matrix and HANDOFF. Main took HO-119, so the summary panel's first entry is renumbered HO-121. The screenshots are main's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
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. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d491873359
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| - **Status:** Proposed (2026-10-11) | ||
| - **Owner to confirm:** Muhammad Tahub Khatri |
There was a problem hiding this comment.
Confirm the proposed schema decision before merging
This commit adds migration 0019 and the summary_write schema while its governing ADR is still explicitly Proposed and awaiting owner confirmation. Repository policy requires confirmation before starting an expensive-to-reverse database-schema change under a Proposed ADR, so obtain and record that confirmation before this change proceeds.
AGENTS.md reference: AGENTS.md:L83-L87
Useful? React with 👍 / 👎.
| const overBudget = asked.categories.filter( | ||
| (category) => category.budget === "over", | ||
| ).length; |
There was a problem hiding this comment.
Count over-budget categories before truncating
asked.categories comes from monthFacts, which truncates the budget rows to 12 before this count. A workspace can have more than 12 spending categories, including 15 built-in presets, so if an over-budget category sorts below the cutoff this label under-reports the total or disappears entirely, and the panel can tell the user the wrong number of categories are past budget. Compute this count from the full month.categories collection while retaining the 12-category cap only for model-facing details.
Useful? React with 👍 / 👎.
What
Adds F-15 (ADR-045, ADR-068 Proposed): a "Where you stand" panel on the dashboard, under the headline.
How
src/features/summary/(domain, server, ui).getSummary, and a newsrc/features/agent/client.tswith the pure parts. The texting instruction is byte-identical to before (checked by hash).subscription_yearlyandover_budget_count.generateLongTextinsrc/lib/ai/client.ts: the same chain with 8 seconds for each model.CashflowDashboardtakes one optionalsummaryPanelprop.Schema change
Migration
0019_summary_writeis included: one row for each request (workspace, person, day, draft in label form). It is applied to the local Docker database only. Runpnpm db:migrate:to branchandproductionbefore deploying.Tests
tests/e2e/summary.spec.ts(5 tests).pnpm test:unitbefore merging main: 2628 pass; 8 fail, all statement-storage tests that need.env.storage-tests.Not verified
Open problems
Docs
ADR-068, PROJECT (F-15), ARCHITECTURE (ARCH-03, ARCH-07), PITCH (1:10 demo step), AGENTS.md, HANDOFF (HO-121, HO-120).
🤖 Generated with Claude Code