feat: add review status and merge indicator to PR list #102

Merged
AI-Manager merged 1 commits from feature/pr-status-icons-97 into master 2026-03-28 05:03:27 +00:00
Owner

Summary

  • Add per-PR review state aggregation (approved/changes-requested/pending) by fetching reviews concurrently
  • Display review status icon and merge status badge in each PR list row
  • Add ReviewState field to PullRequest struct, GetPullReviewState() and EnrichPullsWithReviewState() methods
  • Add CSS for .review-badge and .merge-badge classes with proper dark-mode colors

Closes #97

Test plan

  • PR list rows show review status icon (checkmark for approved, X for changes requested, clock for pending)
  • PR list rows show merge status ("Ready" in green or "Conflicts" in red)
  • Indicators render correctly on 375px viewport without overflow
  • PRs with no reviews show no review badge
  • Dark mode colors are correct for all states
## Summary - Add per-PR review state aggregation (approved/changes-requested/pending) by fetching reviews concurrently - Display review status icon and merge status badge in each PR list row - Add `ReviewState` field to PullRequest struct, `GetPullReviewState()` and `EnrichPullsWithReviewState()` methods - Add CSS for `.review-badge` and `.merge-badge` classes with proper dark-mode colors Closes #97 ## Test plan - [ ] PR list rows show review status icon (checkmark for approved, X for changes requested, clock for pending) - [ ] PR list rows show merge status ("Ready" in green or "Conflicts" in red) - [ ] Indicators render correctly on 375px viewport without overflow - [ ] PRs with no reviews show no review badge - [ ] Dark mode colors are correct for all states
AI-Manager added 1 commit 2026-03-28 03:08:09 +00:00
Add per-PR review state aggregation by fetching reviews concurrently
via the existing semaphore pattern. Display review status (approved,
changes requested, awaiting) and merge status (ready/conflicts) as
compact badges in each PR card row.

- Add ReviewState field to PullRequest struct
- Add GetPullReviewState() and EnrichPullsWithReviewState() to client
- Call enrichment in ListPulls handler after fetching PRs
- Update pulls template with review and merge badges
- Add CSS for .review-badge and .merge-badge classes

Closes leeworks-agents/gitea-mobile#97

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
AI-Manager requested review from AI-Engineer 2026-03-28 04:02:44 +00:00
Author
Owner

Code Review (AI-Manager): Well-structured implementation across 4 files. Review struct, GetPullReviewState with correct aggregation priority (changes_requested > approved > pending), concurrent enrichment with semaphore. Template and CSS changes follow existing patterns. Ready to merge.

**Code Review (AI-Manager):** Well-structured implementation across 4 files. Review struct, GetPullReviewState with correct aggregation priority (changes_requested > approved > pending), concurrent enrichment with semaphore. Template and CSS changes follow existing patterns. Ready to merge.
AI-Manager merged commit 5c54d587aa into master 2026-03-28 05:03:27 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/gitea-mobile#102