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

Implement an editing mode for the profile page #113

Open
10 tasks
rowantran opened this issue Nov 18, 2021 · 0 comments
Open
10 tasks

Implement an editing mode for the profile page #113

rowantran opened this issue Nov 18, 2021 · 0 comments
Labels
task This is a task belonging to a user story user-story-7-profile-page

Comments

@rowantran
Copy link
Contributor

rowantran commented Nov 18, 2021

Acceptance criteria:

  • There is some interface element allowing the user to enter an editing mode on their profile page.
  • After entering the editing mode, there is an interface element allowing the user to exit this mode.
  • The add block button implemented in Allow adding new blocks on profile page #112 will only be accessible after entering this editing mode.
  • While in this editing mode, the displayed blocks will show placeholders rather than their actual values, e.g. the user list block will display "User List" instead of the actual user list.
  • Apart from adding blocks, the user can also reorder blocks in this mode.
    • Since each block currently corresponds to a single row, we can just give each row buttons that move it up and down in the blocks array in the state.
  • The user can also edit blocks in this mode. Each block should have an edit button (if it has any inputs) that brings up the same modal from Allow adding new blocks on profile page #112, pre-populated with the current configuration, and allows the user to change the values.
  • The user can also delete blocks in this mode. Each block should have a button that deletes it and its row.
  • After exiting the editing mode, the updated list of blocks will be sent to the backend and the list will be reloaded.
  • The updated list of blocks will no longer be sent to the backend immediately after adding a block (undoes changes from Allow adding new blocks on profile page #112.)

Notes: originally envisioned this using drag-and-drop, but the amount of additional work required would be large so I don't think it's feasible. instead we can just use buttons to rearrange the rows

@rowantran rowantran added task This is a task belonging to a user story user-story-7-profile-page labels Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task This is a task belonging to a user story user-story-7-profile-page
Projects
None yet
Development

No branches or pull requests

1 participant