feat(ui): report an issue on behalf of another user - #3333
Conversation
📝 WalkthroughWalkthroughThe issue modal now allows users with issue-management permission to select another account as the issue reporter. It loads eligible users, stores the selected ChangesIssue reporting attribution
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant CreateIssueModal
participant UsersAPI
participant IssueAPI
CreateIssueModal->>UsersAPI: Fetch eligible users when permission allows
UsersAPI-->>CreateIssueModal: Return user list
CreateIssueModal->>CreateIssueModal: Store selected userId
CreateIssueModal->>IssueAPI: Create issue with optional userId
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/components/IssueModal/CreateIssueModal/index.tsx`:
- Around line 76-79: Update the user-loading flow around the useSWR call in
CreateIssueModal to support pagination or server-side search instead of a fixed
take=1000 limit, allowing administrators to find any Seerr user. Ensure the
selector preserves its currently selected user when the loaded page or search
results change, and keep the existing permission-based request gating.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 88f6f8e5-f0a2-425c-a679-db048a3d21fb
📒 Files selected for processing (2)
src/components/IssueModal/CreateIssueModal/index.tsxsrc/i18n/locale/en.json
Description
This PR adds a Report As user picker in the Report an Issue modal, letting an admin or users with
MANAGE_ISSUESpermission to report an issue on behalf of another user.How Has This Been Tested?
Report an issue on behalf of another user.
Screenshots / Logs (if applicable)
Checklist:
pnpm buildpnpm i18n:extractSummary by CodeRabbit