Repository navigation
User management: split users into Admins, Active Students, and Inactive Students tabs - #160
Merged
Merged
Conversation
Closed
…, Inactive Students)
Copilot
AI
changed the title
[WIP] Add user management page with tabs for admins and students
User management: split users into Admins, Active Students, and Inactive Students tabs
Jun 9, 2026
Contributor
|
@copilot review the branches merge conflicts and resolve. There already is changes to the schema for admin and student active status (isActive). Review Main branch and determine how to integrate and smoothly add these features on the Users management pages. |
Author
Resolved. The merge brought in everything from
All Go tests pass after the merge. |
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.
The User Management page showed all users in a single undifferentiated table. The page now separates users into three tabs based on
is_adminandis_activeflags, and refreshes automatically after any edit. This PR is rebased on top ofmainwhich added theis_activeschema column (migration007_add_user_is_active) and related API/exam active-user controls.static/admin.html<tbody>static/js/admin/users.jsloadUsers()routes each user into the correct<tbody>based onis_admin/is_active:is_admin→ Admins!is_admin && is_active→ Active Students!is_admin && !is_active→ Inactive StudentseditUser()— populate theuserIsActivecheckbox using the saferuser.is_active !== falsenull-guard (defaults totruewhen the field is absent), adopted frommainshowCreateUserModal()— reset theuserIsActivecheckbox to checkedsaveUser()— includeis_activein the PUT/POST payload so toggling a student's status persists and triggers a re-sort on next load