Skip to content

通知:铃铛面板改成从右侧整高展开,待审批置顶并可直接处理 #34589

Closed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #34571(控制台核心业务操作体验专题,维护者直派,「都是p1」)。⛔ 不是认领。
维护者 2026-11-17 原话:「右上角的消息通知点开之后弹出框有点小」「通知是否建议类似苹果桌面从右侧展开?」

现状(读码,objectstack origin/main ed45eb9;界面实测在 staging os-4e4qa4)

  • 铃铛是 Radix Popover:ui/packages/app-shell/src/layout/InboxPopover.tsx:417 宽 w-96(384px),三个页签的列表区各 max-h-80(320px,:505 / :665 / :700),一屏约 3 条。
  • 手机上是同一个浮层,只是接近全宽。
  • 仓里已有右侧 Sheet 的用法:ActivityFeed.tsx:152(side="right"),记录抽屉 NavigationOverlay 也建在 Sheet 上。
  • 两个调用点:AppHeader.tsx:1133、global-notifications-renderer.tsx:91。

要做的

  1. 把浮层换成右侧整高的 Sheet,宽约 420–440px,列表区占满剩余高度。
  2. 页面主体保持可见、可操作;点一条通知在主体区打开对应记录,抽屉不关。
  3. 「需要你处理」置顶:待审批项直接带通过 / 驳回 / 查看详情(复用收件箱的行内操作与禁用规则)。
  4. 「标为已读」改成悬停或聚焦时出现的图标,不常驻占一列;保留「全部标为已读」和底部「查看全部通知」。
  5. 记录详情抽屉打开时通知抽屉让位收起,两者不叠在右边。
  6. 手机上全屏。

不做的

  • 不改通知的数据、分组规则与三个页签的划分。

验收

  1. 1440×900 下打开通知,不滚动能看到至少 8 条。
  2. 在通知里直接通过一条待审批,列表里该条消失、角标减一。
  3. 点一条记录通知,主体区打开该记录,通知抽屉仍在。
  4. 375 宽下通知是全屏。

设计图(静态示意稿,标「新」的是改动;字段和文案以实际元数据为准)

图 5 通知

图 5 通知

Reader: domain:ui 车道,改 InboxPopover.tsx 及其两个调用点。

Dedupe: repo:objectstack-ai/objectstack InboxPopover Sheet right side notifications → 1(#6015,分诊席位贴,无关)。

Activity

  1. added
    priority:p1
    domain:ui
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → pm:queue · 2026-11-17T03:22Z

    ⛔ Not a claim.

  3. added
    pm:queue
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz

    Claim: PM loop round 1 · 2026-11-17T03:41Z
    Session: session_01WGufzi3ezPzTysQPDEjmVz
    Account: os-support-ai
    Branch: claude/issue-34589-notifications-sheet
    Worktree: objectstack-issue-34589
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: ui/packages/app-shell/src/layout/InboxPopover.tsx (+ a new sibling file if the Sheet is split out), ui/packages/app-shell/src/layout/AppHeader.tsx (call site), ui/packages/app-shell/src/views/global-notifications-renderer.tsx, ui/packages/app-shell/src/hooks/useInboxBell.ts, ui/packages/i18n/src/locales/**, root .changeset/
    Container & model: M, mode:subagent, model: TIER_DEFAULT (no path-derived mandate on ui/packages/app-shell/src/layout/**), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack ui/packages/app-shell InboxPopover.tsx (w-96 popover, max-h-80 lists, ~3 rows a screen; approvals need a trip to the inbox) | none | every console user with notifications or pending approvals
    Thread-read: 6937120734
    Premise: holds (area grep at f4a2d14: InboxPopover.tsx:417 w-96, :505/:665/:700 max-h-80; call sites AppHeader.tsx and global-notifications-renderer.tsx; pending approval rows in useHomeInbox / sharedUserFeeds)
    Serial constraints cleared: queued behind #34593 (this area, AppHeader.tsx); dev dispatched after that PR enters the queue
    Pre-claim lane: domain:ui — every path is under ui/packages/**
    Pre-claim deps: none named on the card
    Prior rulings read: inbox,notification,popover,sheet,approval,declared-actions → 31 hits (ADR-0030 read: the bell reads sys_inbox_message — data and grouping untouched here, as the card says); approval decisions go through the governed declared-actions path, no third client; thread: none

    Lease o3-D (seat post #34584). Part of epic #34571 (maintainer 2026-11-17: 「右上角的消息通知点开之后弹出框有点小」「通知是否建议类似苹果桌面从右侧展开?」).

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 17, 2026
  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Claim amendment · 2026-11-17T04:08Z

    The seat moves this card out of area o3-D into its own card thread to shorten o3-D's queue; o3-D confirmed no dev had started (no branch, no commits).

    Session: session_01WGufzfdKUNrJJjV88a19v2 (card thread, replaces the area session on claim 6937516220)
    Branch: claude/issue-34589-notifications-sheet (unchanged)
    Lease: lease:o3-D (unchanged; the head is handed back to o3-D for L1-b and landing)
    Serial constraints: edits AppHeader.tsx near #34593's region; overlap-check against #34593's PR before every push.

    Clause-②: unchanged (yes, locale keys only, if new i18n keys are added)
    Metadata-protocol: none

  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Claim amendment · 2026-11-17T04:09Z

    Correction to the amendment above: the card thread's harness pins its branch, so the branch is claude/project-thread-r5tewa (replaces claude/issue-34589-notifications-sheet, which was never created). Session session_01WGufzfdKUNrJJjV88a19v2 and everything else stay as stated.

  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfdKUNrJJjV88a19v2
    os-dev-report

    {
      "issue": 34589,
      "status": "done",
      "branch": "claude/project-thread-r5tewa",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34656",
      "session": "session_01WGufzfdKUNrJJjV88a19v2",
      "premise_still_valid": true,
      "summary": "The bell's Radix Popover (w-96, lists max-h-80) is now a non-modal right-side Sheet: full height, 440 px from md, full screen below md, no overlay, a page click does not close it; a followed notification keeps it open on desktop (closes on a phone); it closes when ?recordId= (the record drawer) appears. 'Needs your action' heads the Notifications tab (and the Approvals tab lists the same rows): each pending request carries the request's own declared actions through DeclaredActionsBar (sys_approval_request, location list_item, record = the served row with its viewer block) plus 'View details' (Home's /system/approvals?request=ID target). A decided row and its badge share drop at once and the shared approvals feed re-reads (refreshSharedPendingApprovals). Mark-read is a hover/focus icon. Two locale keys added in every pack.",
      "tests": "Head a8d27480, ui/ as vitest root, under os-verify-lock after turbo build --filter='@object-ui/app-shell^...' (VERDICT 0): InboxPopover* + AppHeader.inboxVariant + AppHeader.deferredChromeReads-12980 + sharedInboxFeed.twoSurfaces + useHomeInbox.myWork-12602 -> Test Files 18 passed (18), Tests 169 passed (169). New InboxPopover.rightPanel-34589.test.tsx: 11 passed. i18n suite + product-neutral ratchet: 102/103 before gen:zh-hant, the zh-hant-generated red fixed by regenerating; zh-hant-generated + all-locales-key-parity 59 passed. type-check app-shell + i18n VERDICT 0. eslint on changed files exit 0 (warnings only). Ablations via ablation-replace.mjs (src-imported, no build): onInteractOutside preventDefault deleted -> stays-open test red; drawer yield deleted -> yields test red; decided overlay deleted -> drops-badge test red; each restored, git diff HEAD empty.",
      "gates": "dispatch-gates --commands at a8d27480: 40 families, all ':: exit 0'; --ran 40 of 40 accounted, 0 NOT-MEASURED, exit 0. overlap-check VERDICT clean exit 0 (origin/main, #34631 #34628 #34624; #34593 has no PR yet). check-governed-merges --branch: no governed path, 774 changed lines. CI families: in_progress at report time (PR check-runs).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /issues/34656/assignees), this comment (post-stamped)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "deviations": [
        "views/global-notifications-renderer.tsx edited (two props) although the order's surface lists layout/** only; the claim 6937516220 names the file, and leaving it out would leave the global:notifications block without the pinned approvals.",
        "hooks/sharedUserFeeds.ts and hooks/useInboxBell.ts edited (order: read only unless measured necessary): DeclaredActionsBar needs the served row's viewer block, which the shared feed dropped; the row is now kept as PendingApprovalRequest.row, from the same one read.",
        "Acceptance 1 (8 rows at 1440x900) NOT MEASURED in a browser: no live console run in this container; class reading in the PR body.",
        "No reviewer requested on the draft (seat order), assignee os-support-ai carried by pr_create."
      ]
    }
  9. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz

    Claim: PM loop round 1 (restated for the card thread's pinned branch) · 2026-11-17T05:05Z
    Session: session_01WGufzi3ezPzTysQPDEjmVz
    Thread session: session_01WGufzfdKUNrJJjV88a19v2
    Account: os-support-ai
    Branch: claude/project-thread-r5tewa (card-thread pinned branch: the harness lets the thread push only this name)
    Worktree: objectstack-issue-34589
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: ui/packages/app-shell/src/layout/InboxPopover.tsx (+ new sibling files), ui/packages/app-shell/src/layout/AppHeader.tsx (call site), ui/packages/app-shell/src/views/global-notifications-renderer.tsx, ui/packages/app-shell/src/hooks/useInboxBell.ts, ui/packages/app-shell/src/hooks/sharedUserFeeds.ts, ui/packages/i18n/src/locales/**, root .changeset/
    Container & model: M, mode:thread, model: TIER_DEFAULT (no path-derived mandate on ui/packages/app-shell/src/layout/**), effort: high
    Clause-②: yes
    Metadata-protocol: none
    Responsibility: objectstack ui/packages/app-shell InboxPopover.tsx (w-96 popover, max-h-80 lists, ~3 rows a screen; approvals need a trip to the inbox) | none | every console user with notifications or pending approvals
    Thread-read: 6939024320
    Premise: holds (as claim 6937516220)
    Serial constraints cleared: overlap-check clean against #34628 at the card thread's head a8d27480; #34593 has no PR yet

    The card thread declared Clause-②: yes on PR #34656 from its diff (two new locale keys on the published i18n packs); this line follows the diff, superseding the no in 6937516220. Restates claim 6937516220 with amendments 6937996072 / 6938005303 folded in, so check:closing-target-claim can read the branch PR #34656 carries (the amendments are not Claim: comments). Nothing else changes: lease o3-D, the area lands the PR after L1-b.

  10. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz

    Closed by merge · 2026-11-17T07:07Z

    PR #34656 merged at 2026-11-17T06:48Z (Fixes #34589). Delivered: the bell opens a non-modal right-side full-height Sheet (440 px from md, full screen below md); pending approvals on top with approve / reject / view details through the governed DeclaredActionsBar; mark-read on hover/focus; the panel yields when the record drawer opens. Live readings on the PR (6939498783): 8 items at 1440x900, an approval decided in the panel drops the row and the badge. Owed elsewhere (L1 6939532065): following a link from /home into /apps/* closes the panel (two layouts mount different bells) — a follow-up card the seat raises with the epic's filer. pm:dispatched and lease:o3-D removed.

  11. removed
    pm:dispatched
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:uipriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions