Skip to content

fix(admin): add View as user and immediate action tooltips - #1299

Merged
Quick104 merged 1 commit into
mainfrom
t3code/6300ed94
Sep 22, 2026
Merged

Quick104 merged 1 commit into
mainfrom
t3code/6300ed94

Conversation

@Quick104

Copy link
Copy Markdown
Contributor

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

  • Browser verification against shared development: eligible and admin targets, all row-action keyboard tooltips, hover rendering, both confirmation entry points, cancellation, and successful session creation through the existing endpoint.
  • All 34 focused tests and all 4,596 tests in the frontend gate passed (598 files; the gate retains its two existing exclusions).
  • Frontend lint, formatting, production build, and local-path checks passed. Lint reports existing warnings.
  • Go build, formatting, vet, and lint against the merge base passed.
  • The full Go suite failed in unchanged code: TestAdminResourceCapabilitiesAndScope expects resource sampling to be allowed, while the implementation reports it unsupported on macOS; an isolated rerun reproduced this failure. TestResolveViewerScopeParity also exceeded its 25 ms policy budget during the suite and passed on an isolated rerun.
  • Settings bindings, playback fixtures, route inventory, migration ledger, scenario catalogs, offline routes, OpenAPI, API contract and fixture checks, and the committed-router-artifact test all passed.

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

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: OpenAI Codex.
  • Tool(s): Codex, GitHub CLI, and unified-computer-use (mcp__cua_repl).
  • Model(s): GPT-6; the exact runtime model identifier is not exposed.
  • Involvement: AI-generated implementation and tests, with agent-run checks and browser verification. Human verification is pending.
  • Adversarial review: Codex self-review of the complete diff and existing request/session path, checking eligibility, repeated submission, stale admin identity, return destinations, and tooltip accessibility. The review retained the existing authority checks and found no additional regression. Browser verification identified the separate baseline session-exit failure described above. No independent reviewer was used.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Quick104 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@coderabbitai

coderabbitai Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 27 minutes.

Check out review usage here.

View limit details

Limit 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.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 7d571f64-6a6e-4830-9716-0d01ca28dee9

📥 Commits

Reviewing files that changed from the base of the PR and between cef0272 and a5603af.

📒 Files selected for processing (5)
  • web/src/components/AdminUserImpersonationDialog.tsx
  • web/src/pages/AdminUserDetail.test.tsx
  • web/src/pages/AdminUserDetail.tsx
  • web/src/pages/AdminUsers.test.tsx
  • web/src/pages/AdminUsers.tsx

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-22T13:28:04.066263Z a5603af PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Quick104
Quick104 merged commit 07f0a71 into main Sep 22, 2026
10 checks passed
@Quick104
Quick104 deleted the t3code/6300ed94 branch September 22, 2026 13:35
@Quick104 Quick104 mentioned this pull request Sep 23, 2026
2 tasks done
@zZebrahz zZebrahz mentioned this pull request Sep 24, 2026
8 tasks done
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.

Add “View as user” and immediate tooltips to user actions

1 participant