Skip to content

Unify CLI tables on one minimal, consistent style#22

Merged
alexkroman merged 1 commit into
mainfrom
claude/cli-ui-simplicity-qUxW5
Jun 6, 2026
Merged

Unify CLI tables on one minimal, consistent style#22
alexkroman merged 1 commit into
mainfrom
claude/cli-ui-simplicity-qUxW5

Conversation

@alexkroman

Copy link
Copy Markdown
Collaborator

Every listing command hand-built a Rich table with the default heavy box,
and the two key/value detail views (whoami, sessions get) were styled
differently — one a borderless grid, one a boxed table with raw field names.

Introduce two shared factories in output.py as the single source of truth:

  • data_table(): a quiet header-rule table (box.SIMPLE_HEAD) in the brand
    heading style, used by transcripts/keys/sessions list, usage, limits, audit.
  • detail_table(): a borderless label/value grid with a muted label column,
    now shared by whoami and sessions get.

sessions get field labels are humanized (underscores -> spaces) to match the
clarity of whoami's labels. Adds unit tests for both factories plus human-render
tests for whoami, keys list, and the humanized sessions get labels.

Every listing command hand-built a Rich table with the default heavy box,
and the two key/value detail views (whoami, sessions get) were styled
differently — one a borderless grid, one a boxed table with raw field names.

Introduce two shared factories in output.py as the single source of truth:
- data_table(): a quiet header-rule table (box.SIMPLE_HEAD) in the brand
  heading style, used by transcripts/keys/sessions list, usage, limits, audit.
- detail_table(): a borderless label/value grid with a muted label column,
  now shared by whoami and sessions get.

sessions get field labels are humanized (underscores -> spaces) to match the
clarity of whoami's labels. Adds unit tests for both factories plus human-render
tests for whoami, keys list, and the humanized sessions get labels.
@alexkroman alexkroman merged commit 21ecbe6 into main Jun 6, 2026
13 checks passed
@alexkroman alexkroman deleted the claude/cli-ui-simplicity-qUxW5 branch June 6, 2026 04:43
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.

2 participants