Repository navigation
Add browser notifications for new Needs you items - #1091
Merged
Merged
Conversation
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
An open Console tab can now notify this browser when Needs you rises.
Includes the count, machine and newest arriving item. Account and Console log
tabs participate too. Same-origin scripts and the Content-Security-Policy stay
unchanged; no service worker or push subscription is introduced.
The page and notifications share the stream so three open tabs keep refreshing
on HTTP/1.1 connections too.
Each subscriber refreshes independently, so a slow notification fetch cannot
freeze the Inbox.
Closes #958
Evidence
3 !== 2), and a stalled notification fetch froze Inbox refreshes after notifications were turned off. A three-tab test also exposed duplicate streams blocking HTTP/1.1 refreshes.After: 14 notification browser tests pass, including three-tab updates, independent subscriber refreshes, tab races, permission/support failures, reload/off persistence, click-to-Inbox, newest-item ordering, reconnects and restored pages.
npm test --prefix console: 66 passed, 1 skipped. Includes unchanged CSP and no-inline-script checks.cargo build --lockedandcargo fmt --check: passed./usr/bin/time -p scripts/affected-tests main: 2,352 Rust tests passed, 56 skipped; 24m29s wall time including 2m42s compilation (cargo nextest run). The final browser-only stream change subsequently passed the complete Console browser suite above.Test seams
Review
main(641f0f54fb24759ebefea5f38ac54ca7fc4dd605).handled.Unaddressed findings
Standards
None.
Spec
None.
Security review outcome
Merge Danger
Door: two-way
Revert the browser feature and its templates to remove it; no server-side data migration.
Blast Radius: Console
Browser-local opt-in notifications and the shared Console headers/row metadata.
Built with codex · gpt-6.1-sol · xhigh