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

@W-14146843@ modularize country code source for targeting via extensibility #1445

Merged
merged 6 commits into from
Sep 19, 2023

Conversation

bfeister
Copy link
Collaborator

@bfeister bfeister commented Sep 19, 2023

Description

Currently the useAddressFields.jsx has a hardcoded value for the options dropdown. This means that you can't expand the country options without overriding the whole file (a pattern we want to avoid for making better use of the Template Extensibility feature!)

This request comes from the Adyen team who need to be able to extend this file without overriding this whole file in their accelerator (which would be bad!)

Note that we want to make small changes like this iteratively and not be shy about gradually "decomposing" the app code structure gradually over time

Closes #1408

Types of Changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Documentation update
  • Breaking change (could cause existing functionality to not work as expected)
  • Other changes (non-breaking changes that does not fit any of the above)

Breaking changes include:

  • Removing a public function or component or prop
  • Adding a required argument to a function
  • Changing the data type of a function parameter or return value
  • Adding a new peer dependency to package.json

Changes

  • (change1)

How to Test-Drive This PR

Checklists

General

  • Changes are covered by test cases
  • CHANGELOG.md updated with a short description of changes (not required for documentation updates)

Accessibility Compliance

You must check off all items in one of the follow two lists:

  • There are no changes to UI

or...

Localization

  • Changes include a UI text update in the Retail React App (which requires translation)

@bfeister bfeister requested a review from a team as a code owner September 19, 2023 16:38
vcua-mobify
vcua-mobify previously approved these changes Sep 19, 2023
alexvuong
alexvuong previously approved these changes Sep 19, 2023
wjhsf
wjhsf previously approved these changes Sep 19, 2023
@bfeister bfeister merged commit 5449ff5 into develop Sep 19, 2023
19 of 20 checks passed
bfeister added a commit that referenced this pull request Sep 22, 2023
…6843@

@W-14146843@ modularize country code source for targeting via extensibility
bfeister added a commit that referenced this pull request Sep 22, 2023
- Cleanup wrong import path for page-designer component [#1441](#1441) @clavery
- Modularize country code source for targeting via extensibility [#1445](#1445) @bfeister
- Export icon helper function for target via overrides [#1420](#1420) @cbrother-csu
- Migrate Page Designer core types to commerce-sdk-react [#1441](#1441) @clavery
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Extract out list of country codes into a separate file to allow overriding
4 participants