From a1e415aee42ea4ba158592120b7580e76f66ca76 Mon Sep 17 00:00:00 2001 From: chark1es Date: Wed, 28 May 2025 10:16:03 -0700 Subject: [PATCH] improve ui/ux for officer management --- .../OfficerManagement/OfficerManagement.tsx | 208 +++++++++++++----- 1 file changed, 157 insertions(+), 51 deletions(-) diff --git a/src/components/dashboard/OfficerManagement/OfficerManagement.tsx b/src/components/dashboard/OfficerManagement/OfficerManagement.tsx index 76348ec..689a41a 100644 --- a/src/components/dashboard/OfficerManagement/OfficerManagement.tsx +++ b/src/components/dashboard/OfficerManagement/OfficerManagement.tsx @@ -1831,61 +1831,167 @@ export default function OfficerManagement() { {/* Bulk Actions Section */} -
-

- - - - Bulk Actions -

-
-
-
- - +
+
+
+
+
+ + + +
+
+
+
+

Bulk Actions

+

Manage multiple officers simultaneously

-
-
- Select officers from the table below + {selectedOfficers.length > 0 && ( +
+
+ {selectedOfficers.length} selected +
+ )} +
+ +
+ {/* Enhanced Bulk Type Change Section */} +
+
+
+ + + +
+
+

Change Officer Type

+

Update the type for selected officers

+
+
+ +
+
+ + +
+ + + + {/* Enhanced Validation Hints */} +
+ {selectedOfficers.length === 0 ? ( +

+ + + + Select officers from the table below to enable bulk actions +

+ ) : !bulkActionType ? ( +

+ + + + Choose an officer type for the {selectedOfficers.length} selected officer{selectedOfficers.length !== 1 ? 's' : ''} +

+ ) : ( +

+ + + + Ready to update {selectedOfficers.length} officer{selectedOfficers.length !== 1 ? 's' : ''} to {bulkActionType} +

+ )} +
+
-
-

Quick Actions

- -
- Use this button at the end of the academic year to archive current officers. - {!isCurrentUserAdmin && " Only administrators can perform this action."} + {/* Enhanced Quick Actions Section */} +
+
+
+ + + +
+
+

Quick Actions

+

Administrative operations for officer management

+
+
+ +
+ + +
+
+
+ + + +
+
+

End of Year Action

+

+ Use this button at the end of the academic year to archive current officers and prepare for new leadership. + {!isCurrentUserAdmin && " Only administrators can perform this action."} +

+ {isCurrentUserAdmin && ( +
+ This will set all General & Executive officers to "Past" status +
+ )} +
+
+