SORMAS-Project icon indicating copy to clipboard operation
SORMAS-Project copied to clipboard

User profile screen

Open MateStrysewske opened this issue 6 years ago • 1 comments

The user settings screen should allow them to change their first name, last name, email address and phone numer. Later also the password (see #1092). In addition it should display the user roles (not editable).

Web UI:

  • [ ] Add a "edit profile" button close to the logout button. The button calls UserController.edit for the current user. This may be a good chance to find a better solution for the bad layouting of the logout button.
  • [ ] Make sure the user can only edit the fields mentioned above (except the user has the USER_EDIT user right)
  • [ ] Display the roles of the user

Mobile App:

  • [ ] Add an edit profile button the the navigator menu - close to the user name
  • [ ] Create a UserRead- and UserEditActivity and fragments
  • [ ] Make sure the user can only edit the fields mentioned above (no matter what user rights)
  • [ ] Display the roles of the user in the form
  • [ ] Try to prefill the user's phone number based on the tablet sim card, when the user does not have a phone number yet. This may need additonal android access rights. Make sure the user is able to remove the number without automatically filling it again.

Synchronization:

  • [ ] rename SynchronizeDataAsync.pullInfrastructure to synchronizeInfrastructure. Push the user to the server when it is changed. Don't do a full pullAndPushEntities with all users - we don't want users to be able to edit other users. We haven't done something similar yet, so it's important to find a clean implementation for this.
  • [ ] implement the rest interface for this and call the backend method to save the user. Double check that users are not allowed to edit other users or other fields than the one's mentioned above.

MateStrysewske avatar May 02 '19 08:05 MateStrysewske

@bernardsilenou I have added two point to display the roles of the user in web app and android app. If we also want to display the user rights, we would need to open a popup when clicking a user role, because it will be quite a big list of rights to be displayed. Should I include this here as-well?

MartinWahnschaffe avatar Aug 09 '22 05:08 MartinWahnschaffe

@MartinWahnschaffe Yes please, it would be good to also add it here. Since there can be more than one role per user, should both trigger the popup or just one?

bernardsilenou avatar Aug 18 '22 17:08 bernardsilenou

I think the user roles will be just one click area that opens a pop-up showing combined user rights.

MartinWahnschaffe avatar Aug 25 '22 08:08 MartinWahnschaffe