Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .changeset/35602-record-dense-rows.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
'@object-ui/plugin-detail': patch
'@object-ui/app-shell': patch
'@object-ui/i18n': patch
---

feat(record-page): dense field rows, one-line activity entries grouped by day, and one row per attachment

Clause-②: no
Metadata-protocol: none

The record page now fits more on one screen: fields read as one row each with the label on the left, the activity feed shows one line per entry under a day heading with a one-line comment box, and each attachment is one file row with its actions in a ⋮ menu.

New locale keys in every pack: `detail.streamToday`, `detail.streamYesterday`, `detail.viewApproval`, `detail.replyToComment`, `detail.attachmentsDropHint`, `detail.attachmentsChooseFile`, `detail.attachmentActions`. `RecordActivityTimeline` takes an optional `onViewApprovals`; `RichTextCommentInput` takes an optional `compact`; `CommentBody` takes an optional `controlsClassName`. No metadata key, value or default changes.
10 changes: 8 additions & 2 deletions docs/qa/platform-checklist/areas/attachments-storage.json
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@
"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)",
"since": "v15.1",
"status": "active",
"revision": 11,
"revision": 12,
"priority": "P1",
"surface": "mixed",
"personas": ["admin (uploader/owner)", "signed-up member who cannot read the parent record (qa-scratch-authz persona B: the API deny clauses)",
Expand All @@ -282,7 +282,7 @@
"GET the same routes as the uploader/admin and follow the signed URL",
"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",
"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",
"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), click the listed file's 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"
"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"
],
"acceptance": [
{
Expand Down Expand Up @@ -384,6 +384,12 @@
"date": "2026-11-14",
"change": "steps[0], steps[5] and fixtures.knownGaps[2] re-pointed (QA run #33048, comment 6846028996): the field-owned receipt is reachable over REST (upload scope user, then PATCH the line's receipt; the claim stamps ref_object/ref_id/ref_field, packages/services/service-storage/src/field-file-service.ts); the acl flip is a plain admin PATCH on sys_file (system-file.object.ts), not a system write; and the uploader-bypass leg needs the temp-grant-then-revoke shape, since an admin attaching a member's file is refused (referenceable-file.ts). No clause changed. Read at base 87330e89",
"ref": "#33329"
},
{
"revision": 12,
"date": "2026-11-20",
"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",
"ref": "#35602"
}
]
},
Expand Down
16 changes: 9 additions & 7 deletions ui/e2e/narrow-drawer-time-34614.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ import { uiRoot } from '../scripts/ui-root.mjs';
* half is pinned beside the components in `narrowDrawerTime-34614.test.tsx`.
*
* REAL, read out of the sources at run time: the meta row, entry, time unit
* and `<time>` classes (`RecordMetaFooter.tsx`), the activity entry's row,
* content column, header row and time classes (`RecordActivityTimeline.tsx`),
* and `<time>` classes (`RecordMetaFooter.tsx`), the activity comment row's
* row, icon cell, content column, header row, right-hand tail and time classes
* (`RecordActivityTimeline.tsx`, the dense day-grouped rows of objectstack#35602),
* the badge's base classes (`ui/badge.tsx`), the select badge's own classes
* (`@object-ui/fields`) and the default page's key-field grid cell
* (`HeaderHighlight.tsx`), plus real Tailwind compiled from the installed
Expand Down Expand Up @@ -68,11 +69,12 @@ const CLS = {
metaWhen: grab(META, /<span className="([^"]+)" data-record-meta-when="">/, ['inline-flex']),
metaDot: grab(META, /data-record-meta-when="">\s*\{user \? <span className="([^"]+)">·<\/span>/, ['text-muted-foreground/40']),
metaTime: grab(META, /<time\s+dateTime=\{[^}]+\}\s+className="([^"]+)"/, ['cursor-default']),
feedRow: grab(FEED, /<div key=\{item\.id\}>\s*<div className="([^"]+)">/, ['flex', 'gap-3']),
feedIcon: grab(FEED, /\{\/\* Icon \*\/\}\s*<div\s+className=\{cn\(\s*'([^']+)'/, ['shrink-0', 'h-8', 'w-8']),
feedContent: grab(FEED, /\{\/\* Content \*\/\}\s*<div className="([^"]+)">/, ['flex-1', 'min-w-0']),
feedHeader: grab(FEED, /<div className="([^"]+)">\s*<span className="[^"]+">\{item\.actor\}<\/span>/, ['flex', 'items-center']),
feedRow: grab(FEED, /<div key=\{item\.id\} className="group" data-stream-comment-row="">\s*<div className="([^"]+)">/, ['flex', 'gap-2']),
feedIcon: grab(FEED, /const STREAM_ICON_CELL =\s*'([^']+)'/, ['shrink-0', 'w-3.5']),
feedContent: grab(FEED, /\{\/\* Content[^*]*\*\/\}\s*<div className="([^"]+)">/, ['flex-1', 'min-w-0']),
feedHeader: grab(FEED, /const STREAM_COMMENT_HEADER =\s*'([^']+)'/, ['flex', 'flex-wrap', 'items-center']),
feedActor: grab(FEED, /<span className="([^"]+)">\{item\.actor\}<\/span>\s*\{item\.source/, ['font-medium']),
feedTail: grab(FEED, /<span className="(ml-auto [^"]+)">\s*\{\(toggleReaction/, ['ml-auto', 'flex']),
feedWhen: grab(FEED, /<span className="([^"]+)" data-feed-when="">\s*\{formatTimestamp\(item\.createdAt/, ['text-xs']),
badgeBase: grab(BADGE, /cva\(\s*(?:\/\/[^\n]*\n\s*)*"([^"]+)"/, ['inline-flex', 'whitespace-nowrap', 'rounded-full']),
badgeSelect: grab(FIELDS, /<Badge[\s\S]{0,200}?className=\{cn\('([^']+)', colorClasses\)\}/, ['max-w-full']),
Expand Down Expand Up @@ -105,7 +107,7 @@ const feedFixture = () =>
`<div class="${CLS.feedContent}"><div id="header" class="${CLS.feedHeader}">` +
`<span id="actor" class="${CLS.feedActor}">Jianguo Zhuang Administrator</span>` +
'<span class="text-xs text-muted-foreground">via Email Gateway Integration</span>' +
`<span id="feed-when" class="${CLS.feedWhen}">3 days ago</span>` +
`<span class="${CLS.feedTail}"><span id="feed-when" class="${CLS.feedWhen}">3 days ago</span></span>` +
'</div><p class="text-sm">Sent the revised quote.</p></div></div></div>';

/** Two key-field cells on the default page's grid, each holding a select badge. */
Expand Down
4 changes: 3 additions & 1 deletion ui/e2e/record-flow-phone-targets.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ const CLS = {
stripPencil: g('strip', /className="([^"]+)"\s*aria-label=\{t\('detail\.editInlineHint'\)\}/, ['min-h-[44px]', 'pointer-coarse:opacity-100', 'opacity-0']),
saveCancel: g('saveBar', /disabled=\{inline\.saving\}\s*className="([^"]+)"/, ['h-11', 'sm:h-9']),
saveSave: g('saveBar', /disabled=\{inline\.saving \|\| locked\}\s*className="([^"]+)"/, ['h-11', 'sm:h-9']),
composerRow: g('composer', /<div className="(flex flex-wrap items-center gap-0\.5[^"]*)">/, ['flex-wrap']),
// The toolbar row folds away while the comment box is one collapsed line
// (objectstack#35602), so its classes sit in a `cn(...)` with that toggle.
composerRow: g('composer', /<div className=\{cn\('(flex flex-wrap items-center gap-0\.5[^']*)'/, ['flex-wrap']),
composerButton: g('composer', /className="(h-11 w-11 sm:h-7 sm:w-7)"/, ['h-11', 'sm:h-7']),
barButton: g('header', /barFace && '(h-11 min-w-0 flex-1)'/, ['h-11', 'flex-1']),
barMore: g('header', /barFace \? '(h-11 w-11 shrink-0 px-0)'/, ['h-11', 'w-11']),
Expand Down
Loading
Loading