Skip to content

feat(web): open the account's Access tab from the Users list Edit button - #2231

Merged
Quick104 merged 1 commit into
mainfrom
fix/admin-users-edit-link-access-tab
Oct 10, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/admin-users-edit-link-access-tab

Conversation

@Quick104

@Quick104 Quick104 commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: changes #1197 C1 (an account override is now set on the account's Access & limits tab instead of in the Edit User dialog)

In Admin › Users, the Edit (pencil) button on each row opened an Edit User dialog. The dialog repeated what the account page's Access & limits tab already edits, and the two could drift apart. Admins now land on that tab instead.

Approach

The Edit button is now a link to /admin/users/<id>?tab=access, shown for the same accounts as before. Nothing else opened the dialog in edit mode, so I removed that mode: the dialog is now create-only (Add User). This also drops its conflict reload, Enabled switch, and owner/self locks. The account page already covers each of these:

  • Username, email, role, permissions, group, and policy: Access & limits.
  • Enable/disable, reset password, and temporary password: the account header.

The Access tab tests already cover conflict reload and the owner/self locks.

This is web admin only. No API, jellycompat, or client app changes.

Validation

  • pnpm run lint, format:check, build: pass
  • make test-web: 841 files, 7281 tests pass
  • make verify-local-paths: pass
  • pnpm run budget:check: fails, and also fails on main (1214 B over budget on main, 1241 B on this branch). AdminUsers is lazy-loaded.
  • Not exercised against a running server.

Evidence

Admin › Users, web admin: the row's pencil icon and tooltip look the same. Clicking it opens the account page on Access & limits instead of a dialog. Add User still opens the Create User dialog.

Risks

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code, running in T3 Code
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated; human review pending
  • Adversarial review: n/a

🤖 Generated with Claude Code

The Edit button in Admin > Users opened a dialog that duplicated what the
account page's Access tab now edits. It now links to
/admin/users/<id>?tab=access, and the dialog only creates accounts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 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-10-10T17:55:17.814062Z 9b86d86 PR opened
🔒 Security Review ✅ Completed 2026-10-10T17:56:35.067312Z 9b86d86 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.

@coderabbitai

coderabbitai Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 587f71e6-4984-4edb-a7b2-fe4af2ca445e


📥 Commits

Reviewing files that changed from the base of the PR and between 9d37930 and 9b86d86.



📒 Files selected for processing (2)
  • web/src/pages/AdminUsers.test.tsx
  • web/src/pages/AdminUsers.tsx


Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.




📝 Walkthrough
📝 Walkthrough

Walkthrough

AdminUsers now creates accounts through a creation-only dialog. Edit actions link to the user detail page’s access tab. Delete actions continue to fetch user details for confirmation.

Changes

Admin users

Layer / File(s) Summary
Creation-only dialog and form
web/src/pages/AdminUsers.tsx
The dialog always renders a creation form. Existing-user editor state and edit-dialog behavior are removed.
Creation fields and submission
web/src/pages/AdminUsers.tsx, web/src/pages/AdminUsers.test.tsx
The form initializes creation fields, applies role and group rules, and submits a CreateUserRequest. Update, reload, conflict, and saved-state handling are removed. Tests now cover the disabled group picker for a new admin.
Edit navigation and delete handling
web/src/pages/AdminUsers.tsx, web/src/pages/AdminUsers.test.tsx
Edit actions link to the user detail access tab. Delete retains its user-fetch flow. Tests assert the edit links and their destination.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Suggested reviewers: rhainland



Merge Risk: ⚪ Minimal · up to 9b86d

The Edit link leads to the account-management controls, with no established workflow regression requiring a change before merge.

Pre-merge checks | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly and concisely identifies the primary change: the Users list Edit button opens the account's Access tab.
Description check Passed The description directly explains the change, its rationale, implementation, validation, risks, and affected scope.

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR



🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR



🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@Quick104
Quick104 merged commit 5f94f57 into main Oct 10, 2026
17 of 20 checks passed
@Quick104
Quick104 deleted the fix/admin-users-edit-link-access-tab branch October 10, 2026 20:09
dannyshafer pushed a commit to dannyshafer/silo-server that referenced this pull request Oct 11, 2026
Silo-Server#2231 made the user dialog create-only and moved account edits to the
account page. Keep the invalid-limit guard on the Create User dialog and
move its tests to that dialog.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact: usability Core flow broken or severely blocked priority: P3 Needs-info or parked

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant