woocommerce / google-listings-and-ads

Sync your store with Google to list products for free, run paid ads, and track performance straight from your store dashboard.
https://woo.com/products/google-listings-and-ads/
GNU General Public License v3.0
45 stars 21 forks source link

Onboarding: Remove Language Setting UI #2489

Open joemcgill opened 1 month ago

joemcgill commented 1 month ago

Part of https://github.com/woocommerce/google-listings-and-ads/issues/2458

On the second page of onboarding, the first section a user is shown is the "Audience" section, which includes a "Language" setting that cannot be modified by the user. Remove this setting to reduce unnecessary clutter from this screen.

Before

Image

After

Image

Acceptance Criteria

Implementation Brief

The page component for the second step of onboarding is the SetupFreeListings component located in js/src/components/free-listings/setup-free-listings/index.js. This page imports FormContent which includes the ChooseAudienceSection component that needs to be edited (in js/src/components/free-listings/choose-audience-section/choose-audience-section.js) to remove the entire subsection that contains the language settings.

Test Coverage

Definition Questions

  1. ~Does the SetupFreeListings component need to be shared still between onboarding and EditFreeCampaign, or should we take this opportunity to clean things up and move this component into the js/src/setup-mc/setup-stepper/ folder?~ A: this will remain shared.
  2. Is there any back-end infrastructure that will need to be updated or removed if we're no longer showing this setting in the UI of the application?
eason9487 commented 1 month ago
  1. Does the SetupFreeListings component need to be shared still between onboarding and EditFreeCampaign, or should we take this opportunity to clean things up and move this component into the js/src/setup-mc/setup-stepper/ folder?

Could you elaborate on this idea? I don't understand what is to be cleared in this issue's scope, and why it needs to not share the SetupFreeListings component.

As a reference to past changes, it took a lot of time and effort to share them in the past, so there needs to be a clear reason for taking them apart again. See #288

joemcgill commented 1 month ago

Thanks @eason9487. I wasn't sure whether the EditFreeCampaign component was still in use given all of the changes that have been made to these flows, but that link was helpful. I don't see any reason to reorganize the component structure for now.

@mikkamp I'd still be interested in your feedback about whether you know of any backend concerns related to removing this UI, but we can handle in a separate issue if so.

mikkamp commented 1 month ago

@mikkamp I'd still be interested in your feedback about whether you know of any backend concerns related to removing this UI, but we can handle in a separate issue if so.

I don't see anything, the language is only returned in the mc/target_audience/suggestions endpoint, but it's never actually set in any of the API calls. Later when products get synced it picks up the site language again. So I think the main purpose of that setting was to show that it was using the site locale for syncing products.