Skip to content

Commit e850a8b

Browse files
docs(qa): seven record-page checklist items test the pinned details and the tab-by-default master_detail rule, not the retired right rail (#36284)
<!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XC63go34oEMBFaBgqpoDC8N)_ Fixes #36188 Clause-②: no Metadata-protocol: none repo:objectstack#4 · os-project-manager · session_01FEkQ5kDGa1ViantgrfH797 Takes over #36188 PR B from seat repo:objectstack#1 (hand-over 7073956497) ## 维护者速读 - 用户无感:只改内部测试清单里七条记录页测试项的文字,产品本身不变。 - 记录页去掉右侧摘要栏、主从子表改为默认作页签之后,这七条仍按旧布局写,照着跑会把正常的产品判成失败;属于记录页重做专题。 - 出错只会让测试员照错误的步骤操作、得出错误结论,不影响任何用户,改回文字即可撤回。 - 无。 ## What changes Seven platform-checklist items still described the record page's right summary rail (retired by the ruling on the layout card, comment 7064066204: fields pinned in the left column when 320 + 400 fit; landed in `48c732c4`), its 最近动态 card, the first tab's old name 概览, or the e2e spec under its old name. One of them also asserted the master_detail rule `f3c9d426f` replaced. Each is rewritten in place, with `revision` bumped and a `history` row (README "Lifecycle — Change"); none is retired, because every subject is still live. | Item | Rev | Change | |---|---|---| | `records-forms.crud-roundtrip` | 21 → 22 | steps[5], acceptance[4].verify: stream from the Activity tab or `?related=timeline`; first tab 详情; the account page never pins (its 'primary' body tables) | | `records-forms.related-list-server-pagination` | 14 → 15 | steps[0–2,5,7], acceptance[2,5].verify: no 其他相关 cards; Contacts read as its tab; today's `relatedList` describe quoted | | `records-forms.record-edit-undo` | 8 → 9 | steps[2]: stream from the Activity tab; a wide full page pins the details with no 详情 tab | | `records-forms.field-history-tracking` | 14 → 15 | steps[3], acceptance[2].verify: the audit read at open rests on `historyConsumerOnScreen`, not the retired card; the drawer half, which named the rail, is dropped | | `records-forms.master-detail-body-tables` | 1 → 2 | rewritten to the tab-by-default rule: fixture `showcase_expense_report` (group `lines` places `showcase_expense_line`); the table sits at the group's position, keeps its tab, the page never pins; Tasks on a project stays as the tab-only contrast in the drawer | | `records-forms.related-tab-arrangement` | 1 → 2 | 概览 → 详情 throughout; e2e spec renamed `record-tabs-rail-35595.spec.ts` → `record-tabs-35595.spec.ts`; Northwind never pins | | `attachments-storage.download-authz-both-sides` | 12 → 13 | steps[6]: the panel is the face of the 附件 tab, beside the pinned details or on the one-column row | Sources for every rewritten assertion (all at base `28ba01fe`): - Pinning: `recordPagePinsDetails` and `RECORD_PAGE_PIN_MIN_WIDTH` (320 + 24 + 400) in `ui/packages/plugin-detail/src/synth/recordPageColumns.ts`; pinned by `RecordPageColumns.test.tsx` ("pins: details left at 400 px…", "a page whose field groups place a related table among the fields does not pin", "a drawer or pane (no `fullPage`) never pins"). - Tab row and markers: `RecordPageColumns.tsx` (`data-record-page-pinned`, `data-record-columns-shown`, tabs without 详情 when pinned, the implied first tab), `RecordTabRow.tsx` (`data-record-tab`); 详情 is `detail.recordTabOverview` in every locale. - Audit read at open: `RecordDetailView.tsx` `historyConsumerOnScreen`; pinned by `RecordDetailView.recordOpenWaves-13010.test.tsx` ("a trackHistory record reads the audit log at open…"). - Tab by default / group placement / keeps its tab / declared `relatedLists` drops it: `deriveRelatedLists.ts` (`keepsTab`), `buildDefaultPageSchema.ts#bodyTablePlacement`; pinned by `buildDefaultPageSchema.bodyTables-27055.test.ts`, `deriveRelatedLists.test.ts`, `deriveRelatedLists.relatedListsOrder-27069.test.ts`, `RecordDetailView.harness.test.tsx` (the five relation-type cells). - Fixture: `examples/app-showcase/src/data/objects/expense-report.object.ts` (`fieldGroups` report / lines / totals) and the seed's EXP-2001 lines. `showcase_invoice` was not used: its default record page is the authored `kind: 'full'` invoice document, drawn as written on the desktop full page. - Attachments tab: `RecordPageColumns.tsx` (`RECORD_TAB_ATTACHMENTS`), drawn by `record-attachments-renderer.tsx` as `RecordAttachmentsPanel`. This also covers released card #35846 (the master-detail item now asserts the merged rule). Text only: no code, no `skills/**` (PR #36222 did that). ## Tests Docs only: no test file changes. The checklist's own validator is the gate. <details><summary>check:platform-checklist and the derived gate families (head 3039436; rework head 28973d3: check:platform-checklist OK, 16 areas, 436 items; 17 derived families, 17 run, 0 not measured)</summary> ``` check-platform-checklist: OK — 16 areas, 436 items (428 active, 3 planned) … symbol anchors: 1749/1759 resolved (base: 1745/1755; unresolved stays at the 10 on the named residual) dispatch-gates --ran: 17 derived famil(ies) accounted for — 17 run, 0 NOT-MEASURED (a DERIVED zero — all 17 recorded an exit code and none of them is 3) ``` All 17 exited 0: check-adr-links (+ self-test), check-closing-keyword-parity (+ self-test), check-comment-mask-corpus, plan-test-core-shards self-test, lint check:doc-formula-expressions (first run exit 3 PREREQUISITE, re-run exit 0 after building formula + lint), check:adr-anchors, check:ci-filter-parity, check:cross-package-test-inputs, check:doc-authoring, check:driver-memory-census, check:gitlink-declared, check:nul-bytes, check:platform-checklist, check:refd-timer-probe, check:watch-hint-literal. </details> Net lines: +111 / −57 (net +54, budget 60). ## Acceptance notes - Overlap (resolved 2026-11-22): PR #36273 merged first (`d953558b9`). This branch merged `origin/main` at `1cd47628e` as merge commit `28973d379`, with no rebase. In `related-list-server-pagination` steps[1], the quote is now main's `relatedList` describe word for word, re-read at `1cd47628e`, and the item stays at one revision bump on top of main (14 → 15). After the merge, overlap-check is clean. Rework report: card comment 7075633975. - `skip-changeset`: `docs/qa/**` sits in the private root package and in no package's `files[]`, so nothing publishes. - Not filed (polish/naming): several test titles still say 「概览」 for the tab that now reads 详情; the docblocks of `RECORD_PAGE_WIDE_MIN_WIDTH` / `RECORD_PAGE_TWO_COLUMN_MIN_WIDTH` and the tier comment in `RecordDetailView.tsx` still describe a right column. - Revision 1 of `master-detail-body-tables` opened `showcase_project`'s full page, whose default record page is an authored `kind: 'full'` page; the rewrite reads Tasks in the drawer, which draws the standard page. - Not measured: whether Northwind's tab row holds three side lists today (`related-tab-arrangement` fixture); the example list now names only what the showcase declares. ## Verification Read first: `records-forms.json` item `master-detail-body-tables` (the full rewrite), then `related-list-server-pagination` steps[1], then `attachments-storage.json` `download-authz-both-sides` steps[6]. Two-minute check: `pnpm check:platform-checklist` prints `check-platform-checklist: OK — 16 areas, 436 items`. --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5kDGa1ViantgrfH797)_ <!-- signed: repo:objectstack#4 · os-project-manager · session_01FEkQ5kDGa1ViantgrfH797 --> Co-authored-by: Claude <noreply@anthropic.com>
1 parent b3bcfef commit e850a8b

2 files changed

Lines changed: 111 additions & 57 deletions

File tree

‎docs/qa/platform-checklist/areas/attachments-storage.json‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@
255255
"title": "Gated downloads: 401 anonymous, 403 parent-invisible, signed URL for the entitled — per gating class (attachments-scope / field-owned / public_read opt-out / ungated)",
256256
"since": "v15.1",
257257
"status": "active",
258-
"revision": 12,
258+
"revision": 13,
259259
"priority": "P1",
260260
"surface": "mixed",
261261
"personas": ["admin (uploader/owner)", "signed-up member who cannot read the parent record (qa-scratch-authz persona B: the API deny clauses)",
@@ -282,7 +282,7 @@
282282
"GET the same routes as the uploader/admin and follow the signed URL",
283283
"compare TTLs: the gated grant uses the short downloadTtl (default 300s), not the 3600s presignedTtl — read expiry material from the minted URL/descriptor where the adapter exposes it",
284284
"flip one file to acl='public_read' — a plain admin PATCH /api/v1/data/sys_file/ID {acl:'public_read'} answers 200 (acl is a writable select, packages/services/service-storage/src/objects/system-file.object.ts; a member's PATCH of the same column answers 403 PERMISSION_DENIED, on its own file or another's) — and GET /files/<fileId> anonymously — the opt-out must restore the stable anonymous capability URL",
285-
"in the browser, as persona A (reads qa_shared through its qa_att_reader binding, qa-scratch-authz step 6), open a qa_shared record that carries an attachments-scope file (/_console/apps/showcase_app/qa_shared/record/ID), find its attachments panel and confirm the file is listed. Where the panel sits depends on the record page's width tier, measured on the page's container, not the viewport (ui/packages/plugin-detail/src/synth/recordPageColumns.ts#recordPageTierFor): at a 1600px window with the sidebar expanded the page is three-column and the panel closes the resident related column; at 1280px it is two-column, the related column is a rail behind the 'Related' toggle above the columns (data-testid record-related-rail-toggle), closed by default with its panels unmounted, so open the rail first; narrower than the two-column floor, the panel closes the Related tab. There is no separate Attachments tab. Use 1600px, or open the rail, and record which; then, server-side and WITHOUT reloading the page, remove A's read (as admin DELETE /api/v1/data/sys_user_permission_set/BINDING_ID, A's qa_att_reader row), open the listed file's row menu (the ⋮ button at the row's end, labelled 'More for FILE_NAME') and choose Download, and capture the 403 on GET /api/v1/storage/files/FILE_ID/url plus the panel's surfaced copy; re-bind A afterwards (POST the same row back). Persona B cannot stand in for A here: with no read on the parent the record page itself refuses first ('You don't have access to qa_vault records'), so RecordAttachmentsPanel never mounts and there is no download to attempt. A reload after the revoke re-runs the record and listing gates and refuses before any download, which is not the download denial acceptance[4] scores"
285+
"in the browser, as persona A (reads qa_shared through its qa_att_reader binding, qa-scratch-authz step 6), open a qa_shared record that carries an attachments-scope file (/_console/apps/showcase_app/qa_shared/record/ID), find its attachments panel and confirm the file is listed. The panel is the face of the record's Attachments (附件) tab (ui/packages/plugin-detail/src/RecordPageColumns.tsx). On a full page with at least 744 px of content (a 1440×900 window with the comment panel closed) the details are pinned in a left column and the tabs beside them open on the row's first tab; narrower, or in the drawer, the row starts on 详情 (Details) (ui/packages/plugin-detail/src/synth/recordPageColumns.ts#recordPagePinsDetails, #35890). Either way select 附件 on the tab row, and record whether the page was pinned; then, server-side and WITHOUT reloading the page, remove A's read (as admin DELETE /api/v1/data/sys_user_permission_set/BINDING_ID, A's qa_att_reader row), open the listed file's row menu (the ⋮ button at the row's end, labelled 'More for FILE_NAME') and choose Download, and capture the 403 on GET /api/v1/storage/files/FILE_ID/url plus the panel's surfaced copy; re-bind A afterwards (POST the same row back). Persona B cannot stand in for A here: with no read on the parent the record page itself refuses first ('You don't have access to qa_vault records'), so RecordAttachmentsPanel never mounts and there is no download to attempt. A reload after the revoke re-runs the record and listing gates and refuses before any download, which is not the download denial acceptance[4] scores"
286286
],
287287
"acceptance": [
288288
{
@@ -390,6 +390,12 @@
390390
"date": "2026-11-20",
391391
"change": "steps[6] re-pointed for the dense attachments panel (#35602): each file is one row and Download sits in the row's ⋮ menu (ui/packages/app-shell/src/views/RecordAttachmentsPanel.tsx), not as a button on the row. No clause changed. Read at base d44b5e3d",
392392
"ref": "#35602"
393+
},
394+
{
395+
"revision": 13,
396+
"date": "2026-11-22",
397+
"change": "steps[6] re-pointed after #35890: the width tiers, the related column and its 'Related' rail toggle are gone; the attachments panel is the face of the record's 附件 tab, beside the pinned details on a wide full page (recordPagePinsDetails) or on the one-column tab row otherwise. No clause changed. Read from source at base 28ba01fe",
398+
"ref": "#36188"
393399
}
394400
]
395401
},

0 commit comments

Comments
 (0)