Repository navigation
fix(admin): add View as user and immediate action tooltips - #1299
Conversation
There was a problem hiding this comment.
Quick104 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
|
Warning Review limit reachedNext included review available in 27 minutes. View limit detailsLimit details: You’ve used all 2 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
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 |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Problem
Related issue: #1289
Closes #1289
The Users table has no direct way to view the app as a user, and its action icons have no tooltips. The existing detail-page action is labeled “Impersonate.”
Approach
Add View as user to eligible rows, rename the detail action, and share the existing guarded confirmation flow. The confirmation explains that actions run as the selected user and admin access is unavailable until the session ends. Give every row action an immediate hover and focus tooltip while retaining its accessible label.
The flow reuses the existing v2 impersonation endpoint and preserves account eligibility, duplicate-request protection, and checks that the captured admin identity is still active. This is limited to web administration; Apple, Android, Jellyfin, and API documentation need no changes.
Validation
TestAdminResourceCapabilitiesAndScopeexpects resource sampling to be allowed, while the implementation reports it unsupported on macOS; an isolated rerun reproduced this failure.TestResolveViewerScopeParityalso exceeded its 25 ms policy budget during the suite and passed on an isolated rerun.Risks
QA found an existing session-exit failure: ending a session from the profile picker can navigate back to administration before an admin profile is selected, causing
StaleApiRequestContextError. The same failure was reproduced with the original Users and user-detail pages restored. It remains a separate follow-up; this PR does not claim that full impersonation acceptance has passed.Checklist
AI Disclosure
mcp__cua_repl).