8000 feat(ui): compact ThreadStatus for sidebar rows by aorumbayev · Pull Request #155 · kagan-sh/kagan · GitHub
[go: up one dir, main page]

Skip to content

feat(ui): compact ThreadStatus for sidebar rows - #155

< 7438 span aria-hidden="true" class="pl-2 fgColor-muted f1-light lh-condensed">#155
Merged
aorumbayev merged 3 commits into
mainfrom
feat/thread-status-compact
Nov 13, 2026
Merged

aorumbayev merged 3 commits into
mainfrom
feat/thread-status-compact

Conversation

@aorumbayev
Copy link
Copy Markdown
Member

A replaceable sidebar row has no room for the status word ("idle", "busy"). This adds new ThreadStatus(id).compact(), which draws the tone mark alone.

  • The default ThreadStatus looks the same as before.
  • Compact mode keeps the label "Thread status: ", so screen readers and kg ui snapshot still read it.
  • No tooltip, because a replacement may not draw one (decision 105).
  • The plain-method registration helper is now shared by KgButton and ThreadStatus, so there is one copy.
  • Decision 276. Cost: product Rust went from 84175 to 84199 (+24).

Test: a plugin view with ThreadStatus(id).compact() renders the mark without the word and keeps the label. The test fails when compact does nothing.

ThreadStatus(id).compact() draws only the status mark, for a row with no
room for the word. The word stays the accessible name. The default is
unchanged. compact is registered through the same method helpers as
KgButton, which now share one definition.
The compact ThreadStatus adds 24 product lines on top of main, so the ceiling moves to the branch count.
…mpact

# Conflicts:
#	.config/size-budget.txt
#	docs/decisions.md
@aorumbayev
aorumbayev merged commit 32588f4 into main Nov 13, 2026
20 checks passed
@aorumbayev
aorumbayev deleted the feat/thread-status-compact branch November 13, 2026 10:00
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

0