Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EPIC: User Profile Page #5

Open
dogezen opened this issue Oct 21, 2024 · 0 comments
Open

EPIC: User Profile Page #5

dogezen opened this issue Oct 21, 2024 · 0 comments

Comments

@dogezen
Copy link

dogezen commented Oct 21, 2024

Viewing Profiles
As part of the cohort manager, each user should have their personal profile page that displays their details. As a user, I would like to view other users' profile pages regardless of which cohort they are in or whether they are teachers or not.

A user should be able to view their own profile by clicking their initials in the top right corner of the app and clicking the Profile option in the pop-up menu.

A user with id=12 should have their profile page at the path /profile/12

In the profile page view, the users' details should not be editable and just presented as text instead of input fields. This page should have a button with the text "Edit" that will take the user to the edit profile page.

This button should only be visible when the user visiting this profile page is ether:

  • a teacher
  • the user that page belongs to

Design

Editing profiles

As a user I should be able to edit the the details on my own profile page. If I am a student, I should not be able to edit my role or the cohort I am in, only teachers are allowed to do this. The password should only be editable if I am the owner of that profile page.

As a teacher, I need to be able to change a student into a teacher and vice-versa, or change the cohort they are in. Teachers should be able to do so by visiting the student's profile page.

A user with id=12 should have their edit profile page at the path profile/12/edit

If a student visits another student's or a teachers edit page, they should be redirected to the normal profile page for that user.

Teachers are allowed to visit any other user's profile/:id/edit page and submit updated data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant