Repository navigation
fix(console): record loading shows no internal id in the drawer title and no false 0 related count - #36812
Conversation
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziG2t1d9cfRQJDrHkB
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziG2t1d9cfRQJDrHkB
|
repo:objectstack#3 · os-support-ai · session_01WGufziG2t1d9cfRQJDrHkB {
"issue": 36235,
"status": "done",
"branch": "claude/issue-36235-record-loading-placeholders",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36812",
"session": "session_01WGufziG2t1d9cfRQJDrHkB",
"premise_still_valid": true,
"summary": "Premise holds in part on 844218f5. Full record page: already correct on main (objectstack#35412 recordCrumbName names the record by its object label while the read is in flight, pinned by the existing 'the breadcrumb while the record is read (objectstack#35412)' describe); the other #shortId spellings (originFrom, phone back label, trail crumbs) read the URL trail, not a load state, and the AppHeader record crumb is not mounted on record routes, so none changed. Drawer/side preview: the bar's record row drew #shortId for the whole read; it now draws a Skeleton placeholder until a title is reported, and embedded RecordDetailView reports the short id itself only once it holds a record with no name (paneRecordTitle), keeping the loaded fallback. Related lists: the list header badge and the compact card count chip read 0 while the first read was in flight; a countPending guard now draws nothing until the count is known (an empty read still draws 0). Size S held.",
"tests": "Touched files: Test Files 4 passed (4), Tests 36 passed (36), lock VERDICT command-exit 0. plugin-detail whole package: Test Files 417 passed | 1 skipped (418), Tests 3916 passed | 18 skipped. app-shell record surface (views/RecordDetailView*, __tests__/recordDrawer*, ObjectView.recordDrawer*): Test Files 103 passed (103), Tests 868 passed; rest of app-shell declared to CI Test UI (16/16 green). Ablation A (ablation-replace, countPending forced false, anchor 1->0, blob 6ecd77e1->cef57eaa): 2 failed | 1 passed, CONTROL green; restored blob == HEAD, git diff HEAD empty. Ablation B (drawer row back to titleOf(current), anchor 1->0, blob 92e94a22->c7dafb92): 4 failed | 29 passed; restored blob == HEAD. Source-resolved suites (relative imports, no dist), so no rebuild leg. Full-page clause: existing objectstack#35412 pin, no code change on that path, no ablation run for it. Browser reach: NOT MEASURED, reason: dev prereqs require a full workspace build and the shared verify lock was held ~30 min by a sibling run (exit 99 on the build); jsdom pins mount the real RecordStackDrawer + embedded RecordDetailView with a deferred findOne instead.",
"gates": "Local derived list (dispatch-gates --commands at a90612da): 36 of 38 run, each exit 0 captured before any pipe; check:type-check-debt NOT MEASURED locally (300 s timeout, exit 124), 'pnpm --dir ui exec vitest run scripts/' not run locally (lock contention); --ran reconciliation: 38 derived, 36 run, 2 UNRUN (those two), both covered by CI. Local type-check of both packages NOT MEASURED (@object-ui dist closure not built). CI on a90612da: all completed success, incl. Type Check UI, Type Check · debt ledger, Type Check · workspace, Test UI 1-16/16, Build & E2E UI, Live E2E UI, Lint UI, Lint · ESLint, Lint · PM dispatch-gates, Check Changeset, PR-body guards, Dogfood Regression Gate; Test Core shards skipped by selector.",
"dogfood_battery": "n/a — no ! in the PR title and Clause-②: no without a (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls, PR #36812, read-back identical 6040 bytes); post-stamped os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/36812/comments)",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed — AppHeader routeTitle falls back to #shortId on a record path but the header is not mounted on record routes at any width (dead branch)",
"carrier: none · noted, not filed — drawer trail ancestors opened by a deep link and never drawn keep #shortId (never loaded, not a load state)"
],
"files_changed": [
".changeset/36235-record-loading-placeholders.md",
"ui/packages/app-shell/src/views/RecordDetailView.tsx",
"ui/packages/app-shell/src/views/recordDrawerStack.tsx",
"ui/packages/plugin-detail/src/RelatedList.tsx",
"ui/packages/app-shell/src/views/RecordDetailView.topBar-27524.test.tsx",
"ui/packages/app-shell/src/views/__tests__/recordDrawerStack-26679.test.tsx",
"ui/packages/app-shell/src/views/__tests__/recordDrawerStack.rootStepper-26679.test.tsx",
"ui/packages/plugin-detail/src/__tests__/RelatedList.countPending-36235.test.tsx"
],
"line_budget": "+216 / -14 over 8 files (source +35/-10, tests +170/-4, changeset +11); under the 3000 human-merge threshold",
"deviations": [
"Browser reach reading not taken (reason in tests).",
"Local type-check and two derived families declared to CI (CI green).",
"New pane pin added to RecordDetailView.topBar-27524.test.tsx beside the objectstack#35412 sibling pin (reuses its PaneHost), not to RecordDetailView.harness.test.tsx."
],
"Dev-effort": "medium",
"Rounds": 1
}Generated by Claude Code |
|
repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8 席位核对 — REWORK · repo:objectstack#3 · head a90612d · 2026-11-24T02:27ZL1: REWORK Read
Findings
Delta read owed on the next head: S1 plus a check that nothing else moved. |
…ecord Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziG2t1d9cfRQJDrHkB
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziG2t1d9cfRQJDrHkB
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziG2t1d9cfRQJDrHkB
|
repo:objectstack#3 · os-support-ai · session_01WGufziG2t1d9cfRQJDrHkB Round 2 delta (S1 of 7120177069), head f70855a. {
"issue": 36235,
"status": "done",
"branch": "claude/issue-36235-record-loading-placeholders",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36812",
"session": "session_01WGufziG2t1d9cfRQJDrHkB",
"premise_still_valid": true,
"summary": "Round 2 closes L1 S1 (comment 7120177069). In round 1 the drawer title placeholder never ended when the read finished without a record. RecordDetailView now computes settledWithoutRecord: not isLoading, and one of these holds: objectDef unknown, named page refused, recordDeleted, or pageRecordStatus is missing, accessEnded, forbidden or failed. In those states paneRecordTitle reports recordCrumbName, which is the object label (or the object name when the object is unknown), so the bar's placeholder ends with the read and no #id is drawn. The related-list half is unchanged. Nits N1-N3 are left out, as directed.",
"tests": "Round 2 at f70855a6. New describe 'the pane's bar once the read settles without a record (objectstack#36235)' in RecordDetailView.topBar-27524.test.tsx, using the real RecordStackDrawer with an embedded RecordDetailView. Pinned cases: not found (findOne -> null, record-not-found), forbidden (httpStatus 403, record-access-denied), failed (httpStatus 500, record-load-failed), and an unknown object (object-not-found). In each, after the state draws there is no [data-record-drawer-title-pending], the row reads 'Lead' (non-empty for the unknown object), and the bar has no #r-1. Shared paths: missing and accessEnded are one null-answer branch of the read; recordDeleted and the named page refused go through the same settledWithoutRecord -> recordCrumbName expression. Those three are not pinned separately. Runs: record surface plus countPending, Test Files 104 passed (104), Tests 875 passed (875), at 0356d9ea, lock VERDICT command-exit 0. topBar file at f70855a6 (type annotation only): Test Files 1 passed, Tests 19 passed. Ablation C (ablation-replace, settledWithoutRecord forced false, anchor 1->0, blob 22d0b1c1->bbe2342c): 4 failed | 15 passed, all four new cases red; restored, blob == HEAD, git diff HEAD empty. Ablations A and B are from round 1. Browser reach: NOT MEASURED (N2, left out as directed).",
"gates": "Round 2 local, exit 0 captured before any pipe: check-empty-changeset, check-changeset-no-major, check-adr-0087-registration (all --base origin/main), check:nul-bytes, check:cross-package-test-inputs, check:test-source-alias. overlap-check VERDICT clean exit 0 on each push except the first round-2 push (6a251bf8), where it ran just after the push; see deviations. CI: at 0356d9ea, Type Check UI failed with TS7024 on the it.each cases ('as const' tuple inference). Fixed at f70855a6 with an explicit tuple type. CI at f70855a6: 42 success, 13 skipped, 0 failed, including Type Check UI, Test UI 1-16/16, Build & E2E UI, Live E2E UI, Lint UI and Type Check · debt ledger. mergeable_state unknown at read time (not dirty).",
"dogfood_battery": "n/a — no ! in the PR title and Clause-②: no without a (narrowing) arm",
"mcp_calls": "0",
"api_writes": "3 in total — round 1: relay pr_create (POST /repos/objectstack-ai/objectstack/pulls) and the os-dev-report comment 7120060153 (POST .../issues/36812/comments); round 2: this delta comment (POST .../issues/36812/comments)",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed — AppHeader routeTitle falls back to #shortId on a record path but the header is not mounted on record routes at any width (dead branch)",
"carrier: none · noted, not filed — drawer trail ancestors opened by a deep link and never drawn keep #shortId (never loaded, not a load state)"
],
"files_changed": [
".changeset/36235-record-loading-placeholders.md",
"ui/packages/app-shell/src/views/RecordDetailView.tsx",
"ui/packages/app-shell/src/views/recordDrawerStack.tsx",
"ui/packages/plugin-detail/src/RelatedList.tsx",
"ui/packages/app-shell/src/views/RecordDetailView.topBar-27524.test.tsx",
"ui/packages/app-shell/src/views/__tests__/recordDrawerStack-26679.test.tsx",
"ui/packages/app-shell/src/views/__tests__/recordDrawerStack.rootStepper-26679.test.tsx",
"ui/packages/plugin-detail/src/__tests__/RelatedList.countPending-36235.test.tsx"
],
"line_budget": "round 2 delta: RecordDetailView.tsx +15/-1, RecordDetailView.topBar-27524.test.tsx +44/-2, changeset +1/-1",
"deviations": [
"On the first round-2 push (6a251bf8), overlap-check ran right after the push instead of before it: VERDICT clean exit 0, 0 PR heads. Every later push ran it first.",
"Round-2 local type-check NOT MEASURED (@object-ui dist closure not built); CI Type Check UI caught TS7024 at 0356d9ea, fixed at f70855a6 and now green.",
"The changeset sentence about the drawer title was extended to name the settled case (this PR's own changeset, not one already on main).",
"Browser reach reading not taken (reason in tests)."
],
"Dev-effort": "medium",
"Rounds": 2,
"head": "f70855a6310a16f5387f72b55607625f820750a0"
}Generated by Claude Code |
|
repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8 席位核对 — ACCEPT · repo:objectstack#3 · head f70855a · 2026-11-24T03:27ZL1: ACCEPT Delta read
OpenNits only: N1 (the 0 badge hides during a refetch, disclosed), N2 (browser reach not taken) and N3 (deep-link ancestors), as recorded in 7120177069. N1 has a small user effect, for the seat's report. Landing items for the area: not governed. |
|
repo:objectstack#3 · os-support-ai · session_01WGufziG2t1d9cfRQJDrHkB Landing: 2026-11-24T03:28Z · area ux-C · head
State: ready + auto-merge (merge queue). |
Requested by Yibo Wang · project thread
repo:objectstack#3 · os-support-ai · session_01WGufziG2t1d9cfRQJDrHkB
Fixes #36235
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Premise measured on 844218f, by half:
recordCrumbName), and the existing pinthe breadcrumb while the record is read (objectstack#35412)inRecordDetailView.topBar-27524.test.tsxasserts exactly this card's full-page clause ("no#"). The page body isSkeletonDetailwhile loading. No code change here. The other#shortIdspellings the card names are not load states:originFrom/ the phone back label / the trail crumbs readparent.tfrom the URL trail (?from=), which does not wait on any read — the short id there is the fallback for a trail entry written without a title, kept. The shellAppHeaderrecord crumb (routeTitle = … || #shortId) is not mounted on a record route at any width (showHeaderis off: desktop draws no top bar, a phone's record page owns its bar), so it is not drawn.titleOf(current)=#<shortId>until the record header claimed the bar, i.e. for the whole read. It now draws aSkeletonplaceholder (data-record-drawer-title-pending) until it has a title. To keep the loaded-record-with-no-name case,RecordDetailView(embedded) now reports the short id itself once it holds the record and has nothing to name it by (paneRecordTitle, fromrecordCrumbName); a read in flight reports nothing. Ancestor crumbs keeptitleOf(they were drawn before, so they reported).recordCountfell back torelatedData.length(0) while the first read was in flight, so both the full list header badge and the compact card'sdata-related-card-countchip read 「0」. A newcountPending(no count answers, first read in flight, no rows yet, no windowed total) draws no badge/chip; the compact card's tooltip uses the plain "View all" meanwhile. A list whose read lands empty still draws 0. The record tab badges (RecordPageColumns) already usenulluntil counted — unchanged.Tests
RelatedList.countPending-36235.test.tsx: list header draws no badge whilefindis pending, then2; CONTROL empty read draws0; compact uncounted card draws no chip while pending, then2.the pane's bar while the record is read (objectstack#36235)inRecordDetailView.topBar-27524.test.tsx(realRecordStackDrawer+ embeddedRecordDetailView, deferredfindOne): placeholder present, no[data-record-drawer-title], bar text has no#r-1; after the read the header H1 names the record.#L-1/#T-1(recordDrawerStack-26679,recordDrawerStack.rootStepper-26679) now assert the placeholder — the old assertion was this card's defect.Runs (head 05f7dfd code; a90612d adds the changeset only)
Test Files 4 passed (4) · Tests 36 passed (36), lockVERDICT command-exit 0.packages/plugin-detail/whole package:Test Files 417 passed | 1 skipped (418) · Tests 3916 passed | 18 skipped.views/RecordDetailView*,__tests__/recordDrawer*,ObjectView.recordDrawer*):Test Files 103 passed (103) · Tests 868 passed (868). The rest of app-shell (≈2.4k files) is declared to CI's Test UI shards.countPendingforcedfalse(ablation-replace, anchor 1→0, blob 6ecd77e1→cef57eaa):2 failed | 1 passed— both pending cases red, the empty-read CONTROL green; restored, blob == HEAD,git diff HEADempty.titleOf(current)(anchor 1→0, blob 92e94a22→c7dafb92):4 failed | 29 passed— the new pane pin and the three updated pins red; restored, blob == HEAD.Acceptance notes
type-checkfor both packages: NOT MEASURED (needs the@object-ui/*dist closure, not built here); declared to CIType Check UI.#shortIdin the trail (they never load at all — not a load state; noted, not filed).Verification
Two minutes: open any record with related lists in DevTools "Slow 3G", from a list (drawer) and by URL (page). Expect a grey bar where the drawer title goes, then the name; related list headers show no number until the rows arrive.
Read first:
RelatedList.tsxcountPending(risk: a refetch with zero rows hides the badge briefly),recordDrawerStack.tsxrecord row,RecordDetailView.tsxpaneRecordTitleeffect (moved belowrecordCrumbName, above every early return).🤖 Generated with Claude Code
https://claude.ai/code/session_01WGufziG2t1d9cfRQJDrHkB
Generated by Claude Code