fix(super-admin): improve super admin panel UX and add user management#3667
Open
gorkem-bwl wants to merge 1 commit intodevelopfrom
Open
fix(super-admin): improve super admin panel UX and add user management#3667gorkem-bwl wants to merge 1 commit intodevelopfrom
gorkem-bwl wants to merge 1 commit intodevelopfrom
Conversation
## Changes ### Login redirect - Super admin now always redirects to /super-admin after login instead of the regular dashboard, regardless of whether organizations exist. ### Organizations page (/super-admin) - Removed decorative icons from table cells and action buttons. - Renamed "Users" action button to "View users". - Set 8px gap between action buttons for consistent spacing. ### All Users page (/super-admin/users) - Added "Invite user" button with modal (includes organization picker). - Added row click to open an edit user modal (name, surname, email, role, joined date, last login). - Removed decorative icons from table cells and action buttons. - Removed inline user count text (moved to sidebar pill instead). - Set 8px gap between filter controls for consistent spacing. - Extracted EditUserModal and InviteUserModal as isolated components to reduce parent state from 16+ variables down to 3 toggles. ### Org Users page (/super-admin/organizations/:id/users) - Removed decorative icons from email column and remove button. ### Sidebar - Added user count pill badge on the "Users" menu item. - Uses a dedicated lightweight count endpoint instead of fetching all users. ### Settings page (/super-admin/settings) - Changed title from "Super Admin Settings" to "Settings". - Added explicit breadcrumbs with settings icon. - Shows "Password" breadcrumb when on the password tab. ### Backend - Added PATCH /super-admin/users/:id endpoint for editing user details. - Added GET /super-admin/users/count endpoint for sidebar badge. - Update query uses CTE with RETURNING to avoid a second SELECT. ### Code quality - Extracted ROLE_OPTIONS and ROLE_COLORS as shared constants in roles.ts, eliminating duplication across 3 files. - Replaced native <select> elements with the project Select component.
MuhammadKhalilzadeh
approved these changes
Apr 6, 2026
Collaborator
MuhammadKhalilzadeh
left a comment
There was a problem hiding this comment.
Dashboard does not have any errors on the /super-admin view
And files look fine
Thanks @gorkem-bwl 👍🏻
Let's wait for @HarshP4585 checking it as well
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.
Summary
/super-adminafter login instead of the regular dashboard.PATCH /super-admin/users/:idandGET /super-admin/users/count.ROLE_OPTIONSandROLE_COLORSas shared constants. ExtractedEditUserModalandInviteUserModalas isolated components. Replaced native<select>with projectSelectcomponent. Backend update query usesRETURNINGCTE to eliminate redundant SELECT.