platelet-app / platelet

Dispatch system for emergency volunteer couriers.
https://platelet.app
Apache License 2.0
38 stars 10 forks source link

Enable/disable users and locations. Lambda improvements. #157

Closed duckbytes closed 1 year ago

duckbytes commented 1 year ago

Adds a disable button to both users and locations, along with styling on the list views.

Updates some lambda functions to use the appsync operations layer and other improvements.

Now only admins can change the email address of a user and it properly updates on Cognito as well as appsync.

Adds a reset password button to user detail. This resends the welcome email and gives the user a new temporary password.

codecov-commenter commented 1 year ago

Codecov Report

Merging #157 (8bdb28a) into master (2ac407b) will increase coverage by 0.24%. The diff coverage is 83.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##           master     #157      +/-   ##
==========================================
+ Coverage   71.57%   71.81%   +0.24%     
==========================================
  Files         301      305       +4     
  Lines       10025    10155     +130     
  Branches     2637     2696      +59     
==========================================
+ Hits         7175     7293     +118     
- Misses       2629     2642      +13     
+ Partials      221      220       -1     
Impacted Files Coverage Δ
src/components/LocationCard.js 0.00% <0.00%> (ø)
src/components/UserCard.js 0.00% <0.00%> (ø)
src/scenes/LocationsList.js 0.00% <0.00%> (ø)
src/scenes/UsersList.js 0.00% <ø> (ø)
...scenes/UserDetail/components/ResetUserPassword.tsx 45.00% <45.00%> (ø)
...ocationDetail/components/EnableDisableLocation.tsx 88.23% <88.23%> (ø)
...scenes/UserDetail/components/EnableDisableUser.tsx 88.46% <88.46%> (ø)
src/components/CoordinatorPicker.js 89.65% <100.00%> (ø)
src/components/FavouriteLocationsSelect.js 91.30% <100.00%> (ø)
src/components/RecentlyAssignedUsers.js 94.52% <100.00%> (+0.49%) :arrow_up:
... and 6 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more