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

belindas-closet-android_4_176_modify-product-update-page #231

Merged
merged 4 commits into from
Dec 6, 2023

Conversation

intisarosman1
Copy link
Contributor

@intisarosman1 intisarosman1 commented Dec 4, 2023

Resolves #176

This PR modifies the product page so that pressing the edit button on the Product Details page redirects to the Update page where there is a delete button for each product in the category. The admin can then scroll and delete products one by one.

Screenshot 2023-11-29 013542

For manual testing purposes, update the handbag in the 'Accessories' category to be a 24-character hex string as the id in Datasource.kt because MongoDB generates the ObjectId in this format (will otherwise throw an invalid id error).

Related to User Story #183

Copy link
Contributor

@taylorpapke taylorpapke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Everything works great and I am able to add an objectId from my mongoDB for the handbag and it sets isHidden to true when I delete.

The only thing I think would be an improvement (in a future iteration) is to redirect (stay) on the update screen after successful deletion so that I can delete another item without having to click the edit icon button again.

@MuhammadNSC
Copy link
Contributor

This works well for me. It makes it easier to delete multiple products at the same time.

@MuhammadNSC MuhammadNSC closed this Dec 6, 2023
@MuhammadNSC MuhammadNSC reopened this Dec 6, 2023
Copy link
Contributor

@MuhammadNSC MuhammadNSC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good!

@intisarosman1 intisarosman1 merged commit d127d22 into main Dec 6, 2023
2 checks passed
@brinkbrink brinkbrink deleted the feature-176-modify-product-update-page-01 branch December 6, 2023 17:57
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 this pull request may close these issues.

Update.kt Delete Functionality: Modify Product Update Page
3 participants