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

Individual Product Page: Delete and archive button functionality #256

Closed
intisarosman1 opened this issue Mar 8, 2024 · 0 comments · Fixed by #261
Closed

Individual Product Page: Delete and archive button functionality #256

intisarosman1 opened this issue Mar 8, 2024 · 0 comments · Fixed by #261
Assignees
Labels
enhancement New feature or request Sprint 4

Comments

@intisarosman1
Copy link
Contributor

intisarosman1 commented Mar 8, 2024

As a developer, I'd like to add functionality to the delete and archive buttons (frontend to backend integration) along with the appropriate confirmation dialogues.

Related to User Story #255

@intisarosman1 intisarosman1 added enhancement New feature or request Sprint 4 labels Mar 8, 2024
@intisarosman1 intisarosman1 self-assigned this Mar 8, 2024
@intisarosman1 intisarosman1 moved this from Todo to In Progress in Belinda's Closet Mar 8, 2024
@intisarosman1 intisarosman1 changed the title Individual Product Page: Delete, edit, and archive button functionality Individual Product Page: Delete and archive button functionality Mar 9, 2024
intisarosman1 added a commit that referenced this issue Mar 10, 2024
Resolves #256

As a developer, I added functionality to the delete and archive buttons along with confirmation dialogues. When products are deleted or archived from the frontend, they are hidden. They are marked as isHidden (deleted) or isSold (archived) in the database.

I wanted to make the page reroute back to the category page, but the components complicates it and my attempts to incorporate router.back() caused errors.
intisarosman1 added a commit that referenced this issue Mar 12, 2024
* Added functionality to delete button

* Added functionality to delete and archive buttons

Resolves #256

As a developer, I added functionality to the delete and archive buttons along with confirmation dialogues. When products are deleted or archived from the frontend, they are hidden. They are marked as isHidden (deleted) or isSold (archived) in the database.

I wanted to make the page reroute back to the category page, but the components complicates it and my attempts to incorporate router.back() caused errors.

* Routes back to category page after successful deletion

* Created pop up success/error messages
@github-project-automation github-project-automation bot moved this from In Progress to Done in Belinda's Closet Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Sprint 4
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant