Repository navigation
refactor(admin): split UserManagement into the four things it was - #620
Merged
Merged
Conversation
1135 lines in one file: the user list, the detail pane, a 500-line privileges editor, and the reporting for a partly-applied grant change (#432). Nothing shared but the file. UserManagement is 309 lines and is now the list and its dialogs. UserDetail carries the detail pane and its grant views. PrivilegesEditor is its own file. grantReporting holds describePartialFailure and setsEqual — the part that explains a half-applied change, which is worth finding without scrolling past five hundred lines of checkbox grid. PrivilegesEditor is still 519 lines, and that is deliberate rather than overlooked. It is one coherent thing — a grid of privileges with a diff and a preview — and splitting it further would need a reason beyond the line count. The file-per-concern boundary is where the seams actually were. A pure move: no behaviour changed, and the 96 existing admin tests passing is what says so. With #619, AdminPanel is 65 lines and no admin file is over 520. Closes #432 Co-Authored-By: Claude Opus 5 <[email protected]>
EVWorth
force-pushed
the
refactor/user-management-split
branch
from
September 10, 2026 12:28
ad5203a to
9f43107
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #432. Stacked on #619 (the AdminPanel half).
1135 lines in one file: the user list, the detail pane, a 500-line privileges editor, and the reporting for a partly-applied grant change. Nothing shared but the file.
UserManagement.tsxUserDetail.tsxPrivilegesEditor.tsxgrantReporting.tsgrantReportingholdsdescribePartialFailureandsetsEqual— the part that explains a half-applied change, which is worth finding without scrolling past five hundred lines of checkbox grid.PrivilegesEditor is still 519 lines, deliberately
It's one coherent thing — a grid of privileges with a diff and a preview — and splitting it further would need a reason beyond the line count. The file-per-concern boundary is where the seams actually were.
A pure move
No behaviour changed, and the 96 existing admin tests passing is what says so.
With #619,
AdminPanelis 65 lines and no admin file is over 520.Verification
Unit 2127, browser 297, 0 lint errors.