Skip to content

fix(fields): the auto-number read display uses the theme foreground, not a fixed grey - #36008

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-35278-autonumber-dark-colour
Nov 21, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-35278-autonumber-dark-colour

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread

repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

Fixes #35278

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:暗色模式下,自动编号字段的只读文字不再发暗,和其他字段一样清楚。
  • 为什么做:它把文字颜色写死成浅色主题的灰色,汇总字段之前已按同样方式修过。
  • 出错会怎样:最坏是这段文字颜色不对,不影响数据,撤回即可。
  • 要你做什么:无。

What changes

@object-ui/fields AutoNumberField: the read display's text-gray-700 (no dark: partner) becomes text-foreground, the theme token SummaryField moved to in #34182 / PR #35269.

Tests

  • New pin autoNumberFace.darkColour-35278.test.tsx, same shape as the summary face's: a formatted and a bare value each read in text-foreground and carry no fixed text-(gray|slate|zinc|neutral|stone)-N. Ablation on origin/main 56fa31bca2: red; with the fix: green.
  • Also run with the fix: summaryFaces.numberFace-11752 and the four fields e2e suites that render AutoNumberField (display-grid host channels, DOM leak, readonly host plumbing, aria-invalid registry): 6 files, all green.

Self-land: 48 added / 1 removed lines, under the area's 50-line bar.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me

…not a fixed grey

The read display hard-coded text-gray-700 with no dark-mode partner, so it
dimmed in dark mode. It now reads in text-foreground, the token the summary
face already uses, with the same "no fixed grey" pin.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
@github-actions github-actions Bot added size/s 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 21, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4

维护者速读

  • 自动编号字段在深色模式下原来是固定的深灰色,几乎看不清;现在跟随主题的正文颜色,深浅模式都清楚。
  • 只改了这一处显示颜色,和之前汇总字段的同类修复做法一致。
  • 席位意见:通过;检查跑绿后由区域自行合并。

席位核对

ACCEPT · head c3b3a168b0 · card #35278 (claim 7058341483) · K=1 · merge-tree vs origin/main clean · governed: none · size +48/−1, 3 files, all within the claim surface · Clause-② no, no packages/spec path → area lands · CI 12 success, 13 skipped, 29 in progress · 2026-11-21T06:10Z

R1: CI is running. Land when it is green.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

Landing · head c3b3a168b0 · after L1-a ACCEPT 7058424587 (R1: CI green on this head) · 2026-11-21T06:28Z

Probe Reading
Checks at head c3b3a168b0 skipped:13 success:44
Governed none (L1-a record)
Contract record not owed (UI only, no packages/spec, Clause-② no)
Dogfood battery not owed (no !, no narrowing arm)
Overlap merge-tree clean vs origin/main (L1-a record)

Nit (changeset carries no Clause-② / Metadata-protocol lines): the changeset guards passed, so no push; the PR body carries both lines.

Status: pr_ready + automerge_enable. Fixes #35278: on MERGED the area posts the close-out.

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/s 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.

AutoNumberField's read display hard-codes text-gray-700 with no dark-mode colour (the face SummaryField had before #34182)

2 participants