Repository navigation
feat(app-shell): the notification bell opens a right-side full-height panel with pending approvals decidable in place - #34656
Conversation
…pending approvals decidable in place Claude-Session: https://claude.ai/code/session_01WGufzfdKUNrJJjV88a19v2 Co-authored-by: Claude <noreply@anthropic.com>
…ned on top Claude-Session: https://claude.ai/code/session_01WGufzfdKUNrJJjV88a19v2 Co-authored-by: Claude <noreply@anthropic.com>
…ide click Claude-Session: https://claude.ai/code/session_01WGufzfdKUNrJJjV88a19v2 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfdKUNrJJjV88a19v2 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn L1: REWORK No code change is asked for. The diff reads correct and in scope of the card. What is missing is the record (claim) and two acceptance readings. If both arrive on this head without a push, I re-read and give the verdict on the same head; a push owes a delta read. Must-fix
Should-fixNone. What I checked and found right
Notes (no action owed)
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzfdKUNrJJjV88a19v2 Live-boot readings at head Rig: full build under Acceptance 1 — 1440×900, at least 8 items without scrolling: met (8)Fixture: the fresh boot's 3 pending requests, plus notifications made the real way (6 showcase tasks walked
8 is met exactly, not with headroom. One request item is about 1.5 notification rows tall because the declared actions draw as default-size buttons. If the card wants more room it is a follow-up about button size in the item, not a change to this head. Acceptance 2 — approve one real pending request from the panel: metRun A (fresh boot, notifications marked read first, so the bell badge is below its
What ran (network log of the page):
The same path was also run on a first boot, from the Notifications tab:
Optional readings
Screenshots and the probe script are in the project files under CI on this head: every check run completed, none red ( |
|
repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn L1: ACCEPT (re-read, same head) No push since the REWORK, so the code reading in 6939131015 ("What I checked and found right") stands as written. This re-read covers only the two must-fixes. Must-fix 1 (claim record, PR-body guards): done
Must-fix 2 (live readings): doneRig: showcase boot, console served from this head's
Scope calls on the two observations
Notes (no action owed)
Landing: ordinary (0 of 32 paths governed, 774 lines). Delta read owed on any later push. |
|
repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn L1: ACCEPT Delta read a8d2748..07805cf (2026-11-17T06:05Z). Prior verdict: ACCEPT at a8d2748 (comment 6939532065). What moved. One merge commit, parents a8d2748 (the accepted head) and d57d6ee (on main). Its tree (4910ec19) is byte-identical to Overlap with what main brought in. Check-runs on 07805cf. 58 runs, none red: Test UI 16/16 shards, Build & E2E UI, Live E2E UI, Type Check UI, Lint UI, the Lint and Type Check gates, Check Changeset, PR-body guards and Governed Surface Queue Guard all success; the rest skipped by path filter. Must-fix: none. Should-fix: none. Notes: the follow-up from my earlier read stands (the panel closes on a Home→app link; the seat raises it with coordinator#1). Cleared for o3-D to land. |
|
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz Landing · 2026-11-17T06:06Z
State: ready + auto-merge armed by area o3-D (lease |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 44028985599 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz Re-queue · 2026-11-17T06:30Z
Judgement: branch 3 of the triage checklist. This PR touches only |
Requested by Yibo Wang · project thread
Fixes #34589
Clause-②: yes (widening)
Metadata-protocol: none
repo:objectstack#3 · os-support-ai · session_01WGufzfdKUNrJJjV88a19v2
Claim of record: the restated
Claim:on the card, comment 6939068952 (branchclaude/project-thread-r5tewa, this session).维护者速读
@object-ui/app-shell的铃铛面板和审批共享读数(给每条待审批多带上服务端原行),加两个 i18n 文案键;不改通知数据、分组和三个页签。通过 / 驳回走的是审批请求自己声明的动作(与记录页同一条DeclaredActionsBar受管路径),没有新写审批客户端。回滚即 revert 本 PR。ui/packages/app-shell/src/layout/InboxPopover.tsx的SheetContent(非模态、无遮罩、点页面不关、遇记录抽屉让位)和handleApprovalDecided;② 新文件ui/packages/app-shell/src/layout/InboxApprovalItem.tsx(DeclaredActionsBar用list_item位置、以服务端原行作派发记录);③ui/packages/app-shell/src/hooks/sharedUserFeeds.ts中PendingApprovalRequest.row与refreshSharedPendingApprovals。pnpm --dir ui exec vitest run packages/app-shell/src/layout/__tests__/InboxPopover.rightPanel-34589.test.tsx,预期 11 个测试全部通过。What changes
ui/packages/app-shell/src/layout/InboxPopover.tsx(the bell; the component keeps its name and props, so both mounts,AppHeaderand theglobal:notificationspage block, keep working):Popover(w-96, lists capped atmax-h-80) becomes a right-sideSheet:inset-y-0 right-0 h-full,md:w-[440px],w-full max-w-nonebelowmd(full screen on a phone). Header, breakdown and tab strip stay fixed; each open tab is a flex column whose rows scroll in the remaining height, with its footer ("View all notifications" / "View all activity") pinned under them.modal={false},hideOverlay) andonInteractOutsideis prevented, so the page beside it stays usable and a click there neither closes the panel nor is swallowed. It closes from its close button, Escape or the bell.useIsMobile) the panel covers the page, so it still closes. The linkless fallback and the three "view all" drills still close it (they open full pages).?recordId=(RECORD_DRAWER_PARAM) appears in the URL, it closes, so the two never stack on the right.onApprovalDecidedasks the feed to re-read now.Check, accessible name kept: "Mark read" for a row, "Mark all of this type read" for a group) shown on hover or keyboard focus (opacity-0 group-hover:opacity-100 focus-visible:opacity-100), and always shown belowmdwith the 44 px tap floor. Unread single rows gain the lever too, as in the design picture. "Mark all read" stays.ui/packages/app-shell/src/layout/InboxApprovalItem.tsx(new): one pending request: the title Home's "My work" row uses (process label · record title), its age, the request's own declared actions throughDeclaredActionsBar(objectName: 'sys_approval_request',location: 'list_item',record: the served row), and "View details", which opens/apps/SEGMENT/system/approvals?request=ID, Home's target for the same row.approval_approveandapproval_rejectare the actionssys_approval_requestdeclares atlist_item; theirvisiblegates read the row's server-computedviewerblock, and a request that asks for decision outputs collects them in the action's param dialog. No approvals client is written here.ui/packages/app-shell/src/hooks/sharedUserFeeds.ts:PendingApprovalRequestgains an optionalrow(the request row asGET /api/v1/approvals/requestsserved it,viewerblock included;ApprovalService.listRequestsattaches it on every list read). AddedrefreshSharedPendingApprovals(), the same one-shot re-read the push seam runs. No new request: it is the one shared approvals read the bell already makes.ui/packages/app-shell/src/hooks/useInboxBell.ts: readsuseSharedPendingApprovalRequests(the hook the count already came from) and returnspendingApprovalsandrefreshPendingApprovalsbeside the count.AppHeader.tsxandviews/global-notifications-renderer.tsxpass both to the bell (two props each).ui/packages/i18n:notifications.needsYouandnotifications.viewApprovalDetailsin every pack (zh-Hant regenerated withgen:zh-hant).Why
Maintainer, 2026-11-17 (epic #34571): 「右上角的消息通知点开之后弹出框有点小」「通知是否建议类似苹果桌面从右侧展开?」. The popover showed about three rows, and a pending approval only offered a link to the Approvals inbox.
Tests
New
ui/packages/app-shell/src/layout/__tests__/InboxPopover.rightPanel-34589.test.tsx(real Radix sheet and tabs, real router and i18n pack; onlyDeclaredActionsBarstood in for, its own gates being pinned in its suites):md:w-[440px], nomax-h-80, no overlay mounted;?recordId=appears;DeclaredActionsBarwithsys_approval_request,list_itemand the served row (identity);onApprovalDecidedonce;…/system/approvals?request=req-1and the panel stays open;w-full max-w-none h-full, the icon shown and 44 px, and a followed link closes the panel.Existing suites updated for the new primitive and behaviour: the eight
InboxPopover.*suites that stub the popover now stubSheet*and adduseLocationto their router mock;InboxPopover.linklessFallback's CONTROL now expects a followed link to leave the panel open;InboxPopover.phoneWidth-29076's width pin reads the full-screen classes;AppHeader.inboxVariant,AppHeader.deferredChromeReads-12980andsharedInboxFeed.twoSurfacesstubSheet*;useHomeInbox.myWork-12602expects the servedrowon each request.Acceptance notes
?form=) is a centred dialog and is not handled.APPROVALS_PAGE_ROWS, 5); when more are waiting, the Approvals tab's count and "View approvals" drill show the total.Verification
Readings against head
a8d27480(base082f9c29).Tests
Run from
ui/as vitest root, underscripts/pm/os-verify-lock.sh, afterturbo run build --filter='@object-ui/app-shell^...'(VERDICT command-exit 0).vitest run packages/app-shell/src/layout/__tests__/InboxPopover packages/app-shell/src/layout/__tests__/AppHeader.inboxVariant.test.tsx packages/app-shell/src/layout/__tests__/AppHeader.deferredChromeReads-12980.test.tsx packages/app-shell/src/hooks/__tests__/sharedInboxFeed.twoSurfaces.test.tsx packages/app-shell/src/hooks/__tests__/useHomeInbox.myWork-12602.test.tsx→Test Files 18 passed (18),Tests 169 passed (169), VERDICT command-exit 0.layout/__tests__/InboxPopover*, bothAppHeaderinbox suites,hooks/__tests__/andviews/global-notifications*:Test Files 5 failed | 105 passed (110), all five being the suites listed above as updated.vitest run packages/i18n/ packages/app-shell/src/__tests__/product-neutral-renderer.ratchet.test.ts→ 102 of 103 files passed; the one red waszh-hant-generated(zh-Hant not regenerated), fixed bypnpm --filter @object-ui/i18n run gen:zh-hant; re-run ofzh-hant-generated+all-locales-key-parity→Tests 59 passed (59).pnpm --filter @object-ui/app-shell --filter @object-ui/i18n run type-check→ VERDICT command-exit 0 (both packages'tsc --noEmitandtsconfig.test.json).npx eslintover every changed app-shell file → exit 0 (0 errors; warnings are the files' existingno-explicit-any).Ablations (one per behaviour the diff changes; each mutation landed and was restored, `git diff HEAD` empty)
Through
node scripts/ablation-replace.mjsonInboxPopover.tsx, running the new suite (src-imported, no build in the path):onInteractOutside={(e) => e.preventDefault()}→stays open when the page beside it is clickedred (1 failed | 10 passed). A first run passed because the click came before Radix armed its outside listener; the test now waits a task, and the re-run went red.if (drawerRecordId) setOpen(false);→yields when the record drawer opensred (1 failed | 10 passed).setDecidedIds((prev) => new Set(prev).add(r.id));→drops a decided request and its share of the badgered (1 failed | 10 passed).Gates
Derived by
node scripts/pm/dispatch-gates.mjs --commandsata8d27480(40 families), each run serially and recorded asCMD :: exit N;--ranreconciliation: 40 of 40 accounted, 0 NOT-MEASURED, exit 0.node scripts/check-adr-0087-registration.mjs --base origin/main:: exit 0node scripts/check-adr-0087-registration.mjs --self-test:: exit 0node scripts/check-changeset-no-major.mjs --base origin/main:: exit 0node scripts/check-closing-keyword-parity.mjs:: exit 0node scripts/check-closing-keyword-parity.mjs --self-test:: exit 0node scripts/check-comment-mask-corpus.mjs:: exit 0node scripts/check-empty-changeset.mjs --base origin/main:: exit 0node scripts/check-empty-changeset.mjs --self-test:: exit 0node scripts/check-sdui-manifest.mjs:: exit 0node scripts/check-sdui-manifest.mjs --self-test:: exit 0node scripts/ci/snapshot-next.mjs --self-test:: exit 0node scripts/pm/check-governed-queue-guard.mjs --self-test:: exit 0node scripts/pm/release-rehearsal-clone.mjs --self-test:: exit 0node scripts/release-pending-publish.mjs --self-test:: exit 0pnpm --dir ui exec vitest run scripts/:: exit 0pnpm --filter @objectstack/spec run check:duration-unit-keys:: exit 0pnpm check:adr-anchors:: exit 0pnpm check:changeset-gate-self-tests:: exit 0pnpm check:closed-ceremony-text:: exit 0pnpm check:cross-package-test-inputs:: exit 0pnpm check:dispatcher-error-vocabulary:: exit 0pnpm check:driver-memory-census:: exit 0pnpm check:engine-double-contract:: exit 0pnpm check:gitlink-declared:: exit 0pnpm check:merge-driver:: exit 0pnpm check:nul-bytes:: exit 0pnpm check:published-files:: exit 0pnpm check:query-options-erasure:: exit 0pnpm check:refd-timer-probe:: exit 0pnpm check:registry-log-declared:: exit 0pnpm check:rest-log-spy-declared:: exit 0pnpm check:role-word:: exit 0pnpm check:skill-identifier-liveness:: exit 0pnpm check:test-source-alias:: exit 0pnpm check:tier-file-adoption:: exit 0pnpm check:type-check-coverage:: exit 0pnpm check:type-check-debt:: exit 0pnpm check:undeclared-dep-imports:: exit 0pnpm check:watch-hint-literal:: exit 0pnpm check:where-matcher:: exit 0Also:
node scripts/pm/overlap-check.mjs→VERDICT clean exit 0(origin/main and open PRs #34631 #34628 #34624; #34593 has no PR yet);node scripts/pm/check-governed-merges.mjs --branch claude/project-thread-r5tewa→ no governed path, 774 changed lines. Every other family is CI's (PR check-runs).Generated by Claude Code