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

[VPS-172](5) Edit functionality to the Manage Groups table within the website #172

Open
JordanBlenn opened this issue Apr 29, 2024 · 0 comments
Assignees

Comments

@JordanBlenn
Copy link
Contributor

Description:

AS A: staff member uploading/controlling groups
I WANT: to be able to edit the Manage Groups table on the website
SO THAT: I don't have to reupload a csv file whenever I want to alter groups.

AC's:

  1. An email column is added to the "Manage Groups" table, containing the student's email.
  2. When you click on a row in the groups table, it selects that row.
  3. When a row is selected:
  • If right clicked, it gives the option to "edit" or "delete", using the same style of when you right click on a scene on the edit scenario page.
  1. When the "edit" option is selected, it allows the names and emails in the row's data to be edited
  • If a change is made, a previously inactive "Save Changes" button on the left of Upload is now active and can be clicked (this save button works similarly to the "Save" button for a scene.
  1. If the "Save Changes button is clicked:
  • all changes made to the table are updated in the database and backend.
  • The "Save Changes: button goes inactive again
  1. When the "delete" option is selected, it brings up a modal prompting the user if they are sure they want to delete this group

Technical Discussion:

  • blocked by [VPS-170] (5) (3) Connecting the CSV upload file to the Upload CSV Button #170
    Extra logic for saving edited changes:
  • Multiple rows' data can be changed before the "Save Changes" button is pressed, and all the text is updated and stored in the frontend.
  • If the page is left before the "Save Changes" button is clicked, no changes are saved and the data reverts back to whatever is in the database the next time the page is opened.
@JordanBlenn JordanBlenn changed the title [VPS-171] Edit functionality to the Manage Groups table within the website [VPS-172] Edit functionality to the Manage Groups table within the website Apr 29, 2024
@JordanBlenn JordanBlenn changed the title [VPS-172] Edit functionality to the Manage Groups table within the website [VPS-172](5) Edit functionality to the Manage Groups table within the website May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants