Skip to content

polish: hand-tune Cost tab table column widths#11

Merged
0bserver07 merged 1 commit into
mainfrom
polish/cost-tab-table-widths
Apr 29, 2026
Merged

polish: hand-tune Cost tab table column widths#11
0bserver07 merged 1 commit into
mainfrom
polish/cost-tab-table-widths

Conversation

@0bserver07
Copy link
Copy Markdown
Owner

Problem

Cost tab table column widths weren't hand-tuned. Sort chevrons clipped headers in SessionEfficiencyTable (Search, Edit, Read, Bash columns); two-word headers (Idle Total / Idle Max) wrapped; numeric columns were sometimes wider than needed while description columns got squeezed; SessionCompareView had no widths at all on its three data columns.

Change

All widths set in rem (scales with user font preferences), not px. Description / preview columns keep the slack.

Component Adjustments
CommandCostList When w-32 → w-28; %Total/Tools/Steps w-16 → w-20
OutlierCommandsTable When w-28 → w-32; Cost w-20 → w-24
SessionEfficiencyTable Edit/Read/Search/Bash w-16 → w-20; Idle Total/Idle Max w-20 → w-24; Class w-32 → w-36
SessionCompareView A/B/Δ set to w-40 (previously unset). Skeleton headers matched.

Plus: whitespace-nowrap added to <thead> rows on all four tables — guarantees single-line headers and complements the new widths.

Frontend artifacts rebuilt and committed.

Verification

  • npm run typecheck — clean
  • npm run build — clean
  • pytest tests/ -q — 420 passed, 2 skipped (no backend changes)
  • Visual verification: NOT performed by the agent. The agent ran in an isolated worktree without browser access; the editable Python install serves static assets from the main repo's stackunderflow/static/react/, not the worktree's, so a server check would have shown stale UI. Reviewer should run the dev server, open chimera Cost tab, verify both light + dark themes look right before merge.

Notes

Branch renamed from worktree-agent-*.

The four Cost-tab tables (CommandCostList, OutlierCommandsTable,
SessionEfficiencyTable, SessionCompareView) shipped with placeholder
Tailwind w-* widths that left short numeric columns cramped against
their sort chevrons (notably "Search" + chevron in SessionEfficiency
overflowing w-16) and two-word headers like "Idle Total" wrapping.

Tuned each column descriptor so:
- numeric columns are fixed-width with breathing room for the header
  text + sort chevron
- the description / prompt column keeps the slack as the only flex
  column
- all headers fit on one line at the 1280px breakpoint
  (whitespace-nowrap on the header row enforces this)

Widths use Tailwind's rem-based w-* classes (no px) so they scale with
the user's font preference.
@0bserver07 0bserver07 force-pushed the polish/cost-tab-table-widths branch from e13257b to 796aa14 Compare April 29, 2026 17:09
@0bserver07 0bserver07 merged commit 2df4e21 into main Apr 29, 2026
9 checks passed
0bserver07 added a commit that referenced this pull request Apr 29, 2026
…ion (#15)

Leaked into main during the PR #11 (cost-tab polish) rebase resolution.
Content underneath was correct; only the orphaned start-conflict marker
needed removal.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0bserver07 added a commit that referenced this pull request May 14, 2026
0bserver07 added a commit that referenced this pull request May 20, 2026
The four Cost-tab tables (CommandCostList, OutlierCommandsTable,
SessionEfficiencyTable, SessionCompareView) shipped with placeholder
Tailwind w-* widths that left short numeric columns cramped against
their sort chevrons (notably "Search" + chevron in SessionEfficiency
overflowing w-16) and two-word headers like "Idle Total" wrapping.

Tuned each column descriptor so:
- numeric columns are fixed-width with breathing room for the header
  text + sort chevron
- the description / prompt column keeps the slack as the only flex
  column
- all headers fit on one line at the 1280px breakpoint
  (whitespace-nowrap on the header row enforces this)

Widths use Tailwind's rem-based w-* classes (no px) so they scale with
the user's font preference.
0bserver07 added a commit that referenced this pull request May 20, 2026
…ion (#15)

Leaked into main during the PR #11 (cost-tab polish) rebase resolution.
Content underneath was correct; only the orphaned start-conflict marker
needed removal.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0bserver07 added a commit that referenced this pull request May 20, 2026
Closes HANDOFF follow-up #11. Real-store data is now live (v013 applied,
agent_teams and playback routes returning populated bodies), so the
beta pill on these two tabs no longer signalled anything actionable.

Both tabs already carry their own EmptyState components for the
no-data path (AgentsTab: "No agent teams yet"; PlaybackTab: "No tool
calls yet in this project"), so empty stores still render gracefully.

The shared BetaBadge component still serves the remaining beta-flagged
tabs (yield, qa, tags); the badge render is conditional on
tab.beta === true so dropping the prop is cleanly inert.

Frontend typecheck + build + 110 tests clean.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0bserver07 added a commit that referenced this pull request May 20, 2026
@0bserver07 0bserver07 deleted the polish/cost-tab-table-widths branch May 20, 2026 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant