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

Edit/Delete Catalog Events #25

Closed
michellelin1 opened this issue Jan 21, 2024 · 0 comments · Fixed by #37
Closed

Edit/Delete Catalog Events #25

michellelin1 opened this issue Jan 21, 2024 · 0 comments · Fixed by #37
Assignees
Labels

Comments

@michellelin1
Copy link
Member

michellelin1 commented Jan 21, 2024

Instructions

  • Currently, we are able to add and view all catalog events, but the user isn't able to edit and delete events.
  • When the user hovers over a row in the catalog table, edit and delete icons should appear on the right side of the table (work with Vy from the design team and look to Lo-fi design)
  • When the user clicks the edit icon, a modal of the catalog form populated with event data appears where the user can edit and save the event.
    • Ideally, we’d like to reuse the current catalog form component to edit them as well. To do so, we’ll modify the current catalog form to accept an event (see below) as an optional prop. If the event prop is passed in, it’ll indicate that the user wants to edit the event, so we’ll send a PUT request to update the event. If the event prop is not provided, we’ll send a POST request to create a new event just as before.
      • event = {id, host, title, eventType, subject, description, year, location (we're actually getting rid of that), season}
  • When the user clicks on the delete icon, a small modal appears asking the user to confirm or cancel their decision

Notes

  • N/A

Acceptance Criteria

  • Check that the events are deleted on in the DB
  • After each edit/delete event, ensure that the changes are reflected on the catalog page without needing to reload the page. If it’d be easier, feel free to make the necessary changes in the backend to make this work.

Resources

@ThatMegamind ThatMegamind changed the title Edit/delete catalog events Edit/Delete Catalog Events Jan 21, 2024
@ThatMegamind ThatMegamind linked a pull request Feb 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants