Skip to content

feat: unify suggestions and PRs views with mode-aware labels#149

Open
R-Hart80 wants to merge 2 commits intoCatholicOS:devfrom
R-Hart80:feat/mode-aware-pr-labels
Open

feat: unify suggestions and PRs views with mode-aware labels#149
R-Hart80 wants to merge 2 commits intoCatholicOS:devfrom
R-Hart80:feat/mode-aware-pr-labels

Conversation

@R-Hart80
Copy link
Copy Markdown
Contributor

Closes #65

Summary

  • PRList: adds mode prop — tabs show Accepted/Rejected instead of Merged/Closed in standard mode; count says "suggestion(s)"; empty-state messages adapt
  • PRListItem: adds mode prop — status badges and date text ("accepted X ago") adapt
  • PRActions: adds mode prop — Merge→Accept, Close→Reject; confirmation dialog titles/descriptions adapt
  • PRDetail: adds mode prop, passes it through to PRActions
  • pull-requests/page.tsx: reads editorMode from store; title becomes My Suggestions + amber Lightbulb icon in standard mode; "New Pull Request" → New Suggestion; passes mode to PRList
  • pull-requests/[prNumber]/page.tsx: breadcrumb shows My Suggestions in standard mode; passes mode to PRDetail
  • editor/page.tsx: the separate "My Suggestions" and "PRs" toolbar buttons are replaced by a single mode-aware button:
    • Standard mode → "My Suggestions" (amber, Lightbulb icon) → /pull-requests
    • Developer mode → "My Pull Requests" (with open-PR count badge) → /pull-requests

Test plan

  • Switch to Standard mode and open a project editor — verify toolbar shows My Suggestions (amber) instead of two separate buttons
  • Click My Suggestions → page title is "My Suggestions", tabs read Open / Accepted / Rejected / All
  • Switch to Developer mode — toolbar shows My Pull Requests with PR count badge
  • Click My Pull Requests → page title is "Pull Requests", tabs read Open / Merged / Closed / All
  • Open a PR detail in standard mode → breadcrumb says "My Suggestions"; action buttons say "Accept" / "Reject"
  • Open a PR detail in developer mode → breadcrumb says "Pull Requests"; action buttons say "Merge" / "Close"
  • Confirm dialogs and empty-state messages follow the mode-appropriate language

🤖 Generated with Claude Code

In standard mode, the PR list and actions now use suggestion-friendly
language: tabs show "Accepted"/"Rejected" instead of "Merged"/"Closed",
action buttons say "Accept"/"Reject" instead of "Merge"/"Close", and
confirmation dialogs and empty-state messages follow suit.

The editor toolbar now shows a single mode-aware button:
- Standard mode (isSuggestionMode): "My Suggestions" in amber, linking
  to /pull-requests with suggestion labels
- Developer mode: "My Pull Requests" with open-PR count badge

The pull-requests list page and detail breadcrumb also adapt their
titles and icons based on the active editor mode.

Closes CatholicOS#65

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 13, 2026

Warning

Rate limit exceeded

@R-Hart80 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 22 minutes and 55 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 22 minutes and 55 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9af57fe4-c8f3-40aa-91ee-1576c4cef872

📥 Commits

Reviewing files that changed from the base of the PR and between 025e5ea and ce10ecc.

📒 Files selected for processing (7)
  • app/projects/[id]/editor/page.tsx
  • app/projects/[id]/pull-requests/[prNumber]/page.tsx
  • app/projects/[id]/pull-requests/page.tsx
  • components/pr/PRActions.tsx
  • components/pr/PRDetail.tsx
  • components/pr/PRList.tsx
  • components/pr/PRListItem.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

The previous condition (isSuggestionMode || editorMode === "developer")
hid the button for owners/admins in standard mode, since their
isSuggestionMode is false (they edit directly, not via suggestions).

The button should always be visible — only its label and style adapt
to editorMode (standard → "My Suggestions" amber/lightbulb,
developer → "My Pull Requests" with open-PR count badge).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@JohnRDOrazio JohnRDOrazio added enhancement New feature or request UX User experience improvements labels Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request UX User experience improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unify suggestions and PRs views with mode-aware labels

2 participants