feat(ui): shared RepoGroupHeader with info tint styling (#63)#69
Merged
wgordon17 merged 7 commits intoApr 18, 2026
Merged
Conversation
Extracts RepoGroupHeader component with bg-info/20 tint, oklch text color via CSS light-dark(), and slot-based API (badges, trailing, children). Adds @Utility repo-header-text with adaptive oklch colors. Fixes animate-reorder-highlight fill-mode (forwards to none) to prevent bg-info/20 override after animation ends. Includes 16 unit tests for RepoGroupHeader component.
Replaces inline header markup with RepoGroupHeader component. Removes ChevronIcon and formatStarCount imports. Retains Tooltip for Monitoring all badge and Dep Dashboard toggle.
Replaces inline header markup with RepoGroupHeader component. Removes ChevronIcon and formatStarCount imports. Retains Tooltip for item rows and Monitoring all badge. Peek update div stays as sibling outside the component.
Replaces inline header markup with RepoGroupHeader component. Removes ChevronIcon import. Omits starCount and badges props (ActionsTab has neither). Peek update div stays as sibling.
Restores compact-mode font size (text-sm/14px) while keeping text-base/16px for normal density. Without this, compact repo headers were 36px vs old 32px — a 12.5% height regression.
Reduces bg tint from info/20 to info/5 (hover info/10). Keeps oklch repo-header-text but darkens dark-mode values (L 0.85→0.70, C 0.18→0.15) for less visual competition with content rows.
Renames RepoGroupHeader children prop to collapsedSummary for self-documenting API — the prop is only shown when collapsed. Updates all 3 tab call sites. Renames ActionsTab local collapsedSummary memo to workflowCounts to avoid shadowing the new prop name. Test improvements from PR review: - Adds accessible name constraint to getByRole queries - Adds toHaveBeenCalledWith() for onToggle no-args contract - Adds repo-header-text class assertion - Adds ActionsTab RepoGroupHeader integration tests
abba9a9 to
c8d1977
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #63