Skip to content

[1723 by GPT-5.6 Sol] Create the mobile-first Inbox page with grouping, unread state, dismissal, and badging - #1937

Merged
integry merged 10 commits into
1716-epic-failed-to-3m8from
1723/gpt-5.6-sol-create-the-mobile-first-i-20260824-1227-mud
Aug 24, 2026
Merged

integry merged 10 commits into
1716-epic-failed-to-3m8from
1723/gpt-5.6-sol-create-the-mobile-first-i-20260824-1227-mud

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #1723

Branch: 1723/gpt-5.6-sol-create-the-mobile-first-i-20260824-1227-mud
Commits: ✅ Changes committed (6c22d32)


AI Processing Completed

Execution Details:

Summary:
Implemented GitHub issue #1723.

Key changes:

  • Added authenticated /inbox route with direct header and sidebar navigation.
  • Grouped all required notification kinds into Needs attention, Ready for review, Completed, and System.
  • Added unread styling, repository/component details, relative timestamps, event labels, deep links, and actions.
  • Implemented optimistic read and dismissal updates with rollback and error toasts.
  • Added cursor pagination with duplicate prevention and refresh support.
  • Added usable loading, empty, offline, and error states for narrow mobile viewports.
  • Synchronized sidebar, header, and installed-app badges with server unread counts while respecting badge preferences.
  • Added service-worker dismissal handoff through ?intent=dismiss&notification=....
  • Protected against dismissal/list-response races.

Validation completed:

  • Typecheck passed.
  • ESLint passed.
  • Full UI suite: 400 tests passed.
  • Inbox/service-worker suite: 23 tests passed.
  • Production build passed.

Detailed Logs:

  • Conversation: 85 messages
  • Session: 01a033be-05ef-7331-ad03-f7be5543ebd5

Log files stored at:

  • conversation: /tmp/claude-logs/issue-1723-2026-08-24T12-40-55-258Z-conversation.json
  • output: /tmp/claude-logs/issue-1723-2026-08-24T12-40-55-258Z-output.txt
Latest Conversation Messages

This PR was created automatically by ProPR after processing issue #1723.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!

…h grouping,

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.
@propr-dev

propr-dev Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

/ultrafix
Triggered automatically by Planner execution settings.

@propr-dev propr-dev Bot added the ultrafix label Aug 24, 2026
@propr-dev

propr-dev Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 10)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@integry

integry commented Aug 24, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev

propr-dev Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — claude:claude-sonnet-5

Overall Evaluation

This PR adds a full mobile-first /inbox experience: a new authenticated route, a NotificationCenterContext that centralizes unread-count/badge state, an InboxPage with grouped notification cards, optimistic read/dismiss with rollback, cursor-based pagination with de-duplication, and a service-worker dismiss handoff via ?intent=dismiss&notification=.... Backend notification infrastructure (routes, service, schemas) is pre-existing and untouched; this PR is purely the client-side wiring, which is the correct scope for the stated objective.

The core Inbox logic is carefully built: optimistic dismiss/read flows use generation counters and hiddenIdsRef to guard against out-of-order responses re-inserting dismissed items, and this is directly validated by targeted tests (InboxPage.test.tsx, serviceWorker.test.ts, inboxUtils.test.ts). The service worker's new bounded safeEventId (255-byte UTF-8 limit matching NOTIFICATION_PAYLOAD_LIMITS.identifierBytes) is a solid, well-tested safety improvement over the old sanitized-tag-only approach.

One regression was introduced in GlobalHeader.tsx while making room for the new Inbox icon: the Logout button is now hidden below the sm breakpoint, removing a previously-available action from the mobile header with no alternate access point visible in the supplied navigation/chrome code. This should be fixed before merge, but is narrow and easy to correct.

✅ Robust optimistic-update rollback — useInboxNotifications.ts's dismiss/open correctly snapshot prior state, roll back on failure, restore unread counts, and are exercised by dedicated failure-path tests in InboxPage.test.tsx.

✅ Careful bounded event-ID handling in the service worker — service-worker.js separates the sanitized notification tag (safeEventTag) from the full, byte-bounded eventId used for the dismiss handoff, with matching regression tests for exact preservation and unbounded-ID rejection.

✅ Race-safe pagination and dismissal ordering — mergeNotifications plus hiddenIdsRef/requestGenerationRef prevent a stale list response from resurrecting an item already dismissed via the service-worker intent flow, verified by an explicit race test.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F1: 🔴 Logout control hidden on mobile viewports

  • Required behavior: A PR whose stated purpose is mobile-first UI must not regress existing account-management functionality (logout) for the exact mobile viewports it targets.
  • Evidence: propr-ui/src/components/GlobalHeader.tsx (ProfileSection) — the diff changes className="text-sm text-gray-500 hover:text-red-600 font-medium transition-colors" to className="hidden text-sm font-medium text-gray-500 transition-colors hover:text-red-600 sm:block", hiding the Logout button below the sm (640px) breakpoint.
  • Minimum fix: Keep the Logout affordance reachable below the sm breakpoint — e.g. drop the hidden/sm:block classes, or move Logout into the mobile sidebar/menu so it remains accessible on narrow viewports.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 "Load more" hidden when a page is fully dismissed

In InboxPage.tsx, showState is computed purely from inbox.notifications.length === 0, independent of inbox.hasMore. If a user dismisses every notification currently loaded on a page while nextCursor is still non-null (more historical notifications exist), the UI renders the "You're all caught up" empty state and the hasMore/"Load more" button branch is skipped entirely, even though older notifications remain unfetched. Users can still recover by clicking the always-visible header "Refresh" button (which re-fetches page one, now excluding dismissed items server-side), so this isn't a dead end, but it's a confusing UX edge case worth tightening — e.g., only show the "empty" state when !hasMore.

S2: 🟢 Duplicate unread-count/preferences polling

NotificationCenterContext.tsx's initial useEffect depends on the user object reference ([..., isDemoMode, refreshUnreadCount, user]). Since App.tsx refreshes currentUser via a periodic 60s interval (AUTHORIZATION_REFRESH_INTERVAL_MS) using setCurrentUser(user) with a freshly-fetched object each time, this effect likely re-fires roughly every 60s in addition to the context's own explicit 60s setInterval polling loop, doubling getNotificationUnreadCount/getNotificationPreferences traffic. Not incorrect, but avoidable — consider memoizing on user?.id instead of the user object.

S3: 🟢 Review notifications always grouped as "Completed" regardless of outcome

inboxUtils.ts's notificationGroup maps every review kind notification to 'Completed' unconditionally, unlike task, which branches on severity. A failed/error-severity review would still land in "Completed" rather than "Needs attention," which may be surprising to users scanning for actionable items. Worth confirming against the actual product intent for review outcomes and adjusting the switch if failed reviews should be flagged more prominently.

S4: 🟢 Service-worker dismiss URL can carry unrelated query params

In service-worker.js's handleNotificationClick, all query params from data.deepLink are copied onto the /inbox target URL before setting intent/notification. If the underlying deep link happened to be a GitHub PR URL (a case explicitly supported by safeOpenUrl/isGithubPullRequestUrl), its query params would be forwarded into the internal /inbox route, which is harmless but semantically odd. Consider limiting the forwarded params to app-specific ones (e.g., connect_api_url) rather than blanket-copying.

Score

One localized, easily-fixable regression (Logout accessibility on mobile) keeps this from being merge-ready as-is, though the core Inbox feature is well-implemented and well-tested.

Score: 6/10


🤖 Review Details

  • Model: Claude Sonnet 5
  • Time: 5m 9s
  • Tokens: 108,727 (77,868 in / 30,859 out)
  • Cost: $0.50

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@integry

integry commented Aug 24, 2026

Copy link
Copy Markdown
Owner

/ultrafix

@propr-dev

propr-dev Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 10)

First action: /fix

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@propr-dev

propr-dev Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 3af32d4

Addressed 1 AI review comment (IDs: 5395462743)

Summary of Changes

Implemented F1 only in GlobalHeader.tsx.

  • Removed hidden and sm:block from Logout, keeping it accessible below 640px.
  • Typecheck passed.
  • Focused ESLint passed.
  • git diff --check passed.
  • No commit created, as requested.

🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 1m 34s
  • Tokens: 131,334 (130,048 in / 1,286 out)
  • Cost: $0.20

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Implement fixes for issues found by /review /fix or /fix address the null check issue
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 5396851385✓

…r/worktrees/integry/propr/pr-1937-followup-2026-08-24T14-43-32/propr-ui/src/components/GlobalHeader.tsx:107).

Implemented F1 only in [GlobalHeader.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1937-followup-2026-08-24T14-43-32/propr-ui/src/components/GlobalHeader.tsx:107).

- Removed `hidden` and `sm:block` from Logout, keeping it accessible below 640px.
- Typecheck passed.
- Focused ESLint passed.
- `git diff --check` passed.
- No commit created, as requested.

PR: #1937
Comment by: @integry (ID: 5396851385)
Model: gpt-5.6-sol
@propr-dev

propr-dev Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — claude:claude-sonnet-5

Overall Evaluation

This PR implements the mobile-first Inbox feature described by issue #1723: a new /inbox route with grouped notification presentation, header/sidebar/installed-app badge synchronization, cursor pagination, optimistic read/dismiss with rollback, and a reworked service-worker dismiss handoff that routes through the authenticated Inbox instead of silently discarding the action. The change set is large but coherent, is accompanied by substantial targeted tests (inboxUtils.test.ts, InboxPage.test.tsx, expanded serviceWorker.test.ts), and all current-head checks pass (8 passed, 2 neutral/skipped, 0 failed). I traced the optimistic dismiss/read flows, the cursor-merge logic, the service-worker eventId sanitization/byte-limit handling, and the intent-consumption effect in InboxPage.tsx for races and found the implementation to be internally consistent and well-guarded (generation counters, hiddenIdsRef, processedIntentsRef).

✅ Race-safe optimistic dismiss/read — useInboxNotifications.ts removes/marks items optimistically, restores state and re-shows the toast on failure, and re-syncs the authoritative unread count in a finally block; this exact behavior is verified by InboxPage.test.tsx ("optimistically dismisses and restores an item when the request fails").

✅ Careful service-worker dismiss handoff — service-worker.js's new safeEventId correctly approximates UTF-8 byte length (matching the shared identifierBytes: 255 limit) before handing the raw, URL-encoded event ID to /inbox?intent=dismiss&notification=..., while a separately sanitized safeEventTag is used only for the OS-level notification tag; both paths are exercised by new tests.

✅ Correct de-duplication and race protection for cursor pages vs. intent dismissal — InboxPage.test.tsx's "does not reinsert an intent-dismissed item from an older page response" test, backed by hiddenIdsRef filtering in useInboxNotifications.ts, correctly prevents a stale list response from resurrecting an item dismissed via the service-worker intent.

No regressions were found in the changed control/data paths that rise to the level of a required merge blocker.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Severity fallback branches could mislabel unexpected values

In propr-ui/src/pages/inboxUtils.ts, notificationKindLabel for task falls back to 'Task failed' for any severity other than success/warning (including info), and for indexing falls back to 'Indexing failed' for any severity other than warning. If a producer ever emits kind: 'task'/severity: 'info' or kind: 'indexing'/severity: 'success', the label would misleadingly read "failed." This is plausible-but-unverifiable from the diff alone (producer code isn't in scope), so it's not confirmed as broken, but adding an explicit info/success branch (or an exhaustive default) would make the mapping defensively correct rather than relying on an implicit severity contract.

S2: 🟢 pull_request fallback link loses specificity

notificationHref in propr-ui/src/pages/inboxUtils.ts returns a generic /repositories for pull_request targets whenever notification.action is absent, even though the target already carries repository and prNumber. Building a more specific fallback (e.g., linking into the repository's PR list or summary) would better satisfy the "deep links" goal from the issue when the server doesn't supply an explicit action.

S3: 🟢 Duplicate badge/preference synchronization paths

NotificationSettingsSection.tsx still calls its own local applyBadgePreference (which only clears the badge) in addition to the newly wired commitBadgeEnabled (which fully recomputes the badge via NotificationCenterContext). Both are triggered on the same events, which is redundant but not incorrect. Consolidating on commitBadgeEnabled alone would remove the duplicate navigator.clearAppBadge call path.

S4: 🟢 Frequent unread-count/preferences refetching on unrelated auth polling

NotificationCenterProvider's mount effect depends on user (propr-ui/src/contexts/NotificationCenterContext.tsx), and App.tsx's periodic refreshCurrentUser() (every AUTHORIZATION_REFRESH_INTERVAL_MS = 60s) creates a new currentUser object reference each cycle even when unchanged, which will re-trigger refreshUnreadCount() and getNotificationPreferences() on the same cadence as the provider's own internal 60s poll. This doubles some background requests; memoizing/deep-comparing the user reference, or dropping user from the dependency array in favor of a stable identity key (e.g. user?.id), would reduce redundant calls.

S5: 🟢 hiddenIdsRef grows unbounded for the session lifetime

In useInboxNotifications.ts, hiddenIdsRef accumulates dismissed IDs to guard against stale list responses but is never pruned. Over a long-lived session with many dismissals this is a minor unbounded memory growth; not significant in practice, but worth capping/expiring if the Inbox is expected to stay mounted for extended periods.

S6: 🟢 Refresh discards previously loaded "Load more" pages

refresh() in useInboxNotifications.ts calls loadFirstPage(true), which replaces notifications entirely with just the first page (mergeNotifications([], response.notifications...)), discarding any additional pages the user had already loaded via "Load more." This is reasonable default refresh semantics but could surprise users who scrolled several pages deep; consider preserving the loaded window depth on refresh as a future enhancement.

Score

No actionable (merge-blocking) findings were identified, all current-head checks pass, and the changed behavior is covered by targeted, passing tests; remaining items are optional hardening.

Score: 8/10


🤖 Review Details

  • Model: Claude Sonnet 5
  • Time: 5m 1s
  • Tokens: 104,652 (74,526 in / 30,126 out)
  • Cost: $0.49

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Aug 24, 2026
@integry

integry commented Aug 24, 2026

Copy link
Copy Markdown
Owner

/review codex

@propr-dev

propr-dev Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@integry

integry commented Aug 24, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev

propr-dev Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex

Overall Evaluation

This PR delivers a well-structured mobile Inbox with validated API contracts, optimistic mutations, pagination, navigation badges, and service-worker dismissal handoff. It needs minor, targeted concurrency fixes before merge because stale responses can leave notification state, counts, or errors inconsistent.

✅ Strong presentation coverage — Every notification kind has a deterministic group, label, repository/component detail, fallback destination, and unread styling.

✅ Careful service-worker handoff — Event IDs retain their exact value while being byte-bounded, notification tags are sanitized separately, and existing deep-link query parameters are preserved.

✅ Solid validation baseline — The added tests cover optimistic rollback, successful dismissal/list races, read navigation, cursor de-duplication, and dismissal-intent encoding; all current checks pass.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F2: 🔴 Stale lists overwrite mutations

  • Required behavior: Optimistic read and dismissal operations must settle to authoritative notification state and unread counts, including when an older list request resolves afterward.
  • Evidence: propr-ui/src/pages/useInboxNotifications.ts:54-61 — first-page responses replace notification state and commit their unread count based only on the list-request generation; read and dismissal mutations never invalidate that generation. Consequently, a pre-mutation response resolving after a successful mutation can revert a read card and overwrite the newer unread count.
  • Minimum fix: Track a mutation epoch alongside list requests, or reconcile list results with mutations completed since the request began, so stale responses cannot overwrite read/dismissed state or counts. Add ordering tests for both read and dismissal success.

F3: 🔴 Failed intent can hide item

  • Required behavior: A failed optimistic dismissal must fully roll back the visible notification as well as its unread count.
  • Evidence: propr-ui/src/pages/useInboxNotifications.ts:117-129 — rollback restores the notification only when it was already present in notificationsRef; meanwhile, line 58 filters it from an arriving list response while the dismissal is pending. If a service-worker intent starts before initial loading, the list resolves first, and dismissal then fails, the item remains absent until a manual refresh.
  • Minimum fix: When a failed dismissal has no captured removed item, reload the first page or retain enough of the filtered response to restore that item immediately.

F4: 🔴 Superseded pagination leaks errors

  • Required behavior: Refresh and cursor pagination must not expose errors from requests that have already been superseded.
  • Evidence: propr-ui/src/pages/useInboxNotifications.ts:93-109 — loadMore checks its captured generation only on success, while its catch unconditionally sets the error. propr-ui/src/pages/InboxPage.tsx:43-45 allows Refresh while loadingMore is active, so a superseded load-more failure can leave an error banner after a successful refresh.
  • Minimum fix: Apply the generation check before publishing loadMore errors, or cancel superseded pagination requests.

F5: 🔴 Stale badge preference wins

  • Required behavior: Installed-app badges must consistently respect the current authenticated user’s latest badge preference.
  • Evidence: propr-ui/src/contexts/NotificationCenterContext.tsx:83-92 — preference requests have no cancellation or generation guard, so an older request can resolve after a newer user transition or Settings save and overwrite badgeEnabled. The signed-out branch also clears only the count, retaining the previous account’s preference state.
  • Minimum fix: Version or cancel preference loads by user identity, invalidate pending loads when commitBadgeEnabled applies a newer value, and reset account-scoped preference state during identity transitions.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Refresh relative timestamps

formatRelativeTime is evaluated only when a card renders, so an otherwise idle Inbox can retain labels such as “just now” long after they cease to be accurate. A low-frequency clock tick would improve polish, but this is optional because timestamps are correct at render and the absolute timestamp remains available in the title.

Score

The implementation is substantial, well-tested, and all current checks pass, but four localized response-ordering and preference-lifecycle defects still prevent merge readiness.

Score: 6/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 4m 58s
  • Tokens: 72,626 (59,716 in / 12,910 out)
  • Cost: $0.69

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@integry

integry commented Aug 24, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev

propr-dev Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — claude:claude-sonnet-5

Overall Evaluation

This PR implements a mobile-first /inbox experience: a new authenticated route with grouped notification cards, optimistic read/dismiss with rollback, cursor pagination, a global NotificationCenterContext for unread-count/badge sync across the sidebar/header/installed-app badge, and a service-worker "dismiss" handoff that routes through the new Inbox instead of dismissing purely locally. The implementation is unusually careful about races: request-generation guards in NotificationCenterContext, a hiddenIdsRef guard in useInboxNotifications to prevent a stale in-flight list page from re-inserting an intent-dismissed item, and rollback-on-failure for both dismiss and mark-read. Test coverage for the new logic (inboxUtils.test.ts, InboxPage.test.tsx, expanded serviceWorker.test.ts) is substantial and specifically targets the race conditions the implementation guards against.

✅ Race-safe optimistic updates — useInboxNotifications.dismiss/open correctly avoid double-decrementing unread count when a read-then-dismiss sequence occurs in quick succession (removed?.readAt === null guard), and both paths reconcile with refreshUnreadCount() afterward.

✅ Careful cross-page dedup during pagination races — hiddenIdsRef combined with mergeNotifications prevents an in-flight listNotifications response from resurrecting a notification dismissed via the service-worker intent=dismiss handoff, verified by a dedicated regression test.

✅ Consistent fallback-link logic with the push producer — inboxUtils.notificationHref's per-target fallback paths mirror webPushDispatcher.ts's targetPath, keeping web-app and push deep-links aligned.

The PR is close to merge-ready; I did not find a definitive, high-confidence correctness regression that blocks merging, though one internal-consistency gap in the new grouping/labeling logic (noted below as a suggestion) is worth a second look before or shortly after merge.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Review/indexing grouping ignores severity inconsistently

propr-ui/src/pages/inboxUtils.ts's notificationGroup branches task by severity (success → Completed, otherwise → Needs attention) and notificationKindLabel's indexing case branches on warning vs. everything else, but the review case in both functions is severity-blind (case 'review': return 'Completed'; / 'Review completed' always). Since webPushDispatcher.ts treats error/warning severities uniformly as "an operational alert needs your attention" regardless of kind, and the schema (packages/shared/src/notifications.ts) does not restrict which severities a review-kind event may carry, an error-severity review notification (e.g., "automated review failed to run") could be mislabeled "Review completed" and bucketed under "Completed" instead of "Needs attention." Similarly, an indexing notification with success/info severity would default to the label "Indexing failed." This is worth aligning with the task kind's pattern, but it's not confirmed as an F because there's no direct evidence in the diff that producers currently emit review/indexing events with those severities, so it is offered as a follow-up rather than a blocker.

S2: 🟢 Duplicate unread-count fetch on Inbox mount

NotificationCenterProvider fetches getNotificationUnreadCount() on mount/user-change, and useInboxNotifications's loadFirstPage independently fetches listNotifications (which also returns unreadCount) on Inbox mount. Both results feed commitUnreadCount, so visiting /inbox triggers two redundant unread-count round trips. Not incorrect, just an avoidable network call worth trimming.

S3: 🟢 Optimistic readAt uses occurredAt instead of "now"

In useInboxNotifications.open, the optimistic update sets readAt: notification.occurredAt rather than the current time before the real markNotificationRead response arrives. Nothing in the UI currently renders readAt, so this is cosmetic/latent, but it's a slightly misleading placeholder value that could bite a future feature (e.g., "read X ago" UI) if added without noticing this shortcut.

S4: 🟢 NotificationCenterProvider keeps polling in demo mode

NotificationCenterProvider's effects run whenever user or isDemoMode is truthy, and demo mode is treated as "active" the same as an authenticated user, so unread-count/preferences fetches and the 60s poll continue in demo mode even though sibling providers (BrowserPushProvider, ConnectAccountProvider) are explicitly disabled for demo mode. If the demo backend/session doesn't support these endpoints, this produces recurring failed calls (silently swallowed). Consider disabling the provider's background work in demo mode for consistency with the rest of the app.

S5: 🟢 Service-worker dismiss handoff forcibly navigates the focused tab

handleNotificationClick's dismiss branch always calls focusOrOpenApp(target.href) toward /inbox, which — per unchanged focusOrOpenApp logic — will client.navigate() an existing focused tab away from whatever the user was doing (e.g., mid-edit on /studio/...) to the Inbox just to process a background dismiss. This matches the stated design ("hands dismiss to the authenticated Inbox"), but it's a UX trade-off worth flagging: a purely background dismiss (without forcing navigation when a suitable open tab already exists) might be less disruptive.

S6: 🟢 Duplicate fallback-path logic between client and server

inboxUtils.notificationHref's per-target-type switch duplicates webPushDispatcher.ts's targetPath function almost exactly. Since both live in different packages, a future change to one (e.g., adding a new target type) could silently desync from the other. Not urgent, but a shared util (in @propr/shared or similar) would reduce drift risk.

Score

No actionable merge blockers were found in the changed code; the implementation shows careful handling of the tricky race conditions inherent to optimistic Inbox state, and current-head checks are pending (not failed), which does not cap the score per the scoring guidance. The severity-grouping gap (S1) keeps this just short of a perfect score.

Score: 8/10


🤖 Review Details

  • Model: Claude Sonnet 5
  • Time: 4m 48s
  • Tokens: 110,975 (82,884 in / 28,091 out)
  • Cost: $0.49

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@integry

integry commented Aug 24, 2026

Copy link
Copy Markdown
Owner

/review codex

@propr-dev

propr-dev Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — claude:claude-sonnet-5

Overall Evaluation

This PR implements a fairly large, self-contained "Inbox" notification center: a new /inbox route, header/sidebar unread badges, cursor-paginated notification list with optimistic read/dismiss, a NotificationCenterContext for shared unread-count/badge state, and service-worker changes to hand off push-notification dismissals to the authenticated Inbox via a ?intent=dismiss&notification=... URL. The change set is large but coherent, with the new client-side logic backed by non-trivial race-condition-aware tests (dedicated race tests for stale list responses vs. in-flight dismiss/read mutations, superseded pagination, and identity switching).

I traced the optimistic dismiss/read flow (useInboxNotifications.ts), the badge/unread synchronization (NotificationCenterContext.tsx), and the new service-worker sanitization/handoff logic (service-worker.js) against their tests and callers, and did not find a provable, PR-introduced correctness or safety regression that blocks merge. The remaining concerns are refinements rather than blockers.

✅ Robust optimistic-update race handling — useInboxNotifications.ts's dismiss/open functions use mutationEpochRef, hiddenIdsRef, dismissSnapshotsRef, and readOverridesRef together so that a slow/late listNotifications/loadMore response can neither resurrect a dismissed item nor overwrite a fresher unread count, regardless of which request resolves first — this is exercised by several dedicated race tests in InboxPage.test.tsx.

✅ Careful service-worker ID sanitization — service-worker.js now separates a byte-bounded safeEventId (preserved for the /inbox dismiss handoff URL) from a stripped safeEventTag (used only for the OS notification tag), with boundary tests for oversized and special-character IDs in serviceWorker.test.ts.

✅ Identity/preference race safety — NotificationCenterContext.tsx uses a generation counter so a slow initial getNotificationPreferences() response cannot clobber a more recent manual badge toggle or bleed a previous account's preference into a freshly switched identity, verified by NotificationCenterContext.test.tsx.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Weak deep-link fallback for pull_request/review notifications

notificationHref in propr-ui/src/pages/inboxUtils.ts falls back to the generic /repositories (for pull_request) or /tasks (for review without a taskId) when the server doesn't supply an action. Since pull_request notifications land in the highest-urgency "Needs attention" group, and the target already carries repository/prNumber, a more specific destination (e.g., a direct GitHub PR URL built from those fields) would better fulfill the "deep links" goal from the original issue. This is optional because it's only a fallback path exercised when the server omits an action, which the tests don't establish as the normal case.

S2: 🟢 Possible duplicate app-badge management

NotificationCenterContext.tsx's updateInstalledBadge now calls navigator.setAppBadge/clearAppBadge directly based on the REST-derived unreadCount, while NotificationSettingsSection.tsx continues to call the pre-existing applyBadgePreference with the same boolean in both the initial load and save handler. It's worth confirming these two badge-update paths (old useBrowserPush-based and new context-based) don't compete over navigator.setAppBadge using different counts/sources, which could cause the OS badge to flicker between values.

S3: 🟢 Unbounded per-session ref growth in useInboxNotifications

hiddenIdsRef, dismissSnapshotsRef, and readOverridesRef in propr-ui/src/pages/useInboxNotifications.ts never prune entries for successfully dismissed/read notifications once the mutation completes (aside from dismissSnapshotsRef, which is cleared in dismiss's finally). Over a very long Inbox session with many dismissals/reads, hiddenIdsRef/readOverridesRef will grow unboundedly for the life of the mounted page. This is a minor memory concern rather than a functional bug, since the hook instance is torn down on unmount.

S4: 🟢 dismiss/open callback identity churn

Both dismiss and open in useInboxNotifications.ts are useCallbacks that depend on unreadCount, which changes frequently (every commitUnreadCount call, including the 60s polling refresh). This recreates the callbacks often, which in turn re-runs any effect that depends on them (e.g., InboxPage.tsx's intent-handling effect). It currently self-guards correctly, but stabilizing these callbacks (e.g., via a ref for priorUnreadCount) would reduce unnecessary effect re-execution and re-renders.

S5: 🟢 loadMore doesn't bump the request generation counter

Unlike loadFirstPage, which does const generation = ++requestGenerationRef.current;, loadMore in useInboxNotifications.ts reads generation = requestGenerationRef.current without incrementing it. This still works correctly with the current UI guards (loadingMore/refreshing/initialLoading disable concurrent triggers), but aligning it with loadFirstPage's increment-then-capture pattern would make the staleness protection more robust against future changes that might allow concurrent loadMore calls.

S6: 🟢 Minor JSX indentation inconsistency

In propr-ui/src/App.tsx, the newly added <NotificationCenterProvider> wrapping <Router> leaves the JSX indentation inconsistent with the rest of the block (visible in the diff's closing-tag alignment). Purely cosmetic, but a follow-up formatting pass would improve readability.

Score

No actionable (merge-blocking) findings were identified after tracing the optimistic-update, pagination, and service-worker handoff logic against their tests; remaining items are refinements. The "Run Full Test Suite" check is still pending rather than failed, so it does not itself cap the score, but full confirmation of a clean run is still outstanding.

Score: 8/10


🤖 Review Details

  • Model: Claude Sonnet 5
  • Time: 5m 27s
  • Tokens: 114,105 (81,400 in / 32,705 out)
  • Cost: $0.53

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex

Overall Evaluation

This PR delivers a well-structured mobile Inbox with grouping, pagination, optimistic mutations, deep links, service-worker dismissal handoff, and synchronized counters. It needs a minor but security-relevant identity-lifecycle correction before merge.

✅ Robust mutation reconciliation — Dismissal/read overrides, mutation epochs, and request generations handle stale list responses and rollback paths carefully.

✅ Strong contract enforcement — All new API responses are validated through shared notification schemas, and cursor pages are deduplicated deterministically.

✅ Good state coverage — Loading, empty, offline, partial-error, pagination, and service-worker intent flows have focused tests.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F6: 🔴 Notification state survives account changes

  • Required behavior: Authenticated Inbox contents and unread counts must remain scoped to the active user; data or mutation responses from a previous identity must never be displayed or committed for a new identity.
  • Evidence: propr-ui/src/pages/useInboxNotifications.ts:88 — the initial-page effect has no current-user dependency and never clears notifications, cursors, hidden/read overrides, or pending mutations when the authenticated identity changes; propr-ui/src/contexts/NotificationCenterContext.tsx:76 — the identity effect resets badge preference but retains the previous non-null unreadCount while the new account’s request is pending.
  • Minimum fix: Key or reset the notification provider and Inbox state by authenticated user ID. On identity change, immediately clear the count and notification state, invalidate pending list and mutation completions, and fetch the new user’s data before exposing badges or cards.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Refresh relative timestamps

formatRelativeTime is evaluated only when a card renders, so a long-open Inbox can continue showing values such as “just now” indefinitely. A low-frequency clock tick would keep labels current, but this is optional polish because timestamps are correct when rendered.

Score

The core implementation is thoughtful and well tested, but the cross-account state-retention path is a merge-blocking authenticated-data isolation issue. The full test-suite check is also still pending.

Score: 6/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 5m 0s
  • Tokens: 73,170 (61,982 in / 11,188 out)
  • Cost: $0.60

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@integry

integry commented Aug 24, 2026

Copy link
Copy Markdown
Owner

/review codex

@propr-dev

propr-dev Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex

Overall Evaluation

The PR delivers a well-structured, mobile-first notification Inbox with validated API responses, optimistic mutations, pagination, badge synchronization, and service-worker dismissal handoff. It needs minor changes before merge; two localized request-state issues remain, and all eight current checks are still pending.

✅ Strong race reconciliation — Mutation epochs, hidden-ID tracking, read overrides, and request generations prevent stale list responses from resurrecting dismissed items or unread state.

✅ Good boundary handling — Notification IDs are length-bounded and safely encoded through the service-worker dismissal flow, while API responses are schema-validated.

✅ Focused test coverage — Tests cover rollback, cursor de-duplication, account changes, dismissal intents, and several stale-response races.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F7: 🔴 Bodyless mutations cannot replay

  • Required behavior: The new read and dismissal actions must continue working across the application’s token-refresh flow; idempotent mutations advertised as replayable should not surface a false failure after authentication is refreshed.
  • Evidence: propr-ui/src/api/notificationApi.ts:73 and propr-ui/src/api/notificationApi.ts:79 — both new POST requests omit a body, while the request wrapper enables replay only nominally. The shared fetch client considers non-GET mutations replayable only when init.body is a string, so these calls instead throw the token-refresh retry response and trigger optimistic rollback.
  • Minimum fix: Make bodyless idempotent POST requests replayable—either update the fetch replay predicate to accept requests with no body or supply a replayable empty body—and add a token-refresh test for read and dismiss.

F8: 🔴 Superseded pagination can stay locked

  • Required behavior: Refresh must fully supersede an in-flight cursor request and leave pagination usable.
  • Evidence: propr-ui/src/pages/useInboxNotifications.ts:67 — loadFirstPage invalidates older responses but never clears their loadingMore state; propr-ui/src/pages/useInboxNotifications.ts:130 — only the superseded request’s own finally clears it. If that request remains stalled while Refresh succeeds, the refreshed Inbox leaves “Load more” disabled indefinitely.
  • Minimum fix: Track ownership or cancellation of load-more requests, clear superseded loading state when refreshing, and ensure a stale completion cannot clear the state of a newer pagination request. Test with an unresolved old request and a refreshed page that still has a cursor.

Suggestions

These are optional follow-ups and are not sent to /fix.

No suggestions.

Score

The implementation is thoughtful and extensively tested, but the token-refresh failure and pagination lock prevent merge readiness. Both appear fixable without architectural rework.

Score: 6/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 5m 23s
  • Tokens: 74,478 (62,106 in / 12,372 out)
  • Cost: $0.64

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@integry

integry commented Aug 24, 2026

Copy link
Copy Markdown
Owner

/review codex

@propr-dev

propr-dev Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex

Overall Evaluation

This PR delivers a well-structured mobile Inbox with pagination, optimistic mutations, unread-count synchronization, and service-worker handoff. It needs a minor correction before merge, and all seven current-head checks remain pending.

✅ Race-aware state management — Request generations, mutation epochs, hidden-item reconciliation, and cursor de-duplication address several realistic response-ordering races.

✅ Safe push-dismiss handoff — Event IDs are byte-bounded, preserved exactly, URL-encoded, and covered by focused service-worker tests.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F9: 🔴 Read failures lose their toast after navigation

  • Required behavior: Failed optimistic read mutations must roll back and present an error toast.
  • Evidence: propr-ui/src/pages/useInboxNotifications.ts:200 — the read-failure toast is guarded by mountedRef.current; internal notification links immediately navigate away and unmount the Inbox, so the usual failed read request becomes silent.
  • Minimum fix: Keep local Inbox state updates mount-guarded, but dispatch the global error toast after a read failure even when navigation has unmounted the page. Add a test that rejects a deferred read request after following an internal link.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Refresh relative timestamps

Relative labels are calculated only during render, so “just now” can remain visible on a long-lived Inbox until another state update occurs. A lightweight periodic clock would keep them current; this is optional because timestamps are correct when initially rendered.

S2: 🟢 Cover demo-mode behavior

NotificationCenterProvider treats demo mode as an active identity, while Inbox navigation and mutation controls are unconditional. A demo-mode test would document whether notifications are intentionally simulated, unavailable, or read-only. This is optional because the supplied context does not establish a current demo-mode failure.

Score

The implementation is strong and extensively tested, but the primary internal-link workflow suppresses required read-failure feedback. Merge readiness also remains conditional on the pending checks completing successfully.

Score: 6/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 4m 35s
  • Tokens: 73,404 (62,240 in / 11,164 out)
  • Cost: $0.37

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@integry

integry commented Aug 24, 2026

Copy link
Copy Markdown
Owner

/review codex

@propr-dev

propr-dev Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex

Overall Evaluation

This PR delivers a well-structured mobile-first Inbox with navigation, pagination, optimistic mutations, badge synchronization, and service-worker dismissal handoff. It needs minor changes before merge: two localized correctness issues remain, and all current checks are still pending.

✅ Race-aware reconciliation — Generation counters, hidden-ID tracking, and read overrides prevent stale list responses from undoing completed mutations.

✅ Safe dismissal handoff — The service worker preserves exact bounded notification IDs and safely carries hosted-flow query parameters into /inbox.

✅ Focused test coverage — Tests exercise token-refresh replay, cursor de-duplication, optimistic rollback, identity changes, and dismissal/list races.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F10: 🔴 Optimistic read timestamp violates contract

  • Required behavior: Optimistic read updates must remain valid Notification states; readAt must be at or after createdAt.
  • Evidence: propr-ui/src/pages/useInboxNotifications.ts:183 — the optimistic object assigns readAt: current.occurredAt, although valid notifications may have occurredAt < createdAt.
  • Minimum fix: Use a timestamp guaranteed not to precede createdAt, such as current.createdAt for the temporary optimistic value, and cover a notification whose creation follows its occurrence.

F11: 🔴 Inbox mutations ignore demo mode

  • Required behavior: Newly exposed Inbox behavior must respect the application’s read-only demo policy: listing and navigation may work, but mutation controls must not issue requests that are guaranteed to be rejected.
  • Evidence: propr-ui/src/pages/useInboxNotifications.ts:142 — dismiss unconditionally calls the dismissal API; line 189 likewise calls the read mutation API whenever an unread notification is opened.
  • Minimum fix: Make the Inbox demo-aware: allow detail navigation without marking notifications read, and hide or disable dismissal so demo users do not receive predictable mutation failures and rollback toasts.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Exercise real timestamp ordering

Add a regression fixture where occurredAt precedes createdAt. Existing Inbox fixtures use equal timestamps, which is why the invalid optimistic read state is not detected. This additional coverage is optional beyond correcting the implementation.

S2: 🟢 Refresh relative timestamps

Relative labels are calculated only during renders, so a long-lived Inbox can continue showing “just now” until another state change occurs. A lightweight periodic render trigger would improve accuracy, but this is a non-blocking presentation enhancement.

Score

The core design and coverage are strong, but the invalid optimistic state and demo-mode mutation behavior must be corrected before merge. All seven current-head checks also remain pending.

Score: 6/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 6m 31s
  • Tokens: 81,546 (65,888 in / 15,658 out)
  • Cost: $0.75

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@integry

integry commented Aug 24, 2026

Copy link
Copy Markdown
Owner

/review codex

@propr-dev

propr-dev Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex

Overall Evaluation

This PR delivers a well-structured mobile-first Inbox with navigation, grouping, deep links, optimistic mutations, pagination, badge synchronization, and service-worker dismissal handoff. It is ready to merge within the reviewed scope once the seven pending head checks complete successfully.

✅ Strong race handling — Generation counters, mutation epochs, hidden-ID reconciliation, and rollback snapshots protect refresh, pagination, read, and dismissal operations from stale responses.

✅ Defensive API boundaries — Notification responses are schema-validated, identifiers are encoded, and service-worker event IDs and navigation targets are bounded and sanitized.

✅ Thorough behavioral coverage — Tests exercise token-refresh replay, pagination deduplication, optimistic rollback, service-worker intents, identity changes, demo-mode restrictions, and stale-response races.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Test disabled push badging

Consider an integration test spanning NotificationCenterContext.tsx, the push-payload contract, and service-worker.js to confirm that an incoming push cannot reapply an installed-app badge after badgeEnabled is disabled. The foreground implementation correctly clears and suppresses badges, but cross-context coverage would help preserve that behavior; no concrete violation is established in the supplied changes, so this is optional.

Score

The implementation is comprehensive and unusually well tested, with no verified code blocker or current check failure. The remaining uncertainty is limited to seven pending head checks.

Score: 8/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 5m 20s
  • Tokens: 75,879 (63,742 in / 12,137 out)
  • Cost: $0.68

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@integry
integry merged commit a6d0e73 into 1716-epic-failed-to-3m8 Aug 24, 2026
10 checks passed
integry added a commit that referenced this pull request Aug 25, 2026
* fix(ai): Resolve issue #1716 - Define the durable notification domain model and d

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.

* fix(ai): Resolve issue #1717 - Add the notification persistence service and authe

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.

* fix(ai): Resolve issue #1718 - Add notification preferences and Web Push subscrip

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.

* feat(ai): Fixed the PR build check failures without committing:

Fixed the PR build check failures without committing:

- Typed the planner update mock so TypeScript can inspect its call arguments safely in [plannerBackgroundLifecycle.test.ts](</tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-04T14-41-14/packages/api/test/plannerBackgroundLifecycle.test.ts:180>).
- Compacted notification exports to satisfy the 400-line lint limit in [index.ts](</tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-04T14-41-14/packages/core/src/index.ts:383>).

Verified successfully:

- Root, shared, core, API, UI, and docs builds
- Core/API/UI lint and UI typecheck
- Fast and hosted-tunnel tests
- Planner lifecycle tests
- CLI packaging
- `git diff --check`

Only those two files are modified.

PR: #1731
Comment by: @github-actions[bot] (ID: 5180607485)
Model: gpt-5.6-sol

* feat(ai): Fixed the PR build failure without behavior changes.

Fixed the PR build failure without behavior changes.

- Compacted notification exports in [packages/core/src/index.ts](/tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-23T23-08-14/packages/core/src/index.ts:406).
- Compacted imports in [packages/api/server.ts](/tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-23T23-08-14/packages/api/server.ts:13).

Verified successfully:

- Exact changed-core-source ESLint gate
- Core build
- API lint with zero warnings
- API build
- `git diff --check`

Only those two files are modified; no commit was created.

PR: #1731
Comment by: @github-actions[bot] (ID: 5388991706)
Model: gpt-5.6-sol

* fix(ai): Resolve issue #1719 - Project plan, task, PR, indexing, stalled, and sys

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.

* fix(ai): Resolve issue #1720 - Implement reliable Web Push delivery with VAPID, r

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.

* fix(ai): Resolve issue #1721 - Add the installable PWA shell, manifest, icons, an

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.

* fix(pwa): precache lazy shell assets (#1935)

Co-authored-by: Rinalds Uzkalns <[email protected]>

* feat(ai): Implemented the CodeQL follow-up fixes:

Implemented the CodeQL follow-up fixes:

- Added the existing API rate limiter to the authenticated Express test fixture in [notificationRoutes.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-24T12-14-03/packages/api/test/notificationRoutes.test.ts:11).
- Replaced both polynomial padding regexes with linear scanning in [notifications.ts](/tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-24T12-14-03/packages/shared/src/notifications.ts:734).

Validation passed:

- Notification route tests: 12/12
- Notification schema tests: 32/32
- Padded Web Push key regression test
- Shared and API TypeScript checks
- `git diff --check`

No commit was created.

PR: #1731
Comment by: @integry (ID: 5395023659)
Model: gpt-5.6-sol

* feat(ai): Fixed the API lint failure by consolidating Express imports in [notificationRoutes.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-24T12-20-51/packages/api/test/notificationRoutes.test.ts:4), bringing it within the 400-line limit.

Fixed the API lint failure by consolidating Express imports in [notificationRoutes.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-24T12-20-51/packages/api/test/notificationRoutes.test.ts:4), bringing it within the 400-line limit.

Validated:

- API lint passed
- API build passed
- Notification route tests passed: 12/12
- `git diff --check` passed

No commit was created.

PR: #1731
Comment by: @github-actions[bot] (ID: 5395100590)
Model: gpt-5.6-sol

* [1722 by GPT-5.6 Sol] Build the browser push enrollment flow and notification preferences settings (#1936)

* fix(ai): Resolve issue #1722 - Build the browser push enrollment flow and notific

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.

* feat(ai): Fixed the failed complexity lint check in [notificationService.ts](/tmp/git-processor/worktrees/integry/propr/pr-1936-followup-2026-08-24T11-54-19/packages/core/src/services/notificationService.ts:412) by extracting preference-settings persistence into a focused private method.

Fixed the failed complexity lint check in [notificationService.ts](/tmp/git-processor/worktrees/integry/propr/pr-1936-followup-2026-08-24T11-54-19/packages/core/src/services/notificationService.ts:412) by extracting preference-settings persistence into a focused private method.

Verification passed:

- Core package lint with zero warnings
- Core package build
- Notification service tests: 22/22
- `git diff --check`

No commit created.

PR: #1936
Comment by: @github-actions[bot] (ID: 5394814538)
Model: gpt-5.6-sol

* fix(notifications): make badge migration reversible

---------

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
Co-authored-by: Rinalds Uzkalns <[email protected]>

* [1723 by GPT-5.6 Sol] Create the mobile-first Inbox page with grouping, unread state, dismissal, and badging (#1937)

* fix(ai): Resolve issue #1723 - Create the mobile-first Inbox page with grouping,

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.

* fix(ui): preserve notification dismiss identity

* feat(ai): Implemented F1 only in [GlobalHeader.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1937-followup-2026-08-24T14-43-32/propr-ui/src/components/GlobalHeader.tsx:107).

Implemented F1 only in [GlobalHeader.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1937-followup-2026-08-24T14-43-32/propr-ui/src/components/GlobalHeader.tsx:107).

- Removed `hidden` and `sm:block` from Logout, keeping it accessible below 640px.
- Typecheck passed.
- Focused ESLint passed.
- `git diff --check` passed.
- No commit created, as requested.

PR: #1937
Comment by: @integry (ID: 5396851385)
Model: gpt-5.6-sol

* fix(ui): keep mobile account actions visible

* fix(ui): keep inbox pagination reachable

* fix(ui): reconcile inbox response races

* fix(ui): isolate notification state by account

* fix(ui): replay notification mutations safely

* fix(ui): preserve read failure feedback

* fix(ui): keep demo inbox read only

---------

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
Co-authored-by: Rinalds Uzkalns <[email protected]>

* [1724 by GPT-5.6 Sol] Add mobile Inbox actions for stopping tasks, following up, opening PRs, and dismissing (#1938)

* fix(ai): Resolve issue #1724 - Add mobile Inbox actions for stopping tasks, follo

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.

* feat(ai): Implemented F1 only.

Implemented F1 only.

- Dismiss now renders whenever `mutationsEnabled` is true, independent of advertised actions: [NotificationActions.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T17-12-21/propr-ui/src/components/Inbox/NotificationActions.tsx:111)
- Added regression coverage for notifications with an empty actions array: [InboxPage.test.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T17-12-21/propr-ui/src/pages/InboxPage.test.tsx:187)

Validation passed:

- Focused ESLint
- Inbox tests: 14/14
- UI TypeScript typecheck
- `git diff --check`

No commit created.

PR: #1938
Comment by: @propr-ultrafix (ID: 0)
Model: gpt-5.6-sol

* feat(ai): Implemented only F2, F3, and F4.

Implemented only F2, F3, and F4.

- `open_pr` is advertised only when a trusted GitHub PR URL is constructed.
- Trusted legacy PR links remain available when advertised actions are absent or empty.
- Advertised actions now use a versioned metadata envelope, preserving legacy `metadata.actions` and validating combined metadata size before insertion.
- Added regression coverage for all three findings.

Validation passed:

- 65 core/shared schema tests
- 8 projection tests
- 28 notification route/Web Push tests
- 18 Inbox UI tests
- Shared, core, API, and UI type checks
- Focused lint and `git diff --check`

Changes were not committed, as requested.

PR: #1938
Comment by: @integry (ID: 5398849258)
Model: gpt-5.6-sol

* feat(ai): Implemented F5–F8 only:

Implemented F5–F8 only:

- Dismiss now respects advertised actions, with the legacy empty-action fallback.
- Follow-up and Stop successes remain successful if Inbox refresh fails; refresh failures use separate warnings.
- `follow_up` is advertised only when the stored task has a valid GitHub repository and issue identity.
- Action lists, including empty lists, now use a v2 persistence envelope; legacy reserved-key producer metadata remains intact.
- Added focused UI, projection, schema, and persistence regressions.

Validation passed:

- Root and UI typechecks
- 58 schema/service tests
- 9 projection tests
- 16 focused UI tests
- UI lint
- `git diff --check`

No commit was created.

PR: #1938
Comment by: @integry (ID: 5399080238)
Model: gpt-5.6-sol

* feat(ai): Fixed the sole CI failure in [notificationProjectionService.ts](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T18-03-38/packages/api/services/notificationProjectionService.ts:152) by extracting follow-up eligibility logic into a helper, reducing method complexity without behavior changes.

Fixed the sole CI failure in [notificationProjectionService.ts](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T18-03-38/packages/api/services/notificationProjectionService.ts:152) by extracting follow-up eligibility logic into a helper, reducing method complexity without behavior changes.

Validation passed:

- API ESLint with zero warnings
- API TypeScript build
- Notification projection suite: 9/9 tests
- `git diff --check`

No commit was created.

PR: #1938
Comment by: @github-actions[bot] (ID: 5399234375)
Model: gpt-5.6-sol

* feat(ai): Implemented only F9, F10, and F11.

Implemented only F9, F10, and F11.

- Review follow-ups are advertised only when the persisted issue number matches the reviewed PR.
- Added nullable `advertised_actions_json` storage; `NULL` identifies legacy events.
- Producer metadata remains unchanged in `metadata_json`, preserving the full published size limit.
- Added migration and regression coverage for legacy metadata, maximum-size metadata, and mismatched review threads.

Key files: [notificationProjectionService.ts](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T18-07-31/packages/api/services/notificationProjectionService.ts), [notificationService.ts](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T18-07-31/packages/core/src/services/notificationService.ts), [migration](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T18-07-31/packages/core/src/db/migrations/20260824020000_add_notification_advertised_actions.js).

Validation passed:

- 100 notification, projection, schema, migration, and Web Push tests
- Core and API type checks
- Core and API lint
- Migration rollback smoke test
- Diff whitespace check

No commit was created.

PR: #1938
Comment by: @integry (ID: 5399346966)
Model: gpt-5.6-sol

* feat(ai): Fixed the flaky full-suite failure in `webPushDispatcher.test.ts`.

Fixed the flaky full-suite failure in `webPushDispatcher.test.ts`.

The retry assertion now validates the exact 10 ms backoff from the attempt timestamp instead of comparing against a later database-managed timestamp.

Validation passed:

- Dispatcher suite: 16/16, repeated 3 times
- API lint
- API typecheck
- `git diff --check`

No commit created.

PR: #1938
Comment by: @github-actions[bot] (ID: 5399462590)
Model: gpt-5.6-sol

* feat(ai): Implemented F12 and F13 only.

Implemented F12 and F13 only.

- Legacy `NULL` action rows now receive explicit `open_pr` and `dismiss` compatibility actions; stored `[]` remains actionless.
- UI controls now require explicit advertised actions.
- Follow-up is advertised only when the projected issue matches `tasks.issue_number`.
- Added/updated regression coverage for both cases.

Validation passed:

- Core: 26 tests
- API projection: 10 tests
- UI: 16 tests
- Core, API, and UI type checks
- Focused ESLint and `git diff --check`

No commit was created.

PR: #1938
Comment by: @integry (ID: 5401069287)
Model: gpt-5.6-sol

---------

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>

* [1725 by GPT-5.6 Sol] Add plan refinement and confirmation-gated approve/execute notification intents (#1939)

* fix(ai): Resolve issue #1725 - Add plan refinement and confirmation-gated approve

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.

* feat(ai): Fixed the CI lint failure in [notificationProjectionService.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-1939-followup-2026-08-24T21-34-39/packages/api/test/notificationProjectionService.test.ts:114). The assertions retain equivalent coverage while staying within the 400-line lint limit.

Fixed the CI lint failure in [notificationProjectionService.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-1939-followup-2026-08-24T21-34-39/packages/api/test/notificationProjectionService.test.ts:114). The assertions retain equivalent coverage while staying within the 400-line lint limit.

Validated:

- API lint passes
- API typecheck passes
- Notification projection tests: 10/10 pass
- `git diff --check` passes

No commit created.

PR: #1939
Comment by: @github-actions[bot] (ID: 5401662774)
Model: gpt-5.6-sol

* feat(ai): Implemented the rollback correction and regression coverage.

Implemented the rollback correction and regression coverage.

- [Migration](/tmp/git-processor/worktrees/integry/propr/pr-1939-followup-2026-08-24T21-44-35/packages/core/src/db/migrations/20260824030000_add_plan_notification_actions.js) now filters stored arrays to the four prior actions, preserving order and valid JSON, before restoring the old trigger.
- [Regression test](/tmp/git-processor/worktrees/integry/propr/pr-1939-followup-2026-08-24T21-44-35/packages/core/test/planNotificationActionsMigration.test.ts) exercises the real SQLite up/down transition, service persistence/reads, rollback filtering, and restored trigger validation.

Validation passed:

- Core typecheck
- Migration ESLint
- Targeted migration regression test
- `git diff --check`

No commit created.

PR: #1939
Comment by: @integry (ID: 5401772474)
Model: gpt-5.6-sol

---------

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>

* [1726 by GPT-5.6 Sol] Replace the mobile desktop-style header with bottom navigation (#1940)

* fix(ai): Resolve issue #1726 - Replace the mobile desktop-style header with botto

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.

* feat(ai): Implemented F1 only.

Implemented F1 only.

- Added Dashboard to the mobile More sheet.
- Added Access for users with `instance.manage_members`.
- Marked More active on `/` and `/admin/members`.
- Added tests for visibility, permission gating, and active states.

Changed:

- [MobileBottomNavigation.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1940-followup-2026-08-24T23-23-38/propr-ui/src/components/MobileBottomNavigation.tsx)
- [MobileBottomNavigation.test.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1940-followup-2026-08-24T23-23-38/propr-ui/src/components/MobileBottomNavigation.test.tsx)

Validation passed: TypeScript, ESLint, and all 444 UI tests. No commit created.

PR: #1940
Comment by: @integry (ID: 5402825666)
Model: gpt-5.6-sol

---------

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>

* [1727 by GPT-5.6 Sol] Restore mobile Planner Studio and task-review workflows reached from notifications (#1941)

* fix(ai): Resolve issue #1727 - Restore mobile Planner Studio and task-review work

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.

* fix(ui): size Planner Studio within app shell

* fix(ui): constrain mobile task summary to route

* fix(ui): wrap multi-agent execution controls

* fix(ui): keep approved plan header stacked on mobile

---------

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
Co-authored-by: Rinalds Uzkalns <[email protected]>

* fix(ai): Resolve issue #1728 - Add notification, push, deep-link, and mobile navi (#1942)

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>

* [1729 by GPT-5.6 Sol] Document and validate PWA, Web Push, badge, tunnel, and deployment configuration (#1943)

* fix(ai): Resolve issue #1729 - Document and validate PWA, Web Push, badge, tunnel

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.

* docs: link canonical WebKit push article

* fix: complete web push deployment contract

---------

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
Co-authored-by: Rinalds Uzkalns <[email protected]>

---------

Co-authored-by: propr-dev[bot] <213159723+propr-dev[bot]@users.noreply.github.com>
Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
Co-authored-by: Rinalds Uzkalns <[email protected]>
Co-authored-by: Rinalds Uzkalns <[email protected]>
@integry
integry deleted the 1723/gpt-5.6-sol-create-the-mobile-first-i-20260824-1227-mud branch September 1, 2026 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants