Skip to content

fix(native): draw the Pulls quick filters as ghost tabs that share the list's width - #931

Merged
omartelo merged 1 commit into
mainfrom
fix/pulls-filter-ghost-tabs
Oct 24, 2026
Merged

omartelo merged 1 commit into
mainfrom
fix/pulls-filter-ghost-tabs

Conversation

@omartelo

Copy link
Copy Markdown
Collaborator

Summary

The All / Ready / Drafts / Failing filters over the Pulls list used the default Tabs: a filled h-9 track in text-sm, the heaviest control on the list island and taller than the search field above it. With a monospace interface font the last filter ran past the island's edge.

  • The filters now use the ghost variant, the dock header's tabs: text-xs, the selected one shaded with accent.
  • TabsVariantGhost fills a minimum width with equal triggers (flex-1 over a w-full list). The dock lays its tabs out in a Rigid, so its Min.X is 0 and its triggers keep their own widths.
  • A filter's count fades (opacity-40, as the chip's) when it is empty, and Failing's turns destructive when a check fails.

Test plan

  • TestTabsGhostFillsAMinimumWidthEqually fails before the change and passes after
  • TestFilterCountColorReadsTheState
  • native/: gofmt -l ., go vet ./..., go test ./...
  • -shot of Pulls on an isolated backend: the four filters fit the 320dp island in a monospace font, zero counts faded

…e list's width

The default tabs were the heaviest control on the list island, taller than
the search field above them, and with a monospace interface font the last
filter ran past the island's edge. The ghost variant, the dock's tabs, now
fills a minimum width with equal triggers; the dock lays it out in a Rigid
and keeps its own widths. A filter's count fades when it is empty and
Failing's turns destructive when a check fails.
@omartelo
omartelo merged commit be61836 into main Oct 24, 2026
7 checks passed
@omartelo
omartelo deleted the fix/pulls-filter-ghost-tabs branch October 24, 2026 00:32
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