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

Enable to delete a product #36

Merged
merged 1 commit into from
Jul 6, 2024
Merged

Enable to delete a product #36

merged 1 commit into from
Jul 6, 2024

Conversation

UwicyezaG
Copy link
Contributor

@UwicyezaG UwicyezaG commented Jun 25, 2024

Description

The seller should be able to delete a specific item in their collection such that they can remove items they no longer deal in or were erroneously added. This functionality ensures that sellers can manage their product listings effectively and maintain an accurate inventory.

Definition of Done:

  • Sellers can see and use the delete option for each item in their inventory.
  • Deletion requires seller confirmation to proceed.
  • Successfully deleted items display a confirmation message.
  • Canceled deletions do not alter the inventory.
  • Errors, such as attempting to delete a non-existent item or encountering deletion failures, are appropriately managed and communicated to the seller.

Screenshots

Screenshot (13)
Screenshot (11)
Screenshot (15)

@UwicyezaG UwicyezaG added frontend Related to frontend in progress task has already been started labels Jun 25, 2024
Copy link

netlify bot commented Jun 25, 2024

Deploy Preview for knights-fecommerce ready!

Name Link
🔨 Latest commit aac9a68
🔍 Latest deploy log https://app.netlify.com/sites/knights-fecommerce/deploys/6687de58f08a640008e0470c
😎 Deploy Preview https://deploy-preview-36--knights-fecommerce.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jun 25, 2024

Deploy Preview for knight-fe ready!

Name Link
🔨 Latest commit aac9a68
🔍 Latest deploy log https://app.netlify.com/sites/knight-fe/deploys/6687de584856df0008d7bed8
😎 Deploy Preview https://deploy-preview-36--knight-fe.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@coveralls
Copy link

Coverage Status

coverage: 86.803%. remained the same
when pulling da05ef4 on ft-delete-product
into 911c279 on develop.

@UwicyezaG UwicyezaG added Ready for reviews and removed frontend Related to frontend in progress task has already been started labels Jun 27, 2024
faid-terence

This comment was marked as resolved.

@faid-terence faid-terence self-requested a review June 30, 2024 19:24
Copy link
Collaborator

@faid-terence faid-terence left a comment

Choose a reason for hiding this comment

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

@UwicyezaG
Please rebase with develop and resolve the conflicts
And increase the test coverage !!

@faid-terence faid-terence linked an issue Jun 30, 2024 that may be closed by this pull request
@UwicyezaG UwicyezaG force-pushed the ft-delete-product branch 2 times, most recently from 999ac7d to cc73f9f Compare July 1, 2024 14:22
@coveralls
Copy link

Coverage Status

coverage: 85.767% (-2.0%) from 87.757%
when pulling cc73f9f on ft-delete-product
into 523bb6d on develop.

@UwicyezaG UwicyezaG force-pushed the ft-delete-product branch 3 times, most recently from b1ef24b to 6304a35 Compare July 2, 2024 12:15
@coveralls
Copy link

Coverage Status

coverage: 87.403% (-0.4%) from 87.754%
when pulling ef9883d on ft-delete-product
into 86a5319 on develop.

@UwicyezaG UwicyezaG force-pushed the ft-delete-product branch 2 times, most recently from 6c25367 to 3547f19 Compare July 3, 2024 20:19
@coveralls
Copy link

Coverage Status

coverage: 87.439% (-0.3%) from 87.754%
when pulling 3547f19 on ft-delete-product
into 86a5319 on develop.

@coveralls
Copy link

Coverage Status

coverage: 87.403% (-0.4%) from 87.754%
when pulling 3547f19 on ft-delete-product
into 86a5319 on develop.

@UwicyezaG UwicyezaG force-pushed the ft-delete-product branch 2 times, most recently from 64da819 to b9d81f6 Compare July 3, 2024 21:19
@coveralls
Copy link

Coverage Status

coverage: 88.221% (+0.5%) from 87.754%
when pulling b9d81f6 on ft-delete-product
into 86a5319 on develop.

const isAdmin = decodedToken?.role.toLowerCase() === 'admin';
const isVendor = decodedToken?.role.toLowerCase() === 'vendor';
const isBuyer = decodedToken?.role.toLowerCase() === 'buyer';
const isAdmin = decodedToken?.userType.toLowerCase() === 'admin';
Copy link
Contributor

Choose a reason for hiding this comment

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

@UwicyezaG You must use the value from 'role' instead of 'userType', as the token does not contain userType.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@UwicyezaG Are we using userType or role ?

@faid-terence
Copy link
Collaborator

@UwicyezaG
Work on the change requests and rebase with develop to resolve the conflicts

@coveralls
Copy link

Coverage Status

coverage: 87.599% (-0.4%) from 87.967%
when pulling f51257f on ft-delete-product
into b6fa239 on develop.

@UwicyezaG UwicyezaG force-pushed the ft-delete-product branch 2 times, most recently from 4dddc9f to a919981 Compare July 5, 2024 10:31
@coveralls
Copy link

Coverage Status

coverage: 87.599% (-0.4%) from 87.967%
when pulling a919981 on ft-delete-product
into b6fa239 on develop.

@coveralls
Copy link

Coverage Status

coverage: 88.069% (+0.1%) from 87.967%
when pulling aac9a68 on ft-delete-product
into b6fa239 on develop.

Copy link
Collaborator

@faid-terence faid-terence left a comment

Choose a reason for hiding this comment

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

PR Approved @UwicyezaG !

@faid-terence faid-terence merged commit e5468d2 into develop Jul 6, 2024
15 checks passed
Calebgisa72 pushed a commit that referenced this pull request Jul 6, 2024
Calebgisa72 pushed a commit that referenced this pull request Jul 6, 2024
Calebgisa72 pushed a commit that referenced this pull request Jul 6, 2024
Calebgisa72 pushed a commit that referenced this pull request Jul 6, 2024
Calebgisa72 pushed a commit that referenced this pull request Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A seller should be able to delete a specific item
9 participants