-
Notifications
You must be signed in to change notification settings - Fork 154
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
Update ui_extension to support Unified config #2349
Changes from 19 commits
ee7fb52
137c32b
f5fa23f
4731b47
c8871a8
884bc52
9671be2
25548b6
f236c79
c9ac3ec
51e46e1
e7d59af
3b86b0f
f62639d
a82f4b2
3cf2679
6f05a27
032c62b
e0133a1
a32e7ef
64e52d8
5dd591b
c862b4b
06f4510
ccc028e
5f1acc9
85358ca
abe8994
8eaf31d
917a941
cadea7a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
name = "{{ name }}" | ||
type = "ui_extension" | ||
api_version = "2022-10" | ||
|
||
[capabilities] | ||
api_access = true | ||
network_access = true | ||
block_progress = true | ||
|
||
[[extension_points]] | ||
target = "Checkout::Dynamic::Render" | ||
[[extensions]] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should just delete this template. We should be creating a new version of the Checkout extension in the template repo and expose it through Partner's instead of having it be tied to the CLI. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it safe If I remove it in this PR then? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think so? No one should be using this publicly for Checkout but we better ask @jamesvidler and @kumar303. They should be working on a new template soon for Checkout. Bundles is using it but @kmdavis is working on a new template. We just need to merge the new template before the next release of the CLI goes out. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No one is using this template publicly, yet. Though we have used to test things. Where would the new template be stored? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You'd put it here and then update Partner's to make it available: https://github.com/Shopify/partners/blob/master/app/operations/apps/templates/specifications/v304600.rb |
||
type = "ui_extension" | ||
handle = "{{ handle }}" | ||
|
||
[[extensions.targeting]] | ||
module = "./src/CheckoutDynamicRender.{{ srcFileExtension }}" | ||
target = "Checkout::Dynamic::Render" | ||
|
||
# [[extension_points.metafields]] | ||
# [[extensions.metafields]] | ||
# namespace = "my-namespace" | ||
# key = "my-key" | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Can we make sure that this stripped out of the payload when deploying/dev? We don't actually support this config at the extension level in the backend or front end. It's only supported in the TOML for convenience
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.
It's not included in the deployConfig for sure, not sure about how we build the
dev
payload, but I didn't change that 🤔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.
Ok, I will take care of that on the PR I'm working on to update the
dev
payload to get rid oflabel
on extension points