Skip to content

test(ui): open the phone nav drawer from the bottom bar's More cell in the live Back spec - #35148

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-35127-phone-drawer-spec-more
Nov 18, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-35127-phone-drawer-spec-more

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #35127
repo:objectstack#1 · os-warren · session_01JQwxbXBffgVtUPBEY2nLFm
Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:只改一个夜间 live e2e 测试 ui/e2e/live/phone-nav-drawer-back-29131.spec.ts:手机宽度的 4 个用例(375 / 390 px 各一遍,共 8 条)改为从底部菜单栏的「更多」打开导航抽屉;桌面对照用例仍点侧栏按钮;所有断言一字未改。
  • 为什么改:Nightly Tiers 从 18.6.0 起红 8 条,原因是测试过时而非产品回归:feat(console): phone app menu bar with pinned entries, and a starred full menu behind More #34628(13c62a62)按设计把手机应用内左上角改成「返回首页」,抽屉改由底部「更多」打开,测试仍在等左上角那个已不存在的侧栏按钮。手机用户在列表页有入口(「更多」),无需 18.6.1 补丁。
  • 风险与回滚:不动任何产品代码、契约或已发布包,只影响夜间测试;回滚即 revert 本 PR。
  • 先看:① ui/e2e/live/phone-nav-drawer-back-29131.spec.ts 的 openList / openDrawer(打开入口从 TRIGGER 换成 MORE),以及 reload 用例里等待的元素。
  • 两分钟验证:看下方 Verification 里本地 live 运行读数:改前 8 条失败、改后 9 条全过(含桌面对照);夜间整份清单 28 条全过。
  • 需要你做的:无,席位落地。

What changes

ui/e2e/live/phone-nav-drawer-back-29131.spec.ts only.

  • New selector MORE = the bottom menu bar's 「More」 cell ([data-testid="phone-app-nav-more"], PhoneAppNavBar.tsx).
  • openList(page, opener) now waits for the control the case will use: MORE in the four phone cases, TRIGGER (button[data-sidebar="trigger"]) in the desktop CONTROL.
  • openDrawer taps MORE; the reload case waits for MORE after the reload.
  • The docblock says why: on a phone inside an app the app bar's left slot is the Back-to-home link, and both controls open the same drawer through setOpenMobile(true).
  • Every assertion of the four cases at both widths is unchanged. The outside-tap point (width - 20, y 420) is still on the overlay, well above the 48 px bottom bar at an 844 px tall viewport, so nothing else needed adjusting.

Verdict for triage: spec drift, not a product regression

Triage asked: "Decide whether a phone user on a list page really has no nav trigger (a product regression, possibly worth an 18.6.1 patch) or whether the spec's LIST or its selector drifted."

Spec drift: the selector. LIST is still correct (the list renders, with its bottom bar).

  • The trigger moved by design in 13c62a6, feat(console): phone app menu bar with pinned entries, and a starred full menu behind More (#34628), the change for card 手机端:进入应用后底部放菜单栏(读用户固定的菜单项),完整菜单收进「更多」 #34594, committed 2026-11-17T06:10Z. In AppHeader.tsx the left slot is isApp && phone ? Link data-testid="app-bar-phone-home" : isApp ? LocalizedSidebarTrigger : …. That PR updated ui/e2e/record-header-title-width.spec.ts but not this live spec, which only the nightly runs.
  • The commit sits exactly in triage's window. git merge-base --is-ancestor 13c62a62 d57d6eed exits 1 (not in the last green), with control leg 64911c64 in d57d6eed exiting 0 in the same checkout. 13c62a62 in 958ee035 (the first red) exits 0. d57d6eed in 13c62a62 exits 0.
  • The seat's reading named db1a05cd from git log -S'app-bar-phone-home'. That was a shallow-clone artifact: db1a05cd was a graft boundary in the shared clone's shallow file, so the pickaxe charged it with the whole file. After git fetch --deepen=400, the same pickaxe answers 13c62a62 alone.
  • The live failure screenshot of the unchanged spec at 375 px shows the list with 「‹」 top-left and a bottom bar of five cells, the last one 「More」. A phone user on the list has a nav trigger.
  • ConsoleLayout.tsx keeps the bar on LIST (phoneNavBar = phone && !hidesPhoneNavBar(pathname); hidesPhoneNavBar matches only record pages and new/edit forms). UnifiedSidebar.tsx passes onOpenMenu={() => setOpenMobile(true)}. usePhoneNavDrawerHistory reads openMobile from useSidebar(). So the Back, outside-tap and reload behaviour this spec guards does not depend on which control opened the drawer. The green run below measures that.

Tests

Live, in this container, against the real stack the nightly boots. Steps:

  1. The workspace backend: ui/e2e/live/ci/start-backend.sh on a random port, booting this tree's built CLI and examples/app-showcase.
  2. The Console: vite build with VITE_BASE_PATH=/, served by vite preview with /api proxied to that backend.
  3. pnpm --dir ui exec playwright test --config=playwright.live.config.ts phone-nav-drawer-back-29131.spec.ts.

Bundled Chromium 1243, @playwright/test 1.63.0. All three ran on the branch head dd988633, which is BASE 6f2bd4f8 plus this one commit.

Unchanged spec (BASE version restored into the tree): 8 failed, 1 passed, the nightly's exact failure
  ✘  1 … phone nav drawer and Back at 375 px › Back with the drawer open closes it and stays on the list (6.6s)
  ✘  2 … at 375 px › an outside tap closes the drawer and pops its entry: Back goes to the previous page (6.2s)
  ✘  3 … at 375 px › choosing a nav entry replaces the drawer entry: Back returns to the list (6.3s)
  ✘  4 … at 375 px › a reload with the drawer open leaves it closed, with no flagged entry left (6.3s)
  ✘  5 … at 390 px › Back with the drawer open closes it and stays on the list (6.2s)
  ✘  6 … at 390 px › an outside tap closes the drawer and pops its entry: Back goes to the previous page (6.1s)
  ✘  7 … at 390 px › choosing a nav entry replaces the drawer entry: Back returns to the list (6.2s)
  ✘  8 … at 390 px › a reload with the drawer open leaves it closed, with no flagged entry left (6.2s)
  ✓  9 … desktop sidebar › CONTROL — opening and closing the sidebar writes no history entry (3.1s)
    Error: expect(locator).toBeVisible() failed
    Error: element(s) not found      (locator('button[data-sidebar="trigger"]').first(), in openList)
  8 failed
  1 passed (58.5s)
os-verify-lock: VERDICT command-exit 1
This branch: 9 passed (all 8 phone legs plus the desktop CONTROL)
  ✓  1 … phone nav drawer and Back at 375 px › Back with the drawer open closes it and stays on the list (2.3s)
  ✓  2 … at 375 px › an outside tap closes the drawer and pops its entry: Back goes to the previous page (2.8s)
  ✓  3 … at 375 px › choosing a nav entry replaces the drawer entry: Back returns to the list (2.5s)
  ✓  4 … at 375 px › a reload with the drawer open leaves it closed, with no flagged entry left (3.3s)
  ✓  5 … at 390 px › Back with the drawer open closes it and stays on the list (2.3s)
  ✓  6 … at 390 px › an outside tap closes the drawer and pops its entry: Back goes to the previous page (2.7s)
  ✓  7 … at 390 px › choosing a nav entry replaces the drawer entry: Back returns to the list (2.6s)
  ✓  8 … at 390 px › a reload with the drawer open leaves it closed, with no flagged entry left (3.3s)
  ✓  9 … desktop sidebar › CONTROL — opening and closing the sidebar writes no history entry (2.7s)
  9 passed (25.6s)
os-verify-lock: VERDICT command-exit 0
The whole nightly list (`pnpm --dir ui run test:e2e:live:nightly`, the list the live-tier test runs): 28 passed
  28 passed (1.6m)
os-verify-lock: VERDICT command-exit 0

Acceptance notes

  • No ablation. This diff changes which control a test taps, not a tested behaviour. The before/after pair above is the evidence that the fix addresses the failure.
  • Not merged with main. origin/main moved to dfc6bbf6 after BASE 6f2bd4f8. None of the incoming commits touches ui/packages/app-shell/src/layout/ or ui/e2e/live/, and overlap-check.mjs reads clean, so the live reading holds.
  • The seat's observation. On a phone record page the bottom bar is hidden and the app bar shows the home link, so the nav drawer has no opener there. The seat already noted this as not this card's. It is 手机端:进入应用后底部放菜单栏(读用户固定的菜单项),完整菜单收进「更多」 #34594's stated design (hidesPhoneNavBar), with no defect, contract text or trap behind it, so it is noted here and not filed.

Verification

  • pnpm --dir ui run type-check:e2e (tsc -p tsconfig.e2e.json): exit 0.
  • Derived gates (node scripts/pm/dispatch-gates.mjs --commands, at dd988633): 20 families, each run locally, each exit 0. --ran reconciliation: "20 derived famil(ies) accounted for — 20 run, 0 NOT-MEASURED (a DERIVED zero — all 20 recorded an exit code and none of them is 3)".
  • node scripts/pm/overlap-check.mjs: VERDICT clean exit 0 before each push.
  • skip-changeset: the only path is under ui/e2e/, which belongs to the private root package object-ui-monorepo and to no published files[]. Nothing publishes.

Generated by Claude Code

…n the live Back spec

On a phone inside an app the app bar's left slot is the Back-to-home link
and the drawer opens from the bottom menu bar's More cell, so the spec's
openList waited for a sidebar trigger that is no longer drawn there. The
four phone cases now open and wait on the More cell; the desktop control
keeps the sidebar trigger. Every assertion is unchanged.

Claude-Session: https://claude.ai/code/session_01JQwxbXBffgVtUPBEY2nLFm
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 18, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbXBffgVtUPBEY2nLFm

席位核对 · area self-review (Fixes #35127) · 2026-11-18T07:46Z

L1: ACCEPT
Head-sha: dd98863
Route: area self-review per area-lease 〈区内规则〉 送审 (≤50 lines, tests only, Clause-②: no, no other contract face); seat confirmed the route.

Checklist (l1-review-checklist.md), read against the full diff (1 file, +16 −9):

  • Shape: Fixes #35127 alone on line 1; no closing keyword beside any other card number (full-body scan). Card relation right: merging closes the nightly card.
  • Scope: only ui/e2e/live/phone-nav-drawer-back-29131.spec.ts; no content/docs/releases/; not published → skip-changeset (label present). Claim surface held.
  • Triage's ⛔ "Never skip or rename the spec to go green": held. No case skipped, renamed or loosened; the four phone cases open the drawer from [data-testid="phone-app-nav-more"], the reload case waits for the same cell, and the desktop CONTROL keeps button[data-sidebar="trigger"]. Every assertion is unchanged.
  • Premise: the claim's static reading (drift, by design since 手机端:进入应用后底部放菜单栏(读用户固定的菜单项),完整菜单收进「更多」 #34594) was confirmed live and the commit corrected to 13c62a6 (feat(console): phone app menu bar with pinned entries, and a starred full menu behind More #34628; db1a05c was a shallow-clone boundary).
  • Evidence (dev report 6972069617), live against the stack the nightly boots: unchanged spec 8 failed / 1 passed with the nightly's exact openList failure; this head 9/9; whole test:e2e:live:nightly 28/28; type-check:e2e exit 0. Before/after pair stands in for an ablation (the diff changes which control is tapped, not a tested behaviour): accepted.
  • CI on this head: 30 success, 18 skipped, 0 failed, 0 pending; Lint & Repo Gates and TypeScript Type Check success. check-governed-merges --pr 35148: not governed, 25 lines.
  • Out of scope: the phone record page has no drawer opener (手机端:进入应用后底部放菜单栏(读用户固定的菜单项),完整菜单收进「更多」 #34594 design; seat 2026-11-18 read it as intended, not filed). Noted only.

Must-fix: none. Should-fix: none.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbXBffgVtUPBEY2nLFm

Landing · head dd9886332258bd3c92f393db087cf921c464406f · 2026-11-18T07:47Z

probe reading
L1 area self-review ACCEPT at this head, 6972413495; no L2 owed
check-governed-merges.mjs --pr 35148 NOT governed; 25 changed lines ≤ 3000
CI on head 30 success, 18 skipped, 0 failed; mergeable clean
K (first-parent commits on main since the PR base) 7 (< 15); no generated or locale path in the diff

Ready + auto-merge now; the area follows it to MERGED and closes out #35127.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 18, 2026 07:47
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 3483407 Nov 18, 2026
49 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-35127-phone-drawer-spec-more branch November 18, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nightly-tiers: red on main

2 participants