Admin Fixes, Performance Improvements & Next Steps
Major Issue Found The biggest issue discovered during testing was: Users could not create a medication when the inventory table was empty This completely blocked basic functionality for new setups. This has now been fixed, and medications can be created properly even when starting from an empty state. Admin Improvements A large portion of the work focused on cleaning up the employee management flow: Added automatic UserProfile creation during registration Implemented a displayName update endpoint using userId Refactored the Admin workflow to support: Creating users with a name + role Updating the display name directly from the table Proper role assignment with cleanup of old roles Replaced the role input with a dropdown instead of a text box Added logic to detect what actually changed: Name only Role only Both No changes Updated notifications so they reflect the correct action Bug Fixes User testing helped uncover and fix several issue...