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

Refactor Archive Events Flow to Delete Events Flow #157

Closed
Aokijiop opened this issue Apr 9, 2024 · 0 comments · Fixed by #162
Closed

Refactor Archive Events Flow to Delete Events Flow #157

Aokijiop opened this issue Apr 9, 2024 · 0 comments · Fixed by #162
Assignees

Comments

@Aokijiop
Copy link
Collaborator

Aokijiop commented Apr 9, 2024

Description

  • Currently on HomePage, there is a "Select" button which allows for the selection of EventCard components
  • Upon selection, admins can press the "Archive Event(s)" button to switch the value of the is_archived column for the corresponding row in our "events" table from false to true, thus archiving the event
  • Your job for this task will be to do two things:
    • Move over the "Select" button and its functionality from HomePage to EventPage
    • Refactor the ArchiveButton (Can be found in HomePage) to DeleteButton
      • DeleteButton should be placed in EventPage
      • DeleteButton should be absolute positioned in the bottom left corner and styled appropriately to match the Hi-Fi design
    • Refactor the DeselectButton (Can be found in HomePage) to CancelButton
      • CancelButton should be placed in EventPage
      • CancelButton should be positioned in the top right above the grid of EventCard components and styled appropriately to match the Hi-Fi design
    • Refactor the ArchiveEventsModal (Which is brought up upon pressing ArchiveButton) to DeleteEventsModal
      • image
      • The events listed should be rendered based on what EventCards were selected

Acceptance Criteria

  • The "Select" button and corresponding functionality has been moved from HomePage to EventPage
  • ArchiveButton, DeselectButton, and ArchiveEventsModal have been refactored as specified
  • Refactored designs match the specified designs in the Hi-Fi figma

Resources

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

Successfully merging a pull request may close this issue.

3 participants