fix(mywork): PR cards are structured-only — drop the legacy pr_summaries.summary - #27
Conversation
…ies.summary My Work PR activity cards rendered a raw "Summary" excerpt row whenever the Workers-AI summary fell back to the excerpt (what/why/impact null). That prose "Summary" row is the issue/todo surface, not the PR surface. Remove pr.summary end-to-end: - render: prActivityCard shows What changed / Why / Impact only; a PR with no structured summary shows a "No summary recorded" placeholder (never the excerpt). - DTO/query: drop `summary` from MyWorkPr and the getMyWork PR SELECT/mapping. - store: storePrSummary no longer mirrors what→summary; a PR's excerpt fallback is now a content-less marker row (model='excerpt', null structured columns). - schema: 0019 drops the NOT NULL pr_summaries.summary column. issue_summaries is untouched — issues keep their prose summary. - seed + tests + CLAUDE.md updated. Full suite green (53 files / 418 tests). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
canopy | 0814e75 | Commit Preview URL Branch Preview URL |
Jul 07 2026, 07:47 AM |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (14)
📝 WalkthroughWalkthroughDrops the legacy prose ChangesStructured-only PR summaries
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related PRs
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Problem
On My Work → Previous activity, a PR card rendered a raw "Summary" excerpt row whenever the capture-time Workers-AI summary fell back to the excerpt (i.e.
what/why/impactall null — as happened to PR #321). A prose "Summary" row is the issue/todo surface; PR cards should be What changed / Why / Impact only.Change — remove
pr.summaryend-to-endweb/src/render.ts):prActivityCardrendersWhat changed/Why/Impactonly. A PR with no structured summary shows a "No summary recorded" placeholder — the raw excerpt is never rendered.summaryfromMyWorkPr(shared/dashboard.ts) and thegetMyWorkPRSELECT/mapping (src/tools/mywork.ts).src/tools/summarize.ts):storePrSummaryno longer mirrorswhat→summary; a PR's excerpt fallback is now a content-less marker row (model='excerpt', null structured columns) that Sync retries.0019_drop_pr_summary.sqldrops the (NOT NULL)pr_summaries.summarycolumn.issue_summariesis untouched — issues keep their prose summary.Verification
npm run typecheckclean ·npm run build:webcleanpr_summaries.summaryis stillNOT NULLin prod and the new INSERT omits it, so apply the migration before deploying:🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Bug Fixes