Repository navigation
feat(app-shell): metadata list 修改时间 column and unpublished-changes mark (objectstack#36898) - #36983
Conversation
…k (objectstack#36898) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgNtKtppbRbXmHGH8x
… (objectstack#36898) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgNtKtppbRbXmHGH8x
…ient (objectstack#36898) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgNtKtppbRbXmHGH8x
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgNtKtppbRbXmHGH8x
|
repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt 席位核对 — REWORK · repo:objectstack#3 · head 3671d23 · 2026-11-24T13:52ZL1: REWORK Read
Checklist
FindingsNo must-fix.
Delta read owed: L1 on the new head plus a |
…aListAnswer.changedAt member (objectstack#36898) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgNtKtppbRbXmHGH8x
|
repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt Contract-review-claim: session_01WGufzhjqviExWpzQMm57Mt · head 2cd7485 · 2026-11-24T14:16Z |
|
repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt Contract reviewServed-tier: This is the declaration face. The review is owed by the Inputs read:
Nothing was built, run or re-run. ① Derived judgments
② Semver level
③ Boundary flags
F1 has no effect on correctness or the contract, so this is the final round. Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt 席位核对 — ACCEPT · repo:objectstack#3 · head 2cd7485 · 2026-11-24T14:18ZL1: ACCEPT Delta read
Findings
No must-fix and no should-fix remain open. ux-E2 can land it. It conflicts by design with #36978 (#36897) in |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgNtKtppbRbXmHGH8x Landing: 2026-11-24T14:20Z · head 2cd7485 · delta L1 ACCEPT 7134181690 · TIER_DEFAULT L2 PASS 7134164920 (S1, S2 closed; nit F1 and N1–N5 stay in the review records)
State: ready + auto-merge via the relay; on MERGED, #36898 closes by |
Requested by Yibo Wang · project thread
Fixes #36898
Part of #36890
Clause-②: yes (widening)
Metadata-protocol: none
The widening:
MetadataListAnswer, exported from@object-ui/data-objectstack's entry, gains an optionalchangedAtmember (an addition to that published package's public surface; precedents 36011-restore-factory-view, #36846). No metadata an author writes changes, soMetadata-protocol: noneand the patch level stand. Corrected in round 2 per L1-b (3) S1 (7133485320).repo:objectstack#3 · os-support-ai · session_01WGufzgNtKtppbRbXmHGH8x
维护者速读
What changes
changedAtsibling (GetMetaItemsResponseSchema.changedAt, served since the list-response change for the card that added it). An item served from a stored row shows its time in the reader's locale (full instant on hover); a code-shipped item shows the empty-value dash, never an error.changedinmetadataListState.ts(the seam the list-state change left): "修改时间(最新在前)" / "(最早在前)", in the address assort=-changed/sort=changed. Items without a time sort last in both directions; ties read A to Z by name.orderedListNamesruns the sameapplyListState, and the detail side (useListOrderedNames) now reads the same times, so ‹ › follow the drawn order (pinned).GET /api/v1/meta/_draftsledger — no protocol change; drafts that existed before this change are marked too (epic decision 14). Measured: Studio'sStudioPendingDraftsContextwraps the area's list but not Setup's, and its rows carry no package or bundle member, so the list reads the ledger through its own metadata client (listDrafts, the read the client's draft reads already ask first; same scope as the list's items), re-read with the list and on the publish pulse (emitMetadataRefresh).getDraft,draftChanges) judged withisAgentDraftSurface— the ruleStudioAiDraftNotice's line uses (copilot or MCP build door ⇒ 「AI 的改动未发布」, violet with a sparkle; anything else or no recorded provenance ⇒ 「有未发布的改动」, amber). Not forked.MetadataClient.listResponsedroppedchangedAt; it now carries it (each entry parsed with the spec's own rule; absence stays absence).listunchanged;listandlistResponseshare one in-flight GET (measured in the browser: one/meta/dashboardrequest per list load).listChangedAt.ts(cell value, comparison, read hook),listDraftMarks.ts(ledger match + AI judgement + hook),ListChangedCell.tsx(the cell). Mounted inResourceListPage.tsxwith one header cell, one body cell and the reader member (15 lines) so the ObjectGrid re-host can move them as they are.StudioDesignSurface.tsxuntouched.Screenshots (real boot, showcase app, deviceScaleFactor 2)
Own backend on a random port, Console from this branch's
ui/via Vite. Data written for real: a live save ofshowcase_revenue_pulseintocom.example.showcase.custom; a person's draft (surface=studio) ofshowcase_ops_dashboard; an AI draft ofshowcase_chart_gallerysaved through the MCP build door (save_metadata_draftwith an OAuth token,draftChanges[].by = mcp).Both mark kinds and a time; code-shipped items empty:
Sorted newest first (
?sort=-changed), items without a time last:After publishing the AI draft: its mark is gone and its time appears at the top:
Tests
Run on head
3671d2304(after merging origin/main):pnpm --dir ui exec vitest run --maxWorkers=2over the four new test files,metadata-client.listRegistrations-12349,metadataListState-36896,useListScrollRestore-36896and everyResourceListPage.*test: Test Files 19 passed (19), Tests 130 passed (130).pnpm --filter @object-ui/data-objectstack --filter @object-ui/i18n --filter @object-ui/app-shell run type-check: exit 0 (all three scripts echoed).Ablations (one-off, through scripts/ablation-replace.mjs, restored and blob-verified)
listChangedAt.tsmissing-last flipped (ta === null ? 1 : -1→-1 : 1): 4 red — both sort-direction cases, the unparseable-time case, and the page's?sort=-changedorder. Restored blob 8212f4df4d0a = before.listDraftMarks.tsAI judgement removed (some(() => false)): 2 red — the copilot/MCP case and the page's AI-vs-person mark. Restored blob 9d8aae37116f = before.Acceptance notes
changedAtis that row's time); the mark shows instead, and the time moves on publish (screenshot 3). A live save moves the time at once (showcase_revenue_pulse).Verification
Two-minute check: open
/studio/PACKAGE/metadata/dashboardfor a package with one stored item and one drafted item — the 修改时间 column shows the stored item's time, the drafted one carries 「有未发布的改动」; pick 「修改时间(最新在前)」 and the stored item moves to the top.Read first (by risk):
listDraftMarks.ts(ledger match across a base and its.custompair),metadataListState.ts(thechangedsort branch),metadata-client.ts(readChangedAt).Overlap:
ResourceListPage.tsxconflicts textually with the ObjectGrid swap's PR (#36978, head 1137895); declared in both claims — whichever lands second merges the other. Its list-row test selector was checked against this branch's new test ids (they do not start withmetadata-row-).🤖 Generated with Claude Code
https://claude.ai/code/session_01WGufzgNtKtppbRbXmHGH8x