Repository navigation
Description
What happens
On a phone, a list card whose object names its records with a formula name field shows the same values twice: once in the title and again in the subtitle line. The two slots the subtitle has are spent on fields the title already prints, so nothing else about the record (priority, account, owner, due date) reaches the card.
Observed on @objectstack/* 18.6.0, viewport 375×812, two objects of one app:
| Object | nameField (formula) |
View's first columns | Card title | Card subtitle |
|---|---|---|---|---|
| case | display_title = case_number - subject |
case_number, subject, status, priority, account, … |
CASE-00037 - Demo case 29 — critical problem |
CASE-00037 · Demo case 29 — critical problem |
| lead | display_title = full name - company |
name, company, status, … |
Mira Costa - Atlas Construction |
Mira Costa · Atlas Construction |
The desktop table of the same view is fine: it shows case_number, subject, priority, account… as separate columns and no display_title column at all.
Why
ui/packages/plugin-grid/src/ObjectGrid.tsx, buildMobileCardRenderer:
const titleCol = nameFieldKey !== undefined ? colMap.get(nameFieldKey) : displayColumns[0];
const titleKey = titleCol?.accessorKey ?? nameFieldKey;
// The body never repeats the title: it is every shown column but the one that titles the card
const bodyColumns = displayColumns.filter((c) => c !== titleCol);
...
const subtitleColumns = bodyColumns.filter((c) => c !== statusCol && c !== amountCol).slice(0, 2);Since objectui#13150 the title is the declared name field even when no column shows it. When that name field is a formula built from other fields, the view naturally shows the parts as its leading columns (a table has no use for the concatenation), so titleCol is undefined, nothing is filtered out of bodyColumns, and the first two body columns are exactly the parts the title is made of. The comment's promise, "the body never repeats the title", holds only when the name field is itself a shown column.
Expected
The subtitle skips columns whose fields the name field's formula is built from (the formula's field references are known from the object schema), and takes the next two shown columns instead. For the case list that gives CASE-00037 - Demo case 29 — critical problem / 紧急 · Polar Cargo.
Steps
- An object with
nameFieldpointing at a formula field that concatenates two other fields; a grid view whose first two columns are those two fields. - Open the list at a phone width.
- Each card's subtitle repeats the title's two values.
Activity
objectstack-fleet commentedon Nov 24, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: lands in
area:ux·domain:ui·priority:p1· Bug ·pm:queue.Rationale: the p1 grade is the filer's and stays as set. New area:ux cards go to repo:objectstack#4, per the maintainer's ruling of 2026-11-24T14:54Z 「新的 ux 交给 #4」.
objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
Claim: PM loop round 3 · 2026-11-24T15:35Z
Session:
session_01QSeKYpEsWWE9Y5YtSsDgqZAccount:
os-justinBranch:
claude/issue-37010-card-subtitle-formula-nameWorktree:
objectstack-issue-37010Domain:
domain:uiSeat:
repo:objectstack#4File surface:
ui/packages/plugin-grid/src/**(ObjectGrid.tsxbuildMobileCardRendererand a new test file),.changeset/37010-*.md(stop on breach; explain in the report)Container & model:
S,mode:subagent,model: default tier — no path-derived mandate (dispatch-gates --tier),effort: highClause-②: no
Metadata-protocol: none
Responsibility:
objectstack platform code — buildMobileCardRenderer filters only a shown name-field column out of the body, so a formula name field built from the leading columns repeats them in the subtitle (ObjectGrid.tsx:4408, :4441 on origin/main) | none | every phone user of a list whose object names records by a formula over shown columns; reached today on case and lead lists, as filedThread-read: 7136222111
Premise: holds (origin/main: bodyColumns = displayColumns.filter((c) => c !== titleCol) at ObjectGrid.tsx:4408)
Serial constraints cleared:
PR #36978 (seat 3, open) also edits ui/packages/plugin-grid/src/ObjectGrid.tsx (58 lines; row adornment, not the mobile card renderer). The dev runs scripts/pm/overlap-check.mjs before the first push and queues behind #36978 if it reports a conflictRouting: new
area:uxcards go to this seat, the maintainer in this seat's session: 「ux 新卡归你」.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
os-dev-report
{ "issue": 37010, "status": "blocked", "branch": "claude/issue-37010-card-subtitle-formula-name", "pr": null, "session": "session_01QSeKYpEsWWE9Y5YtSsDgqZ", "premise_still_valid": true, "summary": "Implemented and verified locally; NOT pushed. The fix is two commits on claude/issue-37010-card-subtitle-formula-name (head 84c9eec38eb, base a73edb3cd78), only in the dev container's worktree objectstack-issue-37010. git push was refused twice by the session's auto-mode permission classifier (Destructive or Unwanted Actions), so there is no remote branch and no draft PR. Unblock: allow the push, or have the seat push the branch. Fix: buildMobileCardRenderer in ObjectGrid.tsx now skips, in the subtitle, every shown column whose field a formula name field reads, and takes the next shown columns. The reads come from collectPredicateFieldRefs in @object-ui/core, already a plugin-grid dependency. A name field that is not a formula is unchanged. Changeset: @object-ui/plugin-grid patch.", "tests": "New ui/packages/plugin-grid/src/__tests__/phoneCardFormulaTitle-37010.test.tsx (3 cases, real ObjectGrid card renderer at 375px) at 84c9eec38eb: 3/3 passed. Ablation (anchor-checked, ablation-replace.mjs) removing the titleReads filter: 2 failed, 1 passed (control); Received 'CASE-00037 · Demo case 29 — critical problem', the filed defect; restore blob == HEAD 5fbd40d54cf4, git diff HEAD empty. The first ablation attempt was a no-op the tool refused (replacement was a substring of the anchor), so no test ran; redone with a distinct marker. Package @object-ui/plugin-grid: type-check (tsc --noEmit and tsconfig.test.json) passed, vitest 311 files / 2763 tests passed, lock VERDICT command-exit 0.", "gates": "dispatch-gates --commands at 84c9eec38eb: 39 commands. First pass: 37 exit 0. 'pnpm --dir ui exec vitest run scripts/' exit 1: 4 tests in 3 files hit the 15000ms timeout under box contention, none touch this diff. 'pnpm check:type-check-debt' exit 3: lock queue-timeout, NOT MEASURED. Under the lock, re-runs: check:type-check-debt exit 0; the 3 timed-out files exit 0 (231/231). --ran on the raw first-pass codes: 39 derived, 38 run, 1 NOT-MEASURED, 0 UNRUN. overlap-check: VERDICT clean exit 0 (origin/main and PR #36978 both merge cleanly). No PR check-runs: nothing was pushed.", "dogfood_battery": "n/a — no bang in the title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "1 — this comment (post-stamped.mjs, issue comment on #37010); the two git push attempts were refused before any network write", "open_questions": [ { "question": "Which reader names a formula name field's reads for the card subtitle?", "options": ["A keep collectPredicateFieldRefs (@object-ui/core, already a plugin-grid dependency; regex-based, used by this grid's projection for the same question; inside the claimed file surface)", "B add @objectstack/formula to plugin-grid's package.json and use analyzeRelationshipTraversals (the AST member reader planObjectFormulas uses); needs package.json and pnpm-lock.yaml, outside the claimed surface"], "recommendation": "A, because the two readers differ only on spellings a name formula does not use (a record.FIELD inside a string literal, a data.FIELD root), either difference can only skip a column, and B breaches the claim's file surface for no visible change. The dispatch said not to regex the expression if a parser exists; this conflict is stated here, not settled silently." } ], "security_findings": "none", "out_of_scope_findings": [] }os-justin commentedon Nov 24, 2026
os-closed-card-sweep — machine-findable marker for this generated comment.
Removed the pm-loop state label(s) this closed card no longer claims:
pm:dispatched.ebb4713c06, merged intomain.bug,priority:p1,domain:ui,area:ux— ownership, priority and outcome are not state claims.A state label claims work is in flight. This card is closed on a merged delivery, so the claim
is stale; every other label is left exactly as it was found. Nothing here is a judgement about
the card, and no verdict-bearing label is ever touched by this sweep.
seat repo:objectstack#4 close-out sweep
Generated by Claude Code
Generated by Claude Code