Skip to content

feat(ui): display PR number in session list#147

Merged
renato0307 merged 4 commits intomainfrom
feat-show-pr-number
Feb 1, 2026
Merged

feat(ui): display PR number in session list#147
renato0307 merged 4 commits intomainfrom
feat-show-pr-number

Conversation

@renato0307
Copy link
Copy Markdown
Owner

@renato0307 renato0307 commented Feb 1, 2026

Summary

  • Show PR number (e.g., "PR test: add Docker-based integration test infrastructure #123") in session git info line with color-coded styling
  • Add rocha sessions open-pr <session> CLI command to open PR in browser
  • Add keyboard shortcut to open PR directly from TUI
  • Change git info separator from "|" to "·" for cleaner appearance

Test plan

  • Create a session with a branch that has an open PR
  • Verify PR number appears in yellow in the session list
  • Create a session with a merged PR branch and verify it appears in purple
  • Test rocha sessions open-pr <session> opens the PR in browser
  • Test keyboard shortcut opens PR from TUI
  • Verify sessions without PRs don't show PR info

- Show PR number (e.g., "PR #123") in session git info line
- Style PR label in yellow, merged PRs in purple
- Add `rocha sessions open-pr <session>` CLI command to open PR in browser
- Change git info separator from "|" to "·" for cleaner appearance
- Add keyboard shortcut to open PR from TUI
- Fix potential nil pointer dereference in UpdatePRInfo
- Use theme.PRLabelStyle instead of local duplicate style
- Add prInfoFetchTimeout constant and improve function docs
- Document gh CLI as optional external dependency
- Test happy path with PR info
- Test nil PR info handling (no panic)
- Test repository error propagation
- Regenerate mocks with UpdatePRInfo method
@renato0307 renato0307 merged commit fc5f894 into main Feb 1, 2026
2 checks passed
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