Skip to content

fix(console): record loading shows no internal id in the drawer title and no false 0 related count - #36812

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-36235-record-loading-placeholders
Nov 24, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-36235-record-loading-placeholders

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

repo:objectstack#3 · os-support-ai · session_01WGufziG2t1d9cfRQJDrHkB

Fixes #36235

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户在网速慢时打开记录:侧边抽屉的标题先显示占位条,不再闪出一串内部编号;相关列表在数量读到之前不显示数字,不再先显示一个假的「0」。
  • 属于记录页体验收尾,替在慢网络下看记录的所有用户解决误导显示。
  • 出错时最坏是标题或数字多停留一会儿占位,数据本身不受影响,可直接撤回。
  • 无。

What changes

Premise measured on 844218f, by half:

  • Full record page — already right on main. The breadcrumb's record crumb names the record by its object label until the read lands (objectstack#35412, recordCrumbName), and the existing pin the breadcrumb while the record is read (objectstack#35412) in RecordDetailView.topBar-27524.test.tsx asserts exactly this card's full-page clause ("no #"). The page body is SkeletonDetail while loading. No code change here. The other #shortId spellings the card names are not load states: originFrom / the phone back label / the trail crumbs read parent.t from 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 shell AppHeader record crumb (routeTitle = … || #shortId) is not mounted on a record route at any width (showHeader is off: desktop draws no top bar, a phone's record page owns its bar), so it is not drawn.
  • Record drawer / side preview — changed. The bar's record row drew titleOf(current) = #<shortId> until the record header claimed the bar, i.e. for the whole read. It now draws a Skeleton placeholder (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, from recordCrumbName); a read in flight reports nothing. Ancestor crumbs keep titleOf (they were drawn before, so they reported).
  • Related list count badge — changed. recordCount fell back to relatedData.length (0) while the first read was in flight, so both the full list header badge and the compact card's data-related-card-count chip read 「0」. A new countPending (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 use null until counted — unchanged.

Tests

  • New RelatedList.countPending-36235.test.tsx: list header draws no badge while find is pending, then 2; CONTROL empty read draws 0; compact uncounted card draws no chip while pending, then 2.
  • New describe the pane's bar while the record is read (objectstack#36235) in RecordDetailView.topBar-27524.test.tsx (real RecordStackDrawer + embedded RecordDetailView, deferred findOne): placeholder present, no [data-record-drawer-title], bar text has no #r-1; after the read the header H1 names the record.
  • Three existing pins that asserted the in-flight row read #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)
  • Touched files: Test Files 4 passed (4) · Tests 36 passed (36), lock VERDICT command-exit 0.
  • packages/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 (868). The rest of app-shell (≈2.4k files) is declared to CI's Test UI shards.
  • Ablation A — countPending forced false (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 HEAD empty.
  • Ablation B — drawer row back to 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.
  • Full-page clause: covered by the existing objectstack#35412 pin (no code change on that path).

Acceptance notes

  • Browser reach (throttled network, page + drawer): NOT MEASURED at PR open — the reading goes in the os-dev-report comment on this PR.
  • Local type-check for both packages: NOT MEASURED (needs the @object-ui/* dist closure, not built here); declared to CI Type Check UI.
  • Deep-linked drawer ancestors that were never drawn still show #shortId in 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.tsx countPending (risk: a refetch with zero rows hides the badge briefly), recordDrawerStack.tsx record row, RecordDetailView.tsx paneRecordTitle effect (moved below recordCrumbName, above every early return).

🤖 Generated with Claude Code

https://claude.ai/code/session_01WGufziG2t1d9cfRQJDrHkB


Generated by Claude Code

@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 24, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufziG2t1d9cfRQJDrHkB
os-dev-report

{
 "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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8

席位核对 — REWORK · repo:objectstack#3 · head a90612d · 2026-11-24T02:27Z

L1: REWORK
Head-sha: a90612daa3a4ba6236d206a65d1b7afc4cd1c26a
Reviewer: L1-a (area ux-C, card #36235, claim 7118537288, os-dev-report 7120060153)

Read

  • l1-face.mjs --pr 36812 at this head: CLEAN, 13 items. Draft, base main, Fixes #36235, no other card bound, changeset for @object-ui/plugin-detail plus @object-ui/console. @object-ui/app-shell is private: true and ships inside the console. Clause-②: no / Metadata-protocol: none match the claim. Checks: 42 success / 13 expected skip / 0 failed, Lint & Repo Gates and TypeScript Type Check success.
  • Scope: all 8 files sit inside the claim's surface (RecordDetailView.tsx, recordDrawerStack.tsx, RelatedList.tsx, their tests, changeset). The three existing pins that asserted the in-flight #L-1 / #T-1 assert the card's defect, so flipping them is in scope. No contract face, no governed path.
  • Premise split, checked on main: the full page's crumb already names the object while the read is in flight (objectstack#35412 recordCrumbName, existing pin), and the body is SkeletonDetail. The drawer's record row (titleOf(current) → #shortId) and the related-list badge (relatedData.length = 0 during the first read) are the live halves, and the PR changes exactly those two.
  • Changeset read sentence by sentence: true at this head. No new UI string: the pending tooltip reuses detail.viewAll, which exists in en.ts and zh-Hans.ts.
  • Related-list half: countPending = no count answers, first read in flight, no rows, no windowed total. A compact card out of view stays pending because loading starts true (useState(() => !!api && !dataProvided)). An empty read still draws 0, pinned by the CONTROL case. Ablation A turns both pending cases red with the CONTROL green.
  • Tests: real commands and output, two ablations, both restored to blob == HEAD. Browser reach was not measured, which the dev declared; the jsdom pins mount the real RecordStackDrawer with an embedded RecordDetailView and a deferred findOne.

Findings

  • S1 (drawer title never settles when the read does not land). recordDrawerStack.tsx now draws the Skeleton (data-record-drawer-title-pending) whenever knownTitleOf(current) is empty. Only RecordDetailView's paneRecordTitle effect fills it: recordTitle || (holdsRouteRecord && recordCrumbName ? recordCrumbName : undefined). reportTitle drops an undefined title (if (!currentObject || !title) return;). So a drawer whose read ends without a record never gets a title: pageRecordStatus missing, forbidden, accessEnded or failed, and also the object-not-found and named-page-refused branches. In all of these holdsRouteRecord is false, and a root level opened from a list row carries no title. The body draws "Record not found" (or forbidden/failed) while the bar's title shimmers as if still loading, with no end. On main that row read #<shortId>. The card asks for a placeholder during load; this round leaves one after the load has ended. Fix: once the page has settled without the record, report a settled name, for example the same object label recordCrumbName already resolves when the page does not hold the record (the page's crumb uses it today). Alternatively, draw the placeholder only while the page reports a read in flight. Pin it with a drawer test where findOne answers "no record": after the read settles there is no [data-record-drawer-title-pending] and no #<id> in the bar.

  • N1 (disclosed in the body). A list that already shows 0 and refetches (for example after a row is added elsewhere) hides its badge for the length of the refetch, because relatedData.length === 0 && loading. A brief flicker, no false number. Small user effect, for the seat's report.

  • N2. The browser reach reading (throttled network, page and drawer) was not taken. The jsdom pins cover both halves through the real components, and the S1 round is a good moment to take it if the verify lock is free.

  • N3 (disclosed). Trail ancestors opened by a deep link and never drawn keep #shortId. They are never read, so this is not a load state, and it sits outside the card. No user effect worth a card.

Delta read owed on the next head: S1 plus a check that nothing else moved.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufziG2t1d9cfRQJDrHkB
os-dev-report

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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8

席位核对 — ACCEPT · repo:objectstack#3 · head f70855a · 2026-11-24T03:27Z

L1: ACCEPT
Head-sha: f70855a6310a16f5387f72b55607625f820750a0
Reviewer: L1-a, delta read on REWORK 7120177069 (head a90612da), delta report 7121083061.

Delta read

  • git diff a90612da f70855a6: three files, all inside the claim's surface: RecordDetailView.tsx +15/−1, its topBar-27524 test +44/−2, and the changeset (one sentence). Main was not merged, so everything read at a90612da (the related-list half, the drawer row, the flipped pins) stands.
  • S1: closed. settledWithoutRecord (not loading, and the object unknown, the named page refused, the record deleted, or pageRecordStatus missing / accessEnded / forbidden / failed) lets paneRecordTitle report recordCrumbName. When the page does not hold the record, that is the object's label (servedObjectLabel), or the name for an unknown object, the same name the page's crumb draws. The in-flight case is untouched: during the read none of those states holds, and the existing pending pin still asserts the placeholder. Four new cases (not found, 403, 500, unknown object) each assert no pending placeholder, a non-empty row and no #r-1, and ablation C turns all four red.
  • The changeset's added clause ("a read that ends without a record — not found, refused, failed — names the object instead") is true of the code.
  • l1-face.mjs --pr 36812 at this head: CLEAN. Checks: 42 success / 13 expected skip / 0 failed, Lint & Repo Gates and TypeScript Type Check success.

Open

Nits 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. Fixes #36235 closes the card on merge; then remove pm:dispatched with the close-out.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufziG2t1d9cfRQJDrHkB

Landing: 2026-11-24T03:28Z · area ux-C · head f70855a6310a16f5387f72b55607625f820750a0

Probe Reading
L1 席位核对 ACCEPT at this head, comment 7121112724 (REWORK 7120177069 S1 closed; only nits open: N1 refetch badge flicker, N2 browser reach, N3 deep-link ancestors — reported to the seat)
L2 not owed: Clause-②: no, Metadata-protocol: none, no packages/spec/src/**, no governed path
Checks 42 success, 13 skipped, 0 failed on this head
mergeable_state clean
check-governed-merges NOT governed (0 of 8 paths), 290 changed lines ≤ 3000
landing-k CAN'T ANSWER (UI-only, Test Core skipped); K read via merge-base: git rev-list --count --first-parent 844218f5..origin/main = 12 (< 15), no translations/ file in the PR

State: ready + auto-merge (merge queue).

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 24, 2026 03:29
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 0d2bb8d Nov 24, 2026
56 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-36235-record-loading-placeholders branch November 24, 2026 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

record page: while it loads, the breadcrumb and title show the internal id (#xxxxxxxx) and related-list counts show 0 (split from #35476 item 4)

1 participant