Repository navigation
fix(plugin-grid): a phone list card never repeats a formula title in its subtitle - #37079
Merged
objectstack-fleet[bot] merged 2 commits intoNov 24, 2026
Merged
Conversation
…name field reads A list card whose object names its records with a formula name field built from shown columns repeated those columns in its subtitle. The subtitle now skips every shown column whose field the name field's formula reads and takes the next shown columns instead; a name field that is not a formula is unchanged. Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ Co-authored-by: Claude <noreply@anthropic.com>
…ield; add the changeset Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
objectstack-fleet
Bot
deleted the
claude/issue-37010-card-subtitle-formula-name
branch
November 24, 2026 19:48
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #37010
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
buildMobileCardRendererinui/packages/plugin-grid/src/ObjectGrid.tsx: when the object's declared name field is aformula, the card's subtitle skips every shown column whose field the formula reads, and takes the next shown columns instead. The reads are the formula'srecord.FIELDreferences ascollectPredicateFieldRefs(@object-ui/core) names them, the same reader this grid's projection already uses for a CEL expression's reads (objectGridQueryInputs.ts); a read through a lookup (record.account.name) names the lookup, so its column is skipped too. This holds whether or not the formula column itself is shown. A name field that is not a formula reads nothing, so its card is unchanged. Status chip and amount line are untouched.Case list, as filed: title
CASE-00037 - Demo case 29 — critical problem, subtitle紧急 · Polar Cargo(wasCASE-00037 · Demo case 29 — critical problem).Changeset:
.changeset/37010-phone-card-formula-title-subtitle.md,@object-ui/plugin-gridpatch.Read first (by risk):
ObjectGrid.tsx, thetitleReadsblock and thesubtitleColumnsfilter inbuildMobileCardRenderer.__tests__/phoneCardFormulaTitle-37010.test.tsx.Two-minute check:
cd ui/packages/plugin-grid && pnpm exec vitest run --root ../.. packages/plugin-grid/src/__tests__/phoneCardFormulaTitle-37010.test.tsxshows 3 passed.Tests
New file
ui/packages/plugin-grid/src/__tests__/phoneCardFormulaTitle-37010.test.tsx, through the realObjectGridcard renderer at 375 px with the object schema served by the data source:紧急 · Polar Cargo;subject) keepsCASE-00037 · 紧急.Acceptance notes
analyzeRelationshipTraversals(@objectstack/formula), whichplanObjectFormulasin@object-ui/coreuses.@object-ui/plugin-griddoes not depend on@objectstack/formula, and adding it (itspackage.jsonandpnpm-lock.yaml) is outside this card's claimed file surface. This PR usescollectPredicateFieldRefs, already a dependency of this grid for the same question. The two readers differ only on spellings a name formula does not use in practice (arecord.FIELDinside a string literal, adata.FIELDroot); either difference can only skip a column, never draw a wrong value.collectPredicateFieldRefs, the reader this grid's projection already uses, with no new dependency.ObjectGrid.tsx):scripts/pm/overlap-check.mjsVERDICT clean exit 0, against origin/main and against feat(app-shell): every metadata list on ObjectGrid; 新建 on a read-only base lands in its .custom pair #36978.Verification
All readings at head
84c9eec38eb.New test file
phoneCardFormulaTitle-37010.test.tsx: Test Files 1 passed, Tests 3 passed.Ablation (one run)
scripts/ablation-replace.mjsreplaced the anchor!titleReads.has(c.accessorKey)with a marker. Anchor count went 1 to 0, blob5fbd40d54cf4to52c21da6b1a0. Result: 2 failed and 1 passed (the control). Both failures receivedCASE-00037 · Demo case 29 — critical problem, which is the filed defect. After restore the blob equals the HEAD blob (5fbd40d54cf4) andgit diff HEADis empty. The first attempt was a no-op that the tool refused (the replacement was a substring of the anchor), so no test ran then. It was redone with a distinct marker.Package @object-ui/plugin-grid
type-check(tsc --noEmit && tsc -p tsconfig.test.json) passed. vitest: Test Files 311 passed, Tests 2763 passed.Derived gates
dispatch-gates --commandsderived 39 commands. On the first pass 37 exited 0.pnpm --dir ui exec vitest run scripts/exited 1. Four tests in three files hit the 15000 ms timeout while the box was contended, and none of them touch this diff. Those three files were re-run under the lock: 231/231 passed.pnpm check:type-check-debtexited 3 (lock queue-timeout, NOT MEASURED). The re-run under the lock exited 0.--ranreconciliation on the first-pass codes: 39 derived, 38 run, 1 NOT-MEASURED, 0 UNRUN.Generated by Claude Code