Skip to content

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

Closed

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ

Filing gate: ③ an out-of-scope finding of the #34182 dev (os-dev-report 6996399017 on the card, PR #35269), class a, read in code only (no live repro). Filed by area ux-2 at the L1-a reviewer's ask (ACCEPT 6996715024).
Reader: domain:ui (ui/packages/fields/src/widgets/AutoNumberField.tsx, published @object-ui/fields). Suggested-grade: p3 · the record page reads auto_number through TextField, so the face reaches only the form widget's read display.
Dedupe: AutoNumberField text-gray-700 dark — none.

维护者速读

自动编号字段的只读展示把文字颜色写死成 text-gray-700,没有暗色变体;暗色模式下这段文字会发暗。#34182(PR #35269)给汇总字段修了同样的问题,改用主题色 text-foreground,自动编号这一个没在那张卡范围里。

Facts (origin/main)

Ask

Give AutoNumberField's read display the same theme token, with the same pin shape as #34182's (summaryFaces.numberFace-11752.test.tsx). Ablate red.

⛔ Not a claim.

Activity

  1. added
    bug
    pm:queue
    finding
    domain:ui
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    First touch (rules of #35223): area:ux · Bug · Cosmetic · rare (the record page reads auto_number through TextField) · read in code. p3 → p2 under the UX rule, which sets every UX problem not on a core every-time path at p2 and allows no p3. The face ships in the published @object-ui/fields. Issue type set to Bug.

  3. added
    priority:p2
    and removed on Nov 19, 2026
  4. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

    Claim: area ux-3 of repo:objectstack#5, area:ux p2 with no epic parent (maintainer 2026-11-21 via seat 5: 「你继续处理 ux 非专题下的 p2 任务,并发3」) · 2026-11-21T06:02Z
    Session: session_01Utp6CZiaBg6rk7dpy1s9Me
    Account: os-bill
    Branch: claude/issue-35278-autonumber-dark-colour
    Worktree: objectstack-issue-35278 (ux-3 container, built by the area itself: one class token and one pin)
    Domain: domain:ui
    Seat: repo:objectstack#5
    Area: ux-3
    File surface: ui/packages/fields/src/widgets/AutoNumberField.tsx (read display class), one new pin test in ui/packages/fields/src/__tests__/ named for the card, root .changeset/. ⛔ Everything else, including the other field widgets, ux-2's create-form tabs and GridField (#35472, #35507, #35804), ux-4's record top bar (#35853). Stop on any breach and report.
    Container & model: S, mode:inline, model: default, effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: #34182 moved SummaryField to the theme token; AutoNumberField was outside that card's scope and kept a fixed text-gray-700
    Thread-read: 6997165988
    Premise: holds at origin/main 56fa31bca2: AutoNumberField.tsx line 14 reads text-sm font-mono text-gray-700, no dark: variant.
    Serial constraints cleared: ux-3's #35559 closed (PR #35991 merged); no other open ux-3 card; seat 1 also claims area:ux cards, so this claim re-reads the card's thread before landing. Self-land under 50 lines.
    Pre-claim lane: ui/packages/fields/** → domain:ui, area ux-3.
    Pre-claim deps: none.
    Prior rulings read: check-prior-rulings.mjs --card 35278 --terms AutoNumberField,text-gray-700 --paths ui/packages/fields/src/widgets/AutoNumberField.tsx at origin/main 56fa31bca2: zero hits, no ruling; refs #34182 closed, #35269 merged (the pin shape this card reuses), #35223 merged (grading).

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 21, 2026
  6. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui (ui/packages/fields/src/widgets/AutoNumberField.tsx, published @object-ui/fields) · pm:dispatched (claimed by area ux-3); rationale: area:ux · Bug · AutoNumberField's read display hard-codes text-gray-700 with no dark-mode colour; rare, because the record page reads auto_number through TextField; read in code → p2 (UX rule; restates the first touch of 6997165988 in the audit form the H74 reader counts) · size XS.

  7. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

    Close-out 2026-11-21T06:53Z: PR #36008 MERGED as b89f1b5f78; Fixes closed this card. The auto-number field's read display now reads in the theme's text-foreground instead of a fixed text-gray-700, so it stays legible in dark mode, the same token the summary face uses since #35269. Pinned by autoNumberFace.darkColour-35278 (red on main before the fix). Reviews: L1-a ACCEPT 7058424587. The triage first-touch audit asked on the triage mailbox stays with triage. pm:dispatched off.

  8. removed
    pm:dispatched
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uifindingpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions