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

[feature]: Re-factor Edit Shipping to use Dialog #2796

Open
1 of 8 tasks
tjwiebell opened this issue Oct 20, 2020 · 11 comments
Open
1 of 8 tasks

[feature]: Re-factor Edit Shipping to use Dialog #2796

tjwiebell opened this issue Oct 20, 2020 · 11 comments
Assignees
Labels
enhancement New feature or request help wanted Eligible for community contribution. Priority: P2 Progress: ready for dev Severity: S3

Comments

@tjwiebell
Copy link
Contributor

Description

Re-factor the Edit Shipping component on the CheckoutPage to use the Dialog component. This will ensure that all modals and dialogs in the app have a consistent look at feel.

Please let us know what packages this feature is in regards to:

  • venia-concept
  • venia-ui
  • pwa-buildpack
  • peregrine
  • pwa-devdocs
  • upward-js
  • upward-spec
  • create-pwa
@tjwiebell tjwiebell added enhancement New feature or request help wanted Eligible for community contribution. Priority: P2 Severity: S3 labels Oct 20, 2020
@m2-assistant
Copy link

m2-assistant bot commented Oct 20, 2020

Hi @tjwiebell. Thank you for your report.
To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this


@m2-assistant
Copy link

m2-assistant bot commented Oct 23, 2020

Hi @jemoon! 👋
Thank you for collaboration. Only members of Community Contributors Team are allowed to be assigned to the issue. Please use @magento add to contributors team command to join Contributors team.

@m2-assistant
Copy link

m2-assistant bot commented Oct 23, 2020

Hi @jemoon! 👋
Thank you for joining. Please accept team invitation 👉 here 👈 and add your comment one more time.

@jemoon
Copy link

jemoon commented Oct 23, 2020

@magento I am working on this

@ericerway
Copy link

@jemoon any updates? Thanks for your help!

@ericerway ericerway removed the Event: mageconf MageConf 2020 label Nov 12, 2020
@jemoon
Copy link

jemoon commented Nov 13, 2020

@ericerway @tjwiebell sorry but I wont be able to provide good quality PR as I got stuck so please unassign this one from me.

@Frodigo
Copy link
Contributor

Frodigo commented Mar 16, 2021

@magento I am working on this

@sirugh
Copy link
Contributor

sirugh commented Mar 16, 2021

@magento export issue to JIRA project PWA as Story

@github-jira-sync-bot
Copy link

✅ Jira issue (https://jira.corp.magento.com/browse/PWA-1571) is successfully created for this issue.

@Frodigo
Copy link
Contributor

Frodigo commented Apr 21, 2021

I met an issue with the Dialog component here.

When I changed the Edit shipping form to use Dialog, the initial values of the form are no populated, and I see errors like this:

Attempting to get field country, but it does not exist 
    at Region (webpack-internal:///../venia-ui/lib/components/Region/region.js:50:14)

Here is the code: https://gist.github.com/Frodigo/e106254dc9d30b774475155370f51430 to reproduce this issue on a local instance, you can replace a file packages/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.js with mine one.

Does anyone see what the problem is or can indicate where I should look for the cause?

Thanks,
Marcin

@sirugh
Copy link
Contributor

sirugh commented May 27, 2021

@Frodigo I'm sorry I must have missed your question.

I don't think the country field warnings are related, they seem to be coming from informed after we upgraded it.

That said, I wonder if the dialog is not passing initial values properly. Here you can see that formValues is an object that has a property initialValues whereas in your code you have formValues={initialValues}. You'll need to pass formValues={{ initialValues }}

Let us know if you're still working on this. Apologies again for the delay in response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Eligible for community contribution. Priority: P2 Progress: ready for dev Severity: S3
Projects
None yet
Development

No branches or pull requests

6 participants