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

[PWA-632] My Account: Wishlist: Actions Menu and Edit Flow #3049

Merged
merged 35 commits into from
Apr 8, 2021

Conversation

anthoula
Copy link
Contributor

@anthoula anthoula commented Mar 10, 2021

Description

Add ability to edit a wishlist's name and visibility (public or private). Add additional action menu panel.

Related Issue

PWA-632

Acceptance

Verification Stakeholders

@dpatil-magento

Specification

Verification Steps

  1. Sign in to account
  2. Go to Favorites List
  3. Click on action menu kebob for a wishlist
  4. See new action menu options (Edit)
  5. Click Edit and edit name/visibility
  6. Name and visibility of wishlist updates

Screenshots / Screen Captures (if appropriate)

Checklist

  • I have added tests to cover my changes, if necessary.
  • I have added translations for new strings, if necessary.
  • I have updated the documentation accordingly, if necessary.

anthoula added 8 commits March 4, 2021 16:54
- create new dialog modals for list actions, and edit wishlist
- add new dialogs to wishlist page
- add button handlers for modals
- pass id from mockdata to talon
- add error handling for updateWishlist
- pre-populate edit modal values
- add visibility field to customer wishlist query
- add visibility field to mock data
- use error message from mutation
- update translations
- remove generic error handling
- update error message styles
@anthoula anthoula added the version: Minor This changeset includes functionality added in a backwards compatible manner. label Mar 10, 2021
@PWAStudioBot
Copy link
Contributor

PWAStudioBot commented Mar 10, 2021

Messages
📖

Associated JIRA tickets: PWA-632.

📖 DangerCI Failures related to missing labels/description/linked issues/etc will persist until the next push or next nightly build run (assuming they are fixed).
📖

Access a deployed version of this PR here. Make sure to wait for the "pwa-pull-request-deploy" job to complete.

Generated by 🚫 dangerJS against a36af5f

Copy link
Contributor

@tjwiebell tjwiebell left a comment

Choose a reason for hiding this comment

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

Posting what I have so far until #3041 gets us hooked up to live data. This is mostly there, really nice work 👍

- remove unnecessary deps
- use public interfaces
- add names to mocks
- update signature
- mock mutation
- name function mocks
- update snapshots
@anthoula anthoula requested a review from tjwiebell April 1, 2021 18:57
@anthoula anthoula requested a review from sirugh April 6, 2021 20:56
refetchQueries: [{ query: getCustomerWishlistQuery }],
awaitRefetchQueries: true
});
await setCurrentDialog(dialogs.NONE);
Copy link
Contributor

Choose a reason for hiding this comment

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

As far as I know this is async but awaiting doesn't do anything. May as well remove the await.

sirugh
sirugh previously approved these changes Apr 7, 2021
Copy link
Contributor

@sirugh sirugh left a comment

Choose a reason for hiding this comment

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

This is much cleaner now. The wishlist.js component no longer has a bunch of extra code in the talon. Instead, that responsibility is passed down to the backend-specific component, so the CE wishlist page will be much lighter in that respect.

Good job! I thought it would be more difficult :)

- update tests for new ActionMenu component
sirugh
sirugh previously approved these changes Apr 7, 2021
@dpatil-magento
Copy link
Contributor

QA Approved.

@dpatil-magento dpatil-magento merged commit 96c6236 into magento:develop Apr 8, 2021
@dpatil-magento dpatil-magento deleted the PWA-632 branch April 8, 2021 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:extensions pkg:peregrine pkg:venia-ui Progress: done version: Minor This changeset includes functionality added in a backwards compatible manner.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants