Repository navigation
Conversation
… are both easier to manage and genuin
|
CI failed: Visual preview release matrix Please investigate and fix this CI failure.
Failure evidence
|
|
CI failed: Validate Changes Please investigate and fix this CI failure.
Failure evidence
|
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
CI failed: Visual preview release matrix Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit 1562685 Summary of ChangesI fixed the failing Visual preview release matrix check, and the full suite that check runs now passes here. Cause: One test was out of date, not the app code. This PR adds a Fix: I updated that one check at line 224 to expect the new field: { completedImplementationTaskId: 'implementation-1', completionType: 'implementation' }Tests run here:
Only the test file changed, and nothing on screen is different, so I didn't make new preview images. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…, and the full suite that check runs now passes here.
I fixed the failing **Visual preview release matrix** check, and the full suite that check runs now passes here.
**Cause:** One test was out of date, not the app code. This PR adds a `completionType` field to completed-PR notifications (`'implementation'`, `'fix'`, `'merge'`, …), which the inbox uses to show labels like "Fix completed" or "Merge completed". A test in `packages/api/test/previewMediaProjection.test.ts` ("real implementation completion persists one PR event…") compared the notification's data against the old shape, which had only `completedImplementationTaskId`, so it failed on the new field.
**Fix:** I updated that one check at line 224 to expect the new field:
```ts
{ completedImplementationTaskId: 'implementation-1', completionType: 'implementation' }
```
**Tests run here:**
- The failing test file: 16 of 16 pass.
- `npm run test:visual-previews:server`, the full server-side part of the CI job: all 17 test files pass, 0 failures.
- `npm run test:visual-previews:ui`: 7 test files, 71 tests pass.
Only the test file changed, and nothing on screen is different, so I didn't make new preview images.
PR: #2441
Comment by: @propr-dev[bot] (ID: 5705261730)
Model: claude-opus-5
|
CI failed: Validate Changes Please investigate and fix this CI failure.
Failure evidence
|
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
✅ Applied the requested follow-up changes in commit f24b746 Processed 2 comments:
Summary of ChangesI fixed the Validate Changes failure. Linting now passes with zero warnings, which is what CI requires. Cause: Tests, the UI checks, the builds and the Playwright smoke test all passed. The "Run Checks" step failed only because ESLint found three
The earlier summary called the first two "pre-existing", but the recap code this PR added is what pushed them over the limit. Fix: I moved code out into small helpers without changing what it does:
Checks run locally:
This is an internal code change with nothing visible in the UI, so I didn't make any previews. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…s with zero warnings, which is what CI requires. I fixed the **Validate Changes** failure. Linting now passes with zero warnings, which is what CI requires. **Cause:** Tests, the UI checks, the builds and the Playwright smoke test all passed. The "Run Checks" step failed only because ESLint found three `complexity` warnings in functions this PR changed, and CI allows none: - `src/jobs/issueJob/completion.ts`: `markTaskTerminalState` scored 26 (the limit is 20) - `src/jobs/prCommentPostExecution.ts`: `handlePostExecution` scored 23 - `packages/api/services/notificationProjectionService.ts`: `loadTaskContext` scored 21 The earlier summary called the first two "pre-existing", but the recap code this PR added is what pushed them over the limit. **Fix:** I moved code out into small helpers without changing what it does: - **`completion.ts`:** the recap is now built in `buildTerminalNotificationRecap`. - **`prCommentPostExecution.ts`:** the recap is now built in `buildPostExecutionRecap`. - **`notificationProjectionService.ts`:** the task-history lookup is now in a private method, `loadCompletedHistoryMetadata`, and the command-mode fallback is in `resolveCommandMode`. **Checks run locally:** - `npm run lint -- --max-warnings 0` and `npm run lint -w @propr/api -- --max-warnings 0` both pass with no warnings. - The root TypeScript check and the `@propr/api` build pass. - The related tests pass (49 in total): notification projection, routes and management routes; the recap tests; issue job completion; and PR publication, which runs `handlePostExecution`. This is an internal code change with nothing visible in the UI, so I didn't make any previews. PR: #2441 Comment by: @propr-dev[bot] (ID: 5705374932) Comment by: @github-actions[bot] (ID: 5705375182) Model: claude-opus-5
|
No need to show toasts with undos when notifications are removed, these are disposable and it should be easy for user just to kick them out without a chance to get them back. Think something like Android notifications, you just swipe them out without any special effects. No fancy delete buttons on drag or anything. Just show a single always on delete button that will allow removing the notifications even faster than swiping. Notifications shouldn't normally have any buttons on them either, they should have enough core information on what's relevant, clicking them would take the user to the specific action or entity, or just expand the notification if that's a better fit. Buttons should only be added for specific and common follow up actions, for example, sending a "/fix" command after a review, or review or ultrafix commands after a PR or followup completion. Do not pollute the notifiications list with service status info, there's a service status section already. Or make it hidden by default and allow expanding separately. As always, one golden rule with notifications - as soon as they become irrelevant (PR is merged, etc), remove them from the list. Same for service status - something was down, now it's up - notification is removed automatically. |
|
✅ Applied the requested follow-up changes in commit d575242 Summary of ChangesAll four requests are done. Tests, type checks and lint are clean on the files I changed, and I captured desktop and mobile previews of the new cards. Dismissing
Buttons
Service status
Removing irrelevant notifications
I added tests for the new cleanup rules, the command buttons and the endpoint change, and rewrote the inbox tests and the Playwright spec for the new behaviour. The endpoint tests only cover rejecting bad requests; posting the comment to GitHub isn't tested. Visual previewButton-free Inbox cards with follow-up commandsEach card has one always-visible dismiss control; only a finished review offers /fix, and a finished PR run offers /review and /ultrafix. System status is collapsed by default. Original unavailable: managed storage is unavailable or the upload has expired. Plain swipe to dismiss on mobileA review card mid-swipe, following the finger with no red layer, label, or undo. Original unavailable: managed storage is unavailable or the upload has expired. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
… clean on the files I changed, and I captured desktop and mobile previews of the new cards. All four requests are done. Tests, type checks and lint are clean on the files I changed, and I captured desktop and mobile previews of the new cards. **Dismissing** - Dismissing is now silent and final: no toast, no Undo. I removed the restore endpoint and API client that the branch added for Undo, since nothing uses them any more. - Swiping just moves the card with your finger. Past the threshold it's gone; there's no red layer or "Release" label. It works in either direction, like Android. - Each card has one always-visible ✕ button, and nothing appears while dragging. **Buttons** - Cards no longer have Stop, Follow up, Open PR, Refine, Approve / Execute, Dismiss or "View details" buttons. - Clicking a card opens what it's about: - **PR notifications:** the pull request on GitHub, or the task page if there's no link. - **Tasks and reviews:** the task page. - **Plans:** Plan Studio. - **System alerts:** they have nowhere to link to, so clicking expands the full message instead. - The only buttons left are the follow-up commands: - **Finished review:** `/fix`. - **Finished PR run (implementation, fix, merge):** `/review` and `/ultrafix`. Sending a command posts it as a comment on the pull request. The card then removes itself, since its follow-up is done. - To make those commands reach the PR, the task follow-up endpoint now accepts an optional `target: "pull_request"`. Without it, commands from implementation tasks would have landed on the original issue. The backend only offers the commands when the task can actually post to that PR. **Service status** - The System section now starts collapsed at the bottom of the Inbox and opens with a click. - **Decision for you:** the unread badge still counts system notifications, so it can show a number the user can't see until they open that section. If you'd rather they didn't count, that needs a backend change to the unread count. **Removing irrelevant notifications** Some of this already worked: PR notifications cleared on merge, system alerts cleared on recovery, and stalled warnings cleared when the work finished. I added: - **PR closed without merging:** all its notifications are removed. - **Failed task or failed indexing run:** removed once the same task or the same repository and branch later completes successfully. - **Seat-limit alert:** removed once a seat is free again. I added tests for the new cleanup rules, the command buttons and the endpoint change, and rewrote the inbox tests and the Playwright spec for the new behaviour. The endpoint tests only cover rejecting bad requests; posting the comment to GitHub isn't tested. PR: #2441 Comment by: @integry (ID: 5706585987) Model: claude-opus-5
|
CI failed: Validate Changes Please investigate and fix this CI failure.
Failure evidence
|
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
✅ Applied the requested follow-up changes in commit cb4d8e3 Processed 2 comments:
Summary of ChangesI fixed the failing Validate Changes check. The full browser test suite that CI runs ( Cause: the last commit removed the card buttons, but one browser test ( Fix: I changed only that test, so it now checks the new cards:
The existing checks for the preview image, the section count and horizontal overflow are unchanged. I didn't create visual previews, because nothing a user sees has changed. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…owser test suite that CI runs (`npm run test:browser` for the UI) now passes here: 52 of 52 tests. I fixed the failing **Validate Changes** check. The full browser test suite that CI runs (`npm run test:browser` for the UI) now passes here: 52 of 52 tests. **Cause:** the last commit removed the card buttons, but one browser test (`propr-ui/e2e/preview-media.pw.ts`) still expected the old **View details** link and **Open pull request** button. Those are gone, so the test failed at both 390px and 1440px widths. The app itself was working correctly; only the test was out of date. **Fix:** I changed only that test, so it now checks the new cards: - Clicking the card opens the pull request on GitHub. - The only button on this card is the ✕ dismiss button, and it works. The existing checks for the preview image, the section count and horizontal overflow are unchanged. I didn't create visual previews, because nothing a user sees has changed. PR: #2441 Comment by: @propr-dev[bot] (ID: 5706767485) Comment by: @github-actions[bot] (ID: 5706767592) Model: claude-opus-5
|
✅ Applied the requested follow-up changes in commit d4b66b8 Summary of ChangesThe Inbox is now one plain list, newest first. System notifications are the only group left, and cards are titled by their actual PR or issue title. The type checks, lint (zero warnings), 124 UI notification tests, the server notification tests and 7 browser tests all pass. Layout
Titles and IDs
Notifications already stored keep their old titles; only new ones get the PR/issue title. I updated the existing unit and browser tests for the flat list. I also added one server test checking that merge and failed-issue notifications use the real title. Visual previewPR completion with preview mediaA completed PR notification with its visual preview in the ungrouped list. Original unavailable: managed storage is unavailable or the upload has expired. Linear Inbox at desktop widthOne newest-first list on plain white cards with no category groups. Cards are titled by the PR or plan title, the PR number stays visible as a PR81 chip, and only System sits apart, collapsed. Original unavailable: managed storage is unavailable or the upload has expired. Linear Inbox on mobile mid-swipeThe same flat, neutral list at 390px wide, with the newest card being swiped away. Original unavailable: managed storage is unavailable or the upload has expired. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…ications are the only group left, and cards are titled by their actual PR or issue title. The type checks, lint (zero warnings), 124 UI notification tests, the server notification tests and 7 browser tests all pass. The Inbox is now one plain list, newest first. System notifications are the only group left, and cards are titled by their actual PR or issue title. The type checks, lint (zero warnings), 124 UI notification tests, the server notification tests and 7 browser tests all pass. **Layout** - The "Needs attention", "Ready for review" and "Completed" groups are gone. Everything except system updates is in one list sorted by time, newest on top. - System and indexing updates stay in one collapsed "System" section above the list. Its header is plain grey text with a count and a chevron. - Cards no longer have colored backgrounds, including the teal fill on unread ones. Every card is white with a grey border. Unread is shown only by the small dot and a bold title. **Titles and IDs** - The title is now the PR or issue title. For example, "Review completed for PR #81" becomes "Guard Inbox recaps against empty metadata". The server gets it from the title stored with the task, stripping prefixes like "Follow-up PR #42:" and "New Issue:". - If a task has no stored title, the old wording is used. - Plan notifications are titled by the plan name, with "Ready for review with 4 planned tasks." underneath. - The PR or issue number is still shown, as a small grey `PR81` or `#12` chip. The chips and dot separators are copied from the metadata row on the task details page (the one in your screenshot), so no new element styles were added. - The event type (e.g. "Review completed", "Fix completed") is plain grey text in that same row. Notifications already stored keep their old titles; only new ones get the PR/issue title. I updated the existing unit and browser tests for the flat list. I also added one server test checking that merge and failed-issue notifications use the real title. PR: #2441 Comment by: @integry (ID: 5711992010) Model: claude-opus-5
|
✅ Applied the requested follow-up changes in commit d1e09aa Summary of ChangesThe Inbox header now has just the title and an icon-only Clear all button. The refresh button and the description line are gone, and System sits at the bottom in a grey box with a light border. Type check and lint pass, and so do all 218 related UI tests and the 3 Inbox browser tests.
I replaced the Refresh button clicks in the existing tests with switching back to the window, which triggers the same reload. I also added a test that the header stays minimal and that an automatic refresh doesn't drop pages you've loaded. A new browser test checks the icon-only button, that System is below the cards, and its grey background. The previews show the new header with System collapsed, and System expanded. Visual previewSimplified Inbox headerThe Inbox header now has only the title and an icon-only Clear all button, with the collapsed System panel in grey at the bottom of the list. Original unavailable: managed storage is unavailable or the upload has expired. System panel expandedThe expanded System panel, with its light border and grey background, below the activity feed. Original unavailable: managed storage is unavailable or the upload has expired. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…ear all button. The refresh button and the description line are gone, and System sits at the bottom in a grey box with a light border. Type check and lint pass, and so do all 218 related UI tests and the 3 Inbox browser tests. The Inbox header now has just the title and an icon-only Clear all button. The refresh button and the description line are gone, and System sits at the bottom in a grey box with a light border. Type check and lint pass, and so do all 218 related UI tests and the 3 Inbox browser tests. - **Automatic refresh:** the refresh button couldn't just be removed, because the list never updated on its own. Only the unread badge did. The list now reloads every 60 seconds and when you come back to the tab, the same way the badge does. It skips this while you're offline or clearing. If you've already clicked Load more, new notifications are added at the top and the older pages you loaded stay. - **Clear all:** it's now a small trash icon next to the dismiss ✕ buttons on the cards, with "Clear all" as its tooltip. It still asks you to confirm before clearing. - **Error banner:** it used to say "Use Refresh to try again." It now says "Retrying automatically." - **System section:** it's below the list and below Load more, with a grey background and a light border. It's still collapsed until you click it. I replaced the Refresh button clicks in the existing tests with switching back to the window, which triggers the same reload. I also added a test that the header stays minimal and that an automatic refresh doesn't drop pages you've loaded. A new browser test checks the icon-only button, that System is below the cards, and its grey background. The previews show the new header with System collapsed, and System expanded. PR: #2441 Comment by: @integry (ID: 5712929142) Model: claude-opus-5
|
✅ Applied the requested follow-up changes in commit 829546d Summary of ChangesFailures now show a red pill and warnings an orange one. Everything else, like completed reviews, plans and PRs, keeps the teal pill.
The pill still only shows while a notification is unread, so a failure you've already read has no pill, as before. Visual previewSeverity-coloured unread pillsInbox at desktop width: a stalled task shows an orange pill, the redis system failure a red pill, and successful updates keep teal. Original unavailable: managed storage is unavailable or the upload has expired. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
Add also MCP tools/resources for notifications, so that connected AI agents could read and control them too. |
…erything else, like completed reviews, plans and PRs, keeps the teal pill. Failures now show a red pill and warnings an orange one. Everything else, like completed reviews, plans and PRs, keeps the teal pill. - **What changed:** the pill is the unread dot next to the notification type. Its colour now comes from the notification's severity through a small new helper, `notificationIndicatorClass` in `propr-ui/src/pages/inboxUtils.ts`, which the card in `InboxPageComponents.tsx` uses. - **What it covers:** the redis "System failure" card from your screenshot is now red. So are "Task failed" and "Indexing failed". Warnings are orange: "Task stalled", "Indexing stalled" and the seat-limit system notice. - **Tests:** I added a unit test for the three colours. The Inbox unit tests (30), the UI type check and lint on the changed files all pass. The 3 Inbox browser tests still pass. A one-off browser run also confirmed the red and orange colours on the page and took the preview screenshot. The pill still only shows while a notification is unread, so a failure you've already read has no pill, as before. PR: #2441 Comment by: @integry (ID: 5713036070) Model: claude-opus-5
|
✅ Applied the requested follow-up changes in commit e47c68d Summary of ChangesConnected AI agents can now read and control the whole Inbox over MCP, not just one repository's notifications. The MCP test suite passes (30 tests, including the new notification checks), the notification server tests pass, and both type checks are clean. This only changes the server, so there's nothing to preview visually. What was there before: MCP already had tools to list, mark read, dismiss and bulk-update notifications, plus preferences. But every call needed a Tools (now in their own file,
Resources: agents can read the Inbox at Who can see what: a repository's notifications are visible only if the repository is in the agent's access and on this ProPR instance, and the user still has access to it on GitHub. Anything outside that is reported as not found and never counted. System notifications have no repository, so they only appear when no Supporting changes:
🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…x over MCP, not just one repository's notifications. The MCP test suite passes (30 tests, including the new notification checks), the notification server tests pass, and both type checks are clean. This only changes the server, so there's nothing to preview visually.
Connected AI agents can now read and control the whole Inbox over MCP, not just one repository's notifications. The MCP test suite passes (30 tests, including the new notification checks), the notification server tests pass, and both type checks are clean. This only changes the server, so there's nothing to preview visually.
**What was there before:** MCP already had tools to list, mark read, dismiss and bulk-update notifications, plus preferences. But every call needed a `repository`, so agents couldn't see system notifications. The list also filtered one page after loading it, so a page could come back nearly empty.
**Tools** (now in their own file, `packages/api/mcp/toolsNotifications.ts`):
- **`list_notifications`:** `repository` is now optional. Without it, the agent gets the same newest-first Inbox the user sees: system notifications plus every repository the agent's access covers. New filters are `kinds`, `unreadOnly` and `includeDismissed`, and pages now fill properly. Each call reads at most 1,000 notifications, and `nextCursor` picks up where it stopped.
- **`get_notification`** (new): reads one notification, including a dismissed one.
- **`get_notification_unread_count`** (new): counts unread notifications per repository and for system notifications, without counting repositories outside the agent's access.
- **`mark_notification_read`, `dismiss_notification`, `update_notifications`:** `repository` is now optional, so these work on system notifications too. Every ID is still checked against the agent's access.
- **`clear_notifications`** and **`mark_all_notifications_read`** (new): the equivalents of the Inbox's "Clear all" and "mark all read". They can be limited to one repository or to certain kinds. Each call handles up to 500 notifications and returns `hasMore` if there are more.
- The preference tools haven't changed.
**Resources:** agents can read the Inbox at `propr://instances/{id}/notifications` and a single notification at `.../notifications/{id}`. Tool results now link to these and to the `/inbox` page.
**Who can see what:** a repository's notifications are visible only if the repository is in the agent's access and on this ProPR instance, and the user still has access to it on GitHub. Anything outside that is reported as not found and never counted. System notifications have no repository, so they only appear when no `repository` is given. Changing a notification also needs GitHub write access to its repository, as the existing tools already did.
**Supporting changes:**
- A small `getNotification(userId, eventId)` read in the core notification service.
- `docs/mcp-coverage.md` lists the new tools.
- The two MCP connection tests now expect 4 resources instead of 3.
- The MCP test now covers the whole-Inbox view, repository-only and kind filters, page cursors, a hidden notification outside the agent's access, the new resource, unread counts, mark-all-read and clear-all.
PR: #2441
Comment by: @integry (ID: 5713062775)
Model: claude-opus-5
|
CI failed: Validate Changes Please investigate and fix this CI failure.
Failure evidence
|
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
✅ Applied the requested follow-up changes in commit 117b249 Processed 2 comments:
Summary of ChangesI fixed the failing Validate Changes check. The tests weren't the problem: the API lint step fails on any warning, and the last commit (the MCP notification tools) added two.
After the change, the API lint passes with zero warnings and the API build is clean. The lint on the changed core files also passes, and so does the full MCP test suite CI runs (30 of 30). I didn't rerun the whole CI workflow here; the log showed the API lint as the only step that failed. This only touches server code and tests, so there's nothing to preview visually. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
CI failed: Validate unsigned darwin-x64 package Please investigate and fix this CI failure.
Failure evidence
|
…eren't the problem: the API lint step fails on any warning, and the last commit (the MCP notification tools) added two. I fixed the failing **Validate Changes** check. The tests weren't the problem: the API lint step fails on any warning, and the last commit (the MCP notification tools) added two. 1. **`packages/api/mcp/presentation.ts`**: the new notification lines pushed `readSummary` over the complexity limit (23, max 20). I moved them into a small `notificationSummary` helper, the same way `agentActivitySummary` is already split out. The summaries themselves are unchanged. 2. **`packages/api/test/mcpWorkflows.test.ts`**: the new notification checks made the file 411 lines (max 400). I moved them unchanged into a new file, `packages/api/test/fixtures/mcpNotifications.ts`, the same way the cancellation checks live in `fixtures/mcpCancellation.ts`. The file is now 400 lines. After the change, the API lint passes with zero warnings and the API build is clean. The lint on the changed core files also passes, and so does the full MCP test suite CI runs (30 of 30). I didn't rerun the whole CI workflow here; the log showed the API lint as the only step that failed. This only touches server code and tests, so there's nothing to preview visually. PR: #2441 Comment by: @propr-dev[bot] (ID: 5713280053) Comment by: @github-actions[bot] (ID: 5713280474) Model: claude-opus-5
|
✅ Applied the requested follow-up changes in commit e686a95 Summary of ChangesI fixed the failing Validate unsigned darwin-x64 package check. This PR didn't cause it: the branch doesn't touch the desktop app. The problem was one flaky desktop test, Cause: the test starts a bash script that sets up a cleanup step, then waits. The test's 300 ms timer started as soon as bash was launched. On the slow macOS runner, the stop signal arrived before bash had set up its cleanup step. Bash was killed outright instead of running the cleanup and exiting with code 143, so the exit-code check failed. Fix (in Checks:
Nothing changes on screen, so there's no visual preview. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…* check. This PR didn't cause it: the branch doesn't touch the desktop app. The problem was one flaky desktop test, `timeout remains primary while TERM runs the wrapper cleanup`. The other 910 tests in that run passed. I fixed the failing **Validate unsigned darwin-x64 package** check. This PR didn't cause it: the branch doesn't touch the desktop app. The problem was one flaky desktop test, `timeout remains primary while TERM runs the wrapper cleanup`. The other 910 tests in that run passed. **Cause:** the test starts a bash script that sets up a cleanup step, then waits. The test's 300 ms timer started as soon as bash was launched. On the slow macOS runner, the stop signal arrived before bash had set up its cleanup step. Bash was killed outright instead of running the cleanup and exiting with code 143, so the exit-code check failed. **Fix** (in `apps/desktop/scripts/run-bounded-darwin-command.test.mjs`): the script now writes a "ready" file once its cleanup step is in place. The test waits for that file before the timer starts. Two other tests in the same file already wait this way. I only changed the test; the code it tests is untouched. **Checks:** - The full file passes: 14 tests, none failing. - The fixed test passed all 10 times I ran it with the CPU under heavy load. - These runs were on Linux, not on macOS where it failed. Nothing changes on screen, so there's no visual preview. PR: #2441 Comment by: @propr-dev[bot] (ID: 5713324294) Model: claude-opus-5
|
/review fable |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — fableOverall EvaluationThis PR reworks the Inbox in two ways: how notifications are dismissed and what each row says.
The original objective asked for an Undo and a visible swipe affordance. The repository owner explicitly dropped both in later comments, so the current behaviour matches their intent. I traced the changed paths and found no PR-introduced blocker, and all current-head checks pass. The PR is merge-ready within scope; the items below are optional hardening. ✅ Recap data reaches the notification without a render-time fetch. Recaps are written into history metadata or ✅ The follow-up button only appears when the API can serve it. ✅ MCP notification access is scoped per grant. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Bulk MCP tools can report
|
|
S1: 🟢 Bulk MCP tools can report hasMore forever If the first 1,000 active notifications don't match, every call returns count: 0, hasMore: true. Non-matching here means repositories outside the grant, other kinds, or, for mark-all-read, items already read. S2: 🟢 Auto-refresh keeps cards the server already dismissed S3: 🟢 Limit the issue_number fallback to PR tasks For an issue task that has an issue number but no PR, a direct API caller would post a /review comment onto the issue instead of getting the 400. S4: 🟢 Guard modifiedFiles in the issue-completion recap S5: 🟢 Recap cleanup removes underscores from identifiers S6: 🟢 Seat-limit dismissal runs on every healthy snapshot S7: 🟢 Small UI details inside a , which flattens heading semantics for assistive technology.
|
|
✅ Applied the requested follow-up changes in commit ca1af08 Summary of ChangesI've made all seven fixes (S1–S7). The tests, lint and type checks pass. Nothing here looks different on screen, so there's no visual preview.
Checks run: type checks for the root, API and UI; ESLint on every changed file; server tests for recaps, issue completion, follow-up routes, notification projection and MCP workflows; 35 UI tests (Inbox page, inbox utils, notification actions); and the 3 Inbox Playwright tests. Two older tests changed because of the heading fix: the System heading text now includes its count ( 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
… checks pass. Nothing here looks different on screen, so there's no visual preview. I've made all seven fixes (S1–S7). The tests, lint and type checks pass. Nothing here looks different on screen, so there's no visual preview. - **S1 – bulk MCP tools:** `clear_notifications` and `mark_all_notifications_read` now take a `cursor` and return a `nextCursor`. Each call picks up where the last one stopped, so a run of non-matching notifications is never rescanned. The tool description now tells agents to pass `nextCursor` back while `hasMore` is true. The MCP test now resumes a clear from a cursor. - **S2 – dismissed cards lingering after "Load more":** a refresh now drops loaded cards that sort within the fresh first page's range but aren't in the response. Older pages are left alone. If the first page turns out to be the whole Inbox, everything missing is dropped and "Load more" goes away. A new UI test covers both cases. - **S3 – issue number fallback:** a PR command only falls back to `issue_number` when `task_type === 'pr-comment'`. An issue task with an issue number but no PR now gets the 400, and there's a new test for it. - **S4:** `modifiedFiles?.length` in the issue-completion recap. - **S5 – underscores in recaps:** recap cleanup now removes only paired `*`, `**`, `_`, `__` and `~~` markers, plus backticks. `notification_user_states` and snake_case filenames keep their underscores, and a test covers this. - **S6 – seat-limit dismissal:** healthy snapshots first check whether an active seat-limit card exists and skip the dismissal write if not. I used a database check instead of remembering the last state in memory, so it still clears a stale card after a restart or when another process created it. The existing test now checks that a later healthy snapshot makes no dismissal call. - **S7 – small UI details:** - The 60-second, focus and visibility refreshes are now silent. They no longer disable Clear all or clear the error banner; the error is cleared only when a load succeeds. "Retry" on the error screen still shows the busy state. - "Load more" now cancels any silent refresh that's still in flight, so a late first page can't overwrite the page that just loaded. - The System panel's list container is always in the page (hidden while collapsed), so `aria-controls` always points at something. - The heading and button are now nested correctly: `<h2>` wraps the System toggle button, and expandable System cards show their title as plain text instead of an `<h3>` inside a button. The card is still named by its title. - The two recap texts moved into `notificationRecap.ts`, so the `max-lines` disable in `processPullRequestCommentJob.ts` is gone and lint still passes. **Checks run:** type checks for the root, API and UI; ESLint on every changed file; server tests for recaps, issue completion, follow-up routes, notification projection and MCP workflows; 35 UI tests (Inbox page, inbox utils, notification actions); and the 3 Inbox Playwright tests. Two older tests changed because of the heading fix: the System heading text now includes its count (`System1`), and the browser test checks that text with `toContainText`. PR: #2441 Comment by: @integry (ID: 5714384073) Model: claude-opus-5
|
CI failed: Validate unsigned linux-arm64 package Please investigate and fix this CI failure.
Failure evidence
|
|
ℹ️ Analyzed the follow-up request by @propr-dev[bot] Analysis SummaryI looked into this and didn't change any code. The failure came from a native crash in Electron (the framework the desktop app is built on) at the very end of the smoke test. Nothing on this branch could have caused it. What failed: The packaged Linux ARM desktop app launched and got through all of its checks on the first of four test launches: startup, icon, profile requests, Connect screen, layout, tray. It then ran its shutdown sequence all the way to the last step ( Why it isn't this PR:
Why I didn't patch around it: I could make the smoke script accept a crash after Next step: Re-run the failed job once the rest of the run finishes (it's still in progress, so GitHub won't allow a re-run yet): There's nothing visual to show, so I didn't make a preview. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
/review fable |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — fableOverall EvaluationThis PR reworks the Inbox in three layers: producers now persist a compact The implementation is careful and internally consistent. I traced the recap data path ( ✅ Recaps are computed once at write time — ✅ Swipe gesture is correctly gated — ✅ Bulk MCP tools are now resumable — Verdict: no merge blockers in the changed code, but the current head has a failed Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Focus-triggered background refresh discards an in-flight Load more
S2: 🟢 System cards nest block content inside a button
S3: 🟢 Bulk read/clear performs up to 500 sequential REST-handler calls
S4: 🟢 Seat-limit card is dismissed on any unparseable Connect account signal
S5: 🟢 Confirm the PR-targeted follow-up route does not double-run slash commands
S6: 🟢 Possibly unused
|











Goal Implementation Summary
✅ Goal completed successfully.
Goal: Improve inbox notifications so they are both easier to manage and genuinely informative at a glance.
Two parts.
Swipe to dismiss. Swiping a notification to the right in the inbox should remove it from the list. Make the gesture feel natural on touch devices, with a clear visual affordance during the swipe, and keep an equivalent action available for mouse and keyboard users so the behaviour is not touch-only. Consider a brief undo affordance in case of accidental dismissal.
Richer notification content. Notifications currently say little more than that something finished. Each notification type should carry a short, human-readable recap so an admin returning to the tool gets the gist immediately without opening anything.
For a completed pull request review, include the review score and the number of issues found, or a brief summary of the issues raised.
For completed follow-up runs such as merges and fix runs, summarise what was actually done.
Extend the same treatment across the other notification types as well, so the pattern is consistent throughout the inbox rather than special-cased for reviews.
Keep each recap compact enough to scan in a list row, and make sure the data needed for it is available to the notification rather than requiring an extra fetch at render time where that can be avoided.
Branch:
goal-447b3e4f/gpt-5.6-sol-improve-inbox-notificatio-20260916-2120-y89Goal ID:
447b3e4f-c00d-4bb6-8603-0dcc9d111e00Summary of Changes
I’m starting from the current worktree as the source of truth. I’ll first map the inbox UI, notification producers/data model, and the project’s test/preview tooling, then implement and verify the full behavior without touching Git state.
The existing inbox already has optimistic button-based dismissal, but it commits immediately and only shows a generic success toast; there is no swipe interaction or recoverable undo. Notification projection also mostly reuses task descriptions, so review scores/issues and the actual outcomes of merge/fix follow-ups are not yet carried into the notification row. I’m tracing the persisted task result shapes now so the recap is generated once at projection time rather than fetched by the UI.
The dismissal path is now being made truly reversible at the receipt level, so Undo restores the same persisted notification rather than merely redrawing a stale local copy. The swipe surface uses touch/pen pointer tracking, reveals a red “release to dismiss” layer, and leaves the existing labeled Dismiss button intact for mouse and keyboard access. Next I’m wiring compact recaps into the task completion records and projection.
The implementation checks exposed a prepared-worktree limitation: dependencies are not installed, so the repository’s Vitest and TypeScript commands are currently unavailable. One
npxtest process attempted to bootstrap its runner and is still live; I’m checking that process, then I’ll either use the available install path or record the tooling gap while continuing static verification.Core behavior and focused regression coverage are now green: the inbox UI tests pass (including swipe, undo, and stale-refresh races), projection tests pass for review/fix/merge/plan/indexing/system recaps, the receipt restore service and authenticated route pass, and both root/UI typechecks pass. I’m doing the broader notification suite now, then I’ll capture the required focused visual evidence from the running UI.
The core flow, rich recaps, and focused tests are in place. I’m finishing the broad notification regression run and capturing the required mobile swipe and desktop Undo evidence before handing the checkpoint to ProPR.
The full notification suite is clean: 15 files and 122 tests passed. I spotted one issue in the preview harness—its helper would have doubled the
.pngsuffix—so I’m correcting that and making the desktop scenario exercise the native keyboard dismissal path explicitly.The browser test harness built successfully, but the agent image is missing Playwright’s Chromium binary. Since the project already uses Playwright and network access is available, I’m installing that runtime dependency and will rerun the two focused scenarios; if the download fails, I’ll record the missing browser as the actionable preview-tool suggestion.
Both browser scenarios now pass: the mobile swipe reveals the release affordance, and keyboard dismissal produces the Undo state and restores correctly. I’m reviewing the captured frames for focus, sizing, and absence of unrelated or sensitive content, then I’ll write the transient preview manifest and do the final changed-file audit.
The desktop evidence is focused and clean. The first mobile frame passed functionally but framed the top of the Inbox while the swiped review card sat below the fold, so it did not visibly prove the gesture. I’m tightening the capture to scroll that exact card into view before swiping and will overwrite the evidence with the focused state.
The focused mobile frame exposed a small usability polish issue: at the 96px activation threshold, the longer “Release to dismiss” label was clipped by the card itself. I’m shortening the revealed states to “Dismiss” and “Release,” preserving the red trash treatment while making the entire instruction legible at the actual threshold.
The final mobile capture now shows the complete red trash/“Release” affordance beside the compact score-and-issues recap; both preview images are under 100 KiB and contain only synthetic fixture data. I’m on the final audit now: producer-specific coverage, final lint/type checks, and confirmation that the checkpoint scope contains only implementation and tests—not transient previews or generated artifacts.
Final audit is clean. Current validation includes both TypeScript builds, UI lint with zero findings, 122 notification regressions, 65 service/API projection tests, 20 Inbox tests, 17 merge-job tests, the issue completion tests, and both focused Playwright scenarios. The only lint notices were two pre-existing complexity warnings in touched worker functions; there are no lint errors. The checkpoint scope below excludes all generated build/test data and the transient preview directory.
{"checkpointReady":true,"message":"feat(notifications): add swipe dismissal, undo, and rich recaps","include":["packages/core/src/services/notificationService.ts","packages/core/src/index.ts","packages/core/test/notificationService.test.ts","packages/api/routes/notificationRoutes.ts","packages/api/server.ts","packages/api/services/notificationProjectionService.ts","packages/api/test/notificationRoutes.test.ts","packages/api/test/notificationManagementRoutes.test.ts","packages/api/test/notificationProjectionService.test.ts","packages/api/test/notificationProjectionTestHarness.ts","propr-ui/src/api/notificationApi.ts","propr-ui/src/api/notificationApi.test.ts","propr-ui/src/pages/useInboxNotifications.ts","propr-ui/src/pages/InboxPageComponents.tsx","propr-ui/src/pages/InboxPage.test.tsx","propr-ui/src/pages/inboxUtils.ts","propr-ui/src/pages/inboxUtils.test.ts","propr-ui/e2e/inbox-dismissal.pw.ts","src/jobs/notificationRecap.ts","src/jobs/prCommentReviewJob.ts","src/jobs/prCommentPostExecution.ts","src/jobs/issueJob/completion.ts","src/jobs/mergeConflictAgentRunner.ts","test/notificationRecap.test.ts","test/issueJobCompletion.test.ts","test/processMergeConflictJob.test.ts"],"summary":"Adds touch/pen swipe-to-dismiss with visib
🤖 Implementation Details
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback.
This PR description was updated automatically by ProPR after the goal completed.
Visual preview
No-change fix recap
A completed fix run explains that no files changed because no authorized review findings were selected.
Original unavailable: managed storage is unavailable or the upload has expired.
Mobile swipe-to-dismiss affordance
A rich review notification mid-swipe, revealing the red Release action at mobile width.
Original unavailable: managed storage is unavailable or the upload has expired.
Desktop notification dismissal with Undo
The Inbox after keyboard dismissal, retaining a rich review recap and offering Undo.
Original unavailable: managed storage is unavailable or the upload has expired.