-
Notifications
You must be signed in to change notification settings - Fork 130
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
Modify checkout_ui template to use the new ui_extension type #1275
Conversation
Thanks for your contribution! Depending on what you are working on, you may want to request a review from a Shopify team:
|
@@ -59,7 +60,9 @@ async function generate(options: GenerateOptions) { | |||
) | |||
} | |||
} else { | |||
specifications = specifications.filter((spec) => app.extensionsForType(spec).length < spec.registrationLimit) | |||
specifications = specifications |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@isaacroldan we have to manually filter this out for the generate command for now since we don't yet have a way to enable multiple templates for a single specification
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense!
Did you see my proposal for a new template interface in the CLI? https://github.com/Shopify/internal-cli-foundations/discussions/518
If we agree on this, we might be able to work on it soon
Benchmark reportThe following table contains a summary of the startup time for all commands.
|
549533f
to
b7a673b
Compare
Coverage report
Test suite run success971 tests passing in 500 suites. Report generated by 🧪jest coverage report action from af42f22 |
Remove `module` from the payload for deploying extension points as it's unused Add changeset for release Co-authored-by: Richard Powell <richardo@gmail.com> Exclude ui_extension from generate extensions tests
fe8748f
to
af42f22
Compare
WHY are these changes introduced?
Fixes https://github.com/Shopify/ui-extensions-private/issues/2019
WHAT is this pull request doing?
ui_extension
on the generate extension prompt and remove the template forui_extension
as it's currently hardcoded to Checkout. In the future we will have multiple templates forui_extension
but it's out of scope for this PRHow to test your changes?
pnpm shopify app generate extension --path fixtures/app
Checkout UI
pnpm shopify app dev --path fixtures/app
and open the Preview UrlPost-release steps
Measuring impact
How do we know this change was effective? Please choose one:
Checklist
dev
ordeploy
have been reflected in the internal flowchart.