pramod_Bug#126ManageRole - Role selection UI bugs, empty state handling, and async refactor #53

Merged
vikas.nale merged 3 commits from pramod_Bug#126ManageRole into Issues_April_5W 2025-04-30 11:25:17 +00:00
Collaborator

I made the following improvements:

Prevented previously selected employee roles from displaying when switching between employees.

Roles now reset correctly in the form when a new employee is selected. Checkboxes reflect only the current employee’s assigned roles.

Removed the Zod validation that required at least one role. Users can now submit the form even when all roles are unchecked.

Replaced .then() chains with async/await for better readability and consistency in useEmployeeRoles.

Cleanup: Removed all console.log statements across related components.

I made the following improvements: Prevented previously selected employee roles from displaying when switching between employees. Roles now reset correctly in the form when a new employee is selected. Checkboxes reflect only the current employee’s assigned roles. Removed the Zod validation that required at least one role. Users can now submit the form even when all roles are unchecked. Replaced .then() chains with async/await for better readability and consistency in useEmployeeRoles. Cleanup: Removed all console.log statements across related components.
pramod.mahajan added 3 commits 2025-04-29 18:40:42 +00:00
- Reset checkboxes when employee changes
- Allow submission when no roles are selected
- Fixed zod validation to support empty selections
vikas.nale merged commit 84f0e52f90 into Issues_April_5W 2025-04-30 11:25:17 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/marco.pms.web#53
No description provided.