Skip to content

Conversation

@simonLeary42
Copy link
Collaborator

@simonLeary42 simonLeary42 commented Dec 22, 2025

  • Adds columns to user-mgmt.php for each user flag
  • Adds a new <table> class column-toggle: tables.js will insert checkboxes for each column to toggle the display style for the nth-child of each <tr> using jquery
  • Adds a new <th> class hidden-by-default
Screen.Recording.2025-12-23.at.8.30.22.AM.mov

@simonLeary42 simonLeary42 changed the title add columns to user-mgmt (qualified only) add flags to user-mgmt Dec 22, 2025
@simonLeary42 simonLeary42 force-pushed the flags-in-user-mgmt branch 3 times, most recently from dae430e to d1434da Compare December 22, 2025 20:30
@simonLeary42 simonLeary42 marked this pull request as ready for review December 22, 2025 22:34
@simonLeary42 simonLeary42 requested a review from Copilot December 22, 2025 22:34
@simonLeary42 simonLeary42 changed the title add flags to user-mgmt add user flags to user-mgmt.php Dec 22, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances the user management interface by adding user flag columns to the table, removing the restriction that only qualified users are displayed, and implementing a new column toggle feature that allows users to show/hide columns dynamically.

Key changes:

  • Refactored LDAP methods to fetch all users instead of only qualified users
  • Added JavaScript functionality to enable column visibility toggling via checkboxes
  • Extended the user management table to display user flag data with columns hidden by default

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
webroot/js/tables.js Implements column toggle functionality with checkboxes for tables with the column-toggle class, allowing dynamic show/hide of columns
webroot/admin/user-mgmt.php Adds user flag columns to the table, updates to use new LDAP methods that fetch all users, and applies column-toggle class to enable the new feature
resources/lib/UnityLDAP.php Refactors methods to remove qualified-user-only filtering: renames getQualifiedUsersAttributes to getAllUsersAttributes and getQualifiedUID2PIGIDs to getUID2PIGIDs

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@simonLeary42 simonLeary42 mentioned this pull request Dec 23, 2025
10 tasks
@simonLeary42 simonLeary42 marked this pull request as draft December 26, 2025 19:33
@simonLeary42
Copy link
Collaborator Author

Needs a rework after #456

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.

2 participants