Repository navigation
fix(plugin-detail): a long text summary roll-up wraps on the record page - #35269
Merged
Merged
Conversation
SummaryField's read display takes the theme's text-foreground token in place of a fixed text-gray-700, and the record details row reads a summary through it, as it reads a formula through FormulaField. The grid row keeps the one-line cell. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ Final head for review · area ux-2 · 2026-11-19T01:17Z |
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对 — ACCEPT (L1-a) · repo:objectstack#5 · head
|
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ Landing · area ux-2 · 2026-11-19T01:20Z
State: draft → ready + auto-merge (merge queue). #34182 closes on merge via |
This was referenced Nov 19, 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.
Requested by Bill · project thread
Fixes #34182
Clause-②: no
Metadata-protocol: none
维护者速读
SummaryField绘制,长文本汇总完整显示并自动换行;SummaryField的文字颜色从写死的灰色改为主题前景色。ui/packages/plugin-detail/src/DetailSection.tsx(新增的summary分支,紧挨formula分支);ui/packages/fields/src/widgets/SummaryField.tsx(颜色类)。pnpm --dir ui exec vitest run packages/plugin-detail/src/renderers/__tests__/record-details.textReadWraps-25897.test.tsx packages/fields/src/__tests__/summaryFaces.numberFace-11752.test.tsx,预期 2 个文件、143 个测试全部通过。What changes
SummaryField's read display takes the theme tokentext-foregroundin place of the fixedtext-gray-700, so a roll-up follows dark mode.text-foregroundis the token the record page's value row itself sets. The sibling read faces (FormulaField,CurrencyField,NumberField) set no colour and inherit it.DetailSectionreads asummarythroughSummaryField, beside theformulabranch that reads throughFormulaField. It matches on renderer identity and type, so a host that registered its ownsummaryface keeps it. The raw value goes in and the record goes in asdependentValues, which arecord-mode currency needs.FormulaCellRenderer(one line, the whole value intitle). The highlights strip is untouched.Tests
The new pins go into the existing shared harness files as top-level
describeblocks. No new file is added.record-details.textReadWraps-25897.test.tsx,objectstack#34182blocks:SummaryFieldrenders, shows the whole value, has no one-line utility between the text and the row, and has notitle;getCellRenderer('summary')is stillFormulaCellRenderer, which still renderstruncatewith the whole value astitle; a number summary still reads1,234.50; a host's ownsummaryface is kept.summaryFaces.numberFace-11752.test.tsx: the read display carriestext-foregroundand no fixedtext-gray-*/slate/zinc/neutral/stoneshade, for a number value and for a text value.Acceptance notes
AutoNumberField's read display also hard-codestext-gray-700with nodark:variant. This was only read in the code: on the record pageauto_numberreads throughTextField, so the defect is limited to the form widget. It is outside this card's file surface, so this PR does not change it, and no card is filed.text-foreground, the token on the record row's value container, so the face carries a dark-mode colour in any container.Verification
Ablation (two legs, both red, restored by hash)
Both mutations went through
scripts/ablation-replace.mjs(each anchor hit 1 time, then 0 times; the blob changed). The@object-ui/fieldsspecifier is aliased tosrcinui/vitest.config.mts, so nodistrebuild sits between a mutation and the run.DetailSection.tsxis switched off (typesummary-ablated). Result:Tests 2 failed | 141 passed (143). The two failures are the desktop and phone cases "a summary cell holds the read display SummaryField renders, in full, and wraps". All controls stay green.text-foregroundis changed back totext-gray-700inSummaryField.tsx. Result:Tests 2 failed | 141 passed (143). The two failures are both cases of "the summary read display carries a dark-mode colour".git diff HEADis 0 bytes, and the working-tree blob equals the HEAD blob for both files.Local runs
--filter '@object-ui/plugin-detail^...' --filter '@object-ui/fields^...'): lock VERDICT command-exit 0.Test Files 2 passed (2),Tests 143 passed (143).packages/fields/pluspackages/plugin-detail/:Test Files 693 passed | 2 skipped (695),Tests 8142 passed | 25 skipped (8167).type-checkfor@object-ui/fieldsand@object-ui/plugin-detail(tsc --noEmit && tsc -p tsconfig.test.json): lock VERDICT command-exit 0.dispatch-gates.mjs --commands, 38 commands): 36 exit 0.check:type-check-debtis NOT MEASURED because its closure build never got a turn on the lock (exit 3, PREREQUISITE NOT MET); it is re-running.pnpm --dir ui exec vitest run scripts/:Tests 5092 passed | 2 skipped.check:new-line-citations: 0 new citations.🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ