Redesign list item display and highlight collaborators#59
Merged
Conversation
Split each list item into repo / title+status / activity lines so that repo context is always visible without competing for space with the title. Selection highlight was broken because pre-rendered ANSI in the PR number escaped the outer lipgloss style; fix by stripping inner codes before re-applying the selected style and attaching status marks as a raw suffix that preserves their own colours. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
When a PR or issue was opened or reviewed by someone other than the current user, their @handle now renders in GitHub accent blue so they stand out at a glance. The authenticated user's own name stays plain to reduce visual noise. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
funcorder linter requires constructors to precede struct methods. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Merged
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.
✨ Redesign list item display and highlight collaborators
The old layout crammed repo name, title, and status marks onto one or two lines, making it hard to scan. This PR splits each item into three distinct lines, fixes a broken selection highlight caused by inner ANSI resets, and makes other users'
@handlespop with GitHub accent blue so you can instantly see who else touched a PR or issue.Changes
internal/ui/delegate.go,ui.go): each list entry now shows<repo>/<number> <title> <status>/<activity>— repo context is always visible without competing with the titleinternal/ui/delegate.go): pre-rendered ANSI codes in the PR number were escaping the outer lipgloss style; fixed by stripping inner codes before re-applying selected style, with status marks attached as a raw suffix so their own colours surviveinternal/pr/ui.go,internal/issue/ui.go):#Nmoved from the description to the front of the title line@prefix on usernames (internal/pr/ui.go,internal/issue/ui.go): activity line now readsopened on … by @alice, approved by @bobinternal/ui/display.go,styles.go): addedRenderUser(login, currentLogin)— other users render in GitHub blue, the current user's own name stays plain; threadedcurrentLoginfromcmd/through the grouped structs to everytoItem()callTest plan
go test ./...— all tests passgo build— builds cleanlyTestRender_ThreeLines— delegate outputs exactly 3 linesTestRender_SelectedTitleUsesStrippedContent— selection re-applies style over stripped ANSITestRenderUser_OtherUser_IsStyled— other user's handle gets accent colourTestRenderUser_CurrentUser_IsPlain— own handle stays unstyled🤖 Generated with Claude Code