feat: implement privilege permissions table and enhance user detail views

- Added a new PrivilegePermissionsTable component to display permissions associated with user privileges in a structured format.
- Refactored DetailPermissions and UserPageDetail components to utilize the new PrivilegePermissionsTable for better organization of privilege information.
- Introduced employeeId support in user management, allowing for enhanced user detail views and improved data handling.
- Updated validation schemas and unit tests to accommodate new employee and privilege relationships.

These changes improve the user management experience by providing clearer visibility into user privileges and associated employee details.
This commit is contained in:
shancheas
2026-08-27 12:22:27 +07:00
parent eadd4e3c81
commit 105cf3030a
18 changed files with 416 additions and 89 deletions
@@ -680,7 +680,8 @@ export function EnterpriseDataTable<E extends BaseEntity>(props: EnterpriseDataT
// Define the default Status column
const statusColumn: ColDef<E> = {
colId: 'status',
maxWidth: 130,
minWidth: 100,
maxWidth: 100,
suppressHeaderMenuButton: true, // Suppress menu to keep the header clean