Skip to content

make browser notification option on thirdshift console web ui #958

Closed

Description

@JacobStephens2
No description provided.

Activity

  1. added
    enhancement
    needs-triage
    on Oct 21, 2026
  2. JacobStephens2 commented on Oct 21, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Agent Brief

    Category: enhancement
    Summary: An open Console tab can show a browser notification when something new needs the Day shift

    Current behavior:
    The Console's Inbox counts what needs you: its tab title reads "N need you" and its favicon turns urgent. Open pages update live from the Console's change stream (/events). Unless you're looking at the tab, nothing tells you a new item has arrived. The Console sends no browser notifications. Its Content-Security-Policy allows only same-origin scripts.

    Desired behavior:

    • Settled with the maintainer during triage: notifications come only from an open Console tab (e.g. a pinned one), through the browser's Notification API. No service worker, Web Push, new secrets or stored push subscriptions.
    • A control in the Console turns notifications on for this browser. Clicking it asks for the browser's permission. The choice is remembered per browser, and the same control turns them off.
    • While notifications are on, a rise in the need-you count shows one notification: how many need you, on which host, and the newest item. Clicking it focuses the tab and opens the Inbox.
    • No notification on page load, for items already counted when the tab opened, when the count falls or stays the same, or while notifications are off. Several open tabs show at most one notification per rise.
    • If permission is denied, the browser has no Notification API, or the page isn't a secure context, the control says why and stays off. Nothing else in the Console changes.

    Key interfaces:

    • The Inbox's need-you count (what its tab title and urgent favicon use) and the items behind it.
    • The Console's live change stream (/events) and the client script that applies changes to open pages.
    • The Console's Content-Security-Policy: scripts stay same-origin asset files, with no inline script.
    • The Console's browser tests (Playwright), which can grant or deny notification permission and stub Notification.

    Acceptance criteria:

    • With permission granted and notifications on, a rise in the need-you count shows exactly one notification naming the count and host. Clicking it opens the Inbox.
    • No notification on page load, when the count falls or doesn't change, or while notifications are off.
    • With permission denied or Notification missing, the control explains why and the page has no errors.
    • The choice survives a reload in the same browser and can be turned off.
    • No inline script is added and the Content-Security-Policy is unchanged.
    • The Console's docs say how to turn notifications on.

    Out of scope:

    • Notifications with no Console tab open (Web Push, service workers).
    • Email or other notification channels.
    • Choosing which kinds of item notify: every new need-you item does.
  3. added
    ready-for-agent
    in-progress
    and removed
    needs-triage
    ready-for-agent
    on Oct 21, 2026
  4. removed
    in-progress
    on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions