|
7411 | 7411 | "ref": "#35783" |
7412 | 7412 | } |
7413 | 7413 | ] |
| 7414 | + }, |
| 7415 | + { |
| 7416 | + "id": "records-forms.record-open-path-and-header", |
| 7417 | + "title": "An object's list opens a record one way — the name opens the full page, the hover icon beside it the side drawer — and the record's header is two rows: the way through the list (↑ ↓, 「第 N 条,共 M 条 · 视图名」, ✕) over the record (its name, chips and up to three actions), with the tabs right under it", |
| 7418 | + "since": "v18.7", |
| 7419 | + "status": "active", |
| 7420 | + "revision": 1, |
| 7421 | + "priority": "P1", |
| 7422 | + "surface": "browser", |
| 7423 | + "personas": [ |
| 7424 | + "seeded admin (admin@objectos.ai / admin123)" |
| 7425 | + ], |
| 7426 | + "fixtures": { |
| 7427 | + "app": "showcase", |
| 7428 | + "requires": [ |
| 7429 | + "a fresh boot of the showcase (the live lane's `ui/e2e/live/ci/start-backend.sh`, or `pnpm dev -- --fresh --seed-admin`)", |
| 7430 | + "the showcase_account list (14 seeded accounts, a synthesized record page with a tab row) and the showcase_task list (its showcase_task_detail page authors three record_header actions: Mark Done, Log Time, Archive)" |
| 7431 | + ] |
| 7432 | + }, |
| 7433 | + "steps": [ |
| 7434 | + "at 1280×900 open the showcase_account list and click the second account's name; read the URL and the header's two rows", |
| 7435 | + "reload the page; read the navigation row again; press ↓; then click the view's name (「All Records」) in the navigation row", |
| 7436 | + "on the list, hover the second row and click the 「在侧边打开」 icon beside the name; read the URL, the drawer's edges and its header; press ↓ in the drawer, then its 「整页打开」", |
| 7437 | + "paste the address of an account record into a fresh tab (no list behind it); read the navigation row; click ✕", |
| 7438 | + "open a backlog task from the showcase_task list and read the record row's buttons; open a task in the drawer at 820 px wide and read them again", |
| 7439 | + "at 390×844 with touch, open the account list and tap a record" |
| 7440 | + ], |
| 7441 | + "acceptance": [ |
| 7442 | + { |
| 7443 | + "clause": "the record's name opens the full page and nothing else does: no reader setting and no `navigation.mode` picks the drawer instead", |
| 7444 | + "oracle": "dom", |
| 7445 | + "verify": "after steps[0] the URL is …/showcase_account/record/<id> with no ?recordId=, and no drawer card ([data-record-drawer-card]) is drawn", |
| 7446 | + "evidence": "the URL and a screenshot" |
| 7447 | + }, |
| 7448 | + { |
| 7449 | + "clause": "the page remembers the list it came from, across a reload: ↑ ↓ walk the list's rows in its order, the navigation row reads 「2 of 14 · All Records」, and the view's name goes back to the list", |
| 7450 | + "oracle": "dom", |
| 7451 | + "verify": "[data-record-top-bar-position] reads '2 of 14' and [data-record-top-bar-scope] 'All Records' before and after the reload; after ↓ the position reads '3 of 14'; the scope click lands on the list", |
| 7452 | + "evidence": "the navigation row before and after the reload" |
| 7453 | + }, |
| 7454 | + { |
| 7455 | + "clause": "the icon beside the name, shown while the row is hovered, opens the record in a side drawer over the list, a floating card 8 px off the window's top, right and bottom edges, with 「整页打开」 and ✕ and no full-width state", |
| 7456 | + "oracle": "dom", |
| 7457 | + "verify": "the icon's opacity is 0 at rest and 1 on hover; after the click the URL carries ?recordId=, the list is still drawn, the card's box is 8 px from three edges with a rounded corner, and its frame holds exactly two buttons", |
| 7458 | + "evidence": "the drawer screenshot" |
| 7459 | + }, |
| 7460 | + { |
| 7461 | + "clause": "the header is two rows on the page and in the drawer: a 40 px navigation row (the stepper and position, or the object when no list is behind it; ✕ at its far right) over a 48 px record row (icon, the name at 16 px, chips, actions)", |
| 7462 | + "oracle": "dom", |
| 7463 | + "verify": "[data-record-top-bar-rows='2'] holds [data-record-top-bar-nav] (40 px) above [data-record-top-bar-record] (48 px); the close button ends within 12 px of the row's right edge; with no list behind it there is no [data-record-top-bar-stepper] and the object crumb shows, and ✕ goes to the object's list", |
| 7464 | + "evidence": "the three figure-40 screenshots" |
| 7465 | + }, |
| 7466 | + { |
| 7467 | + "clause": "the record row shows three authored actions by default, and folds those that do not fit its width into ⋯ rather than wrapping", |
| 7468 | + "oracle": "dom", |
| 7469 | + "verify": "on a backlog task Mark Done, Log Time and Archive stand inline beside Edit and ⋯; in the 820 px drawer every visible button of [data-record-top-bar-actions] shares one top", |
| 7470 | + "evidence": "both screenshots" |
| 7471 | + }, |
| 7472 | + { |
| 7473 | + "clause": "the page's first row (its tab row, or a stage bar) starts right under the header, with no blank band", |
| 7474 | + "oracle": "dom", |
| 7475 | + "verify": "the tab row's top minus the header's bottom is at most 12 px, on the page and in the drawer", |
| 7476 | + "evidence": "the measured gap" |
| 7477 | + }, |
| 7478 | + { |
| 7479 | + "clause": "on a phone there is no side-drawer icon; a tap opens the page, whose one-row bar still knows the list", |
| 7480 | + "oracle": "dom", |
| 7481 | + "verify": "no [data-testid='record-open-in-panel'] is drawn; after the tap the URL is the record's page and the bar reads '2 / 14', also after a reload", |
| 7482 | + "evidence": "the phone screenshot" |
| 7483 | + }, |
| 7484 | + { |
| 7485 | + "clause": "the pins pass at the run subject sha", |
| 7486 | + "oracle": "test", |
| 7487 | + "verify": "run ui/e2e/live/record-open-path-35854.spec.ts and ui/e2e/live/record-topbar-35853.spec.ts with the live config (playwright.live.config.ts), and ui/packages/app-shell/src/views/ObjectView.recordOpenPath-35854.test.tsx and ui/packages/components/src/__tests__/record-top-bar-two-rows-35853.test.tsx from ui/ with vitest; each reports ≥1 test and 0 failed", |
| 7488 | + "evidence": "the Playwright and vitest summary lines, with the subject sha" |
| 7489 | + } |
| 7490 | + ], |
| 7491 | + "negative": [ |
| 7492 | + "a name click that opens the drawer, or a 「打开记录:抽屉 / 整页」 setting anywhere in the list's view settings, is a FAIL", |
| 7493 | + "a page opened from a list that loses its position or view name on a reload is a FAIL", |
| 7494 | + "a list view declaring navigation.mode 'none' (or preventNavigation) whose rows open a record is a FAIL: 'none' still means rows open nothing", |
| 7495 | + "a blank band of more than 12 px between the header and the tab row is a FAIL" |
| 7496 | + ], |
| 7497 | + "traps": [ |
| 7498 | + "hydration-race", |
| 7499 | + "shared-browser-tab" |
| 7500 | + ], |
| 7501 | + "automated": { |
| 7502 | + "kind": "e2e", |
| 7503 | + "ref": "ui/e2e/live/record-open-path-35854.spec.ts (name → page, hover icon → drawer, provenance across a reload, phone), ui/e2e/live/record-topbar-35853.spec.ts (the two rows on the page and in the drawer, three actions, the width fold, the gap above the tabs, the phone bar); both in the live lane, not in the required `:ci` allowlist" |
| 7504 | + }, |
| 7505 | + "source": [ |
| 7506 | + "ui/packages/app-shell/src/views/objectViewRecordNavigation.ts", |
| 7507 | + "ui/packages/app-shell/src/views/objectViewOpenAsPage.tsx#OpenInSidePanelButton", |
| 7508 | + "ui/packages/app-shell/src/views/recordDrawerStack.tsx#useRecordPageReturn", |
| 7509 | + "ui/packages/components/src/custom/record-top-bar.tsx#RecordTopBar", |
| 7510 | + "ui/packages/components/src/custom/navigation-overlay.tsx", |
| 7511 | + "ui/packages/components/src/renderers/layout/containers.tsx#PageHeaderActions", |
| 7512 | + "ui/packages/app-shell/src/views/RecordDetailView.tsx", |
| 7513 | + "#35854", |
| 7514 | + "#35853" |
| 7515 | + ], |
| 7516 | + "history": [ |
| 7517 | + { |
| 7518 | + "revision": 1, |
| 7519 | + "date": "2026-11-20", |
| 7520 | + "change": "initial — the one open path (#35854, maintainer ruling 「废弃」 on the open preference and navigation.mode) and the two-row record header (#35853, with the gap above the tabs of #35745), read from the PR branch and driven live against the showcase", |
| 7521 | + "ref": "#35854" |
| 7522 | + } |
| 7523 | + ] |
7414 | 7524 | } |
7415 | 7525 | ] |
7416 | 7526 | } |
0 commit comments