Skip to content

feat(ui): report an issue on behalf of another user - #3333

Open
0xSysR3ll wants to merge 1 commit into
developfrom
0xsysr3ll/feat/report-issue-as-user
Open

feat(ui): report an issue on behalf of another user#3333
0xSysR3ll wants to merge 1 commit into
developfrom
0xsysr3ll/feat/report-issue-as-user

Conversation

@0xSysR3ll

@0xSysR3ll 0xSysR3ll commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Description

This PR adds a Report As user picker in the Report an Issue modal, letting an admin or users with MANAGE_ISSUES permission 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)

image

Checklist:

  • I have read and followed the contribution guidelines.
  • Disclosed any use of AI (see our policy)
  • I have updated the documentation accordingly.
  • All new and existing tests passed.
  • Successful build pnpm build
  • Translation keys pnpm i18n:extract
  • Database migration (if required)

Summary by CodeRabbit

  • New Features
    • Added a “Report As” option when creating issues.
    • Authorized users can select another account from a searchable avatar dropdown before submitting an issue.
    • Issue reports can now optionally be submitted on behalf of the selected account.

@0xSysR3ll
0xSysR3ll requested a review from a team as a code owner July 31, 2026 17:29
@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The issue modal now allows users with issue-management permission to select another account as the issue reporter. It loads eligible users, stores the selected userId, displays the selection, and includes it during issue creation.

Changes

Issue reporting attribution

Layer / File(s) Summary
User resolution and initialization
src/components/IssueModal/CreateIssueModal/index.tsx
The modal loads up to 1,000 users for authorized users, defaults to the current user, and resolves the selected user.
Report As selector
src/components/IssueModal/CreateIssueModal/index.tsx, src/i18n/locale/en.json
A permission-gated selector displays the selected user's avatar, name, and email. The English Report As label is localized.
Issue submission
src/components/IssueModal/CreateIssueModal/index.tsx
Issue creation includes the optional userId when an authorized user selects an account.

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
Loading

Suggested reviewers: gauthier-th, danshilm

Poem

A rabbit picks a name with care,
Then sends the issue through the air.
The chosen user gets the word,
While admin authors are recorded.
Avatars hop in the dropdown bright.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: reporting an issue on behalf of another user.
Linked Issues check ✅ Passed The changes add an optional user picker for authorized users and submit the selected user for issue attribution, matching issue #3280.
Out of Scope Changes check ✅ Passed The changes are limited to the issue modal and its English localization, which directly support the linked issue objectives.

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between bd491c7 and c7c85f5.

📒 Files selected for processing (2)
  • src/components/IssueModal/CreateIssueModal/index.tsx
  • src/i18n/locale/en.json

Comment thread src/components/IssueModal/CreateIssueModal/index.tsx
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.

Allow Media Issue Reporting by the Admin on Behalf of Other Users

1 participant