Skip to content

fix(console): the approvals inbox's pinned Approve / Reject column covers no other column, and record names read in full at common desktop widths - #37560

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-axt9gn
Nov 26, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-axt9gn

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Fixes #37534

What changes

In the approvals inbox's desktop table (ApprovalsInboxPage.tsx), the three text columns wrap instead of holding one line:

  • Request: the process label and step wrap (break-words) instead of truncate.
  • Record: the title wraps to two lines and is clamped after that (line-clamp-2 break-words), still inside the max-w-0 cell from objectui#12816, so it never sizes the column; the full text stays in the link's title. The external-link icon aligns with the first line.
  • Requester: the name wraps, and the row is flex-wrap, so the "You submitted this" badge moves under the name in a narrow column instead of adding to the column's minimum width.

Nothing else moves: column heads and widths, the pinned Approve / Reject column (objectui#12816), its always-visible labelled buttons (#34587), and the horizontal overflow box (objectui#12708), which still scrolls the table under the pin below the width where it fits.

New geometry pin ui/e2e/approvals-inbox-desktop-columns-37534.spec.ts (Playwright, same construction as approvals-inbox-phone.spec.ts: every class string read out of the page and the @object-ui/components primitives at run time, real Tailwind compiled for exactly those classes, the element tree transcribed). The jsdom pin in ApprovalsInboxPage.pinnedActions-12816.test.tsx that asserted truncate on the record title now asserts line-clamp-2, same intent (the title does not size its column).

Why

The card measured, on 18.6.0, the record name cut to about 110 px and the Submitted column partly under the pinned column at 928 px and 1102 px content widths. One-line text in Request and Requester set unbreakable minimum widths; with the fixed Status / Submitted widths and the pinned buttons, the table's minimum was wider than the card, so it overflowed, the pin sat over Submitted at rest, and Record, the only column allowed to give, was squeezed.

Correction to the card: the "no tooltip" half does not hold on main — the record name already carries its full text as title (seat claim 7192794328, Premise line). The tooltip is kept and now pinned at 928 px.

Verification

Readings from the new spec in Chromium (fallback fonts), against main 021524c and against this branch:

Case Before (main) After
en, 928 px: table width / box 1049 / 926 (overflows) 926 / 926
en, 928 px: pinned column's left edge vs Submitted's right edge 738.75 vs 861.5 (covers 123 px) 738.75 vs 738.75
en, 928 px / 1102 px: record names cut both / both none (wraps to 2 lines at 928)
zh-CN, 928 px: record names cut both none
zh-CN, 1102 px fits, nothing cut unchanged
en, threshold where the table starts to scroll — about 850 px
  • Ablation: the spec's four width cases are red on main's page source (3 of 4 fail: en 928, en 1102, zh-CN 928) and green on this branch; the not-vacuous case (700 px, table scrolls and the pin covers Submitted) is green on both.
  • A 68-character name at 928 px is clamped at 2 lines, keeps its full text in title, and the table still fits.
  • vitest (ui root): apps/console/src/pages/system/ 48 files / 324 tests green; the other suites naming the inbox (apps/console/src/services/, approvalsInboxComponentRef, clickableNonControlCensus-13461, DeclaredActionsBar, approvalQueueAdvance-34586, AppContent.setupItemRoutesVerdict-12706, dead-pack-keys-retired-8754) 22 files / 222 tests green.
  • @object-ui/console type-check exit 0; type-check:e2e exit 0; eslint on the three files 0 errors (14 warnings, all pre-existing in the page); check:new-line-citations 0 new.

Clause-②: no
Metadata-protocol: none

Owed: L1 (seat). No L2 face: one console page's class strings, a moved jsdom pin and a new geometry spec; no contract surface.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic.
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes.
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (not touched)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgU7eeqHgQrtv5CeJK6


Generated by Claude Code

…pprove / Reject column covers nothing at common desktop widths

Claude-Session: https://claude.ai/code/session_01L6bhgU7eeqHgQrtv5CeJK6
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 26, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

席位核对 — ACCEPT · head 8d4d42e · area s2-ux-P · 2026-11-26T13:37Z

L1 checklist

  • Shape and relation: l1-face.mjs --pr 37560 CLEAN on 13 items. At 8d4d42e: 32 success, 13 expected skips, 0 failed, 0 pending; Lint & Repo Gates and TypeScript Type Check success; mergeable_state clean. 333 changed lines, not governed.
  • Fixes #37534 is right. The card's two defects, the pinned Approve / Reject column over Submitted and record names cut at 928 / 1102 px, are both closed by the same change, and the card's "no tooltip" premise was corrected at claim (record names already carry title).
  • Scope: 4 files, all on the card's surface: ApprovalsInboxPage.tsx (Request / Requester truncate → break-words, Record truncate → line-clamp-2 break-words, requester row flex-wrap), the objectui#12816 jsdom pin moved from truncate to line-clamp-2, the new Chromium geometry spec ui/e2e/approvals-inbox-desktop-columns-37534.spec.ts, and a @object-ui/console patch changeset.
  • Pins: the geometry spec reads every class string out of the source at run time, so a drifted extraction throws instead of passing. It asserts no table overflow, the pinned column's left edge ≥ Submitted's right edge per row, records not cut with title intact, in en and zh-CN at 928 and 1102 px. It also asserts a 2-line clamp for an over-long name, and carries a not-vacuous control at 700 px. The thread recorded the spec red 3/4 on main source and green on the branch. Kept as before: objectui#12708 (scroll under the pin when narrower) and fix(pm): dispatch-gates says when staleness could not be measured, instead of printing the same silence a current tree gets #12816 (sticky actions).
  • Sentence-by-sentence read: the changeset's two paragraphs match the diff (three text columns wrap; fits from 928 px; narrower still scrolls; Record clamps after two lines with its tooltip; the "You submitted this" badge drops under the name). Nothing to migrate.
  • No contract face is hit (Clause-②: no, Metadata-protocol: none, no packages/spec/src/**, not governed), so no L2 is owed.

Tier: S. Landing: ready + auto-merge by this stroke.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 26, 2026 13:38
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 64c2fbb Nov 26, 2026
46 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-axt9gn branch November 26, 2026 13:57
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/m tests 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.

Approvals inbox: the sticky Approve / Reject column covers the Submitted column, and the Record column cuts record names short at common desktop widths

2 participants