Skip to content

Commit

Permalink
Convert all AsLiveComponent attribute to the custom sylius.live_compo…
Browse files Browse the repository at this point in the history
…nent tag
  • Loading branch information
jakubtobiasz authored and GSadee committed May 13, 2024
1 parent 04fc430 commit c2f0596
Show file tree
Hide file tree
Showing 30 changed files with 225 additions and 99 deletions.
2 changes: 1 addition & 1 deletion src/Sylius/Behat/Page/Admin/Order/UpdatePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ protected function getDefinedElements(): array
'billing_province_name' => '#sylius_order_billingAddress_provinceName',
'billing_province_code' => '#sylius_order_billingAddress_provinceCode',
'billing_street' => '#sylius_order_billingAddress_street',
'live_form' => '[data-live-name-value="SyliusAdmin.Order.OrderType"]',
'live_form' => '[data-live-name-value="sylius_admin:order:form"]',
'shipping_city' => '#sylius_order_shippingAddress_city',
'shipping_country' => '#sylius_order_shippingAddress_countryCode',
'shipping_first_name' => '#sylius_order_shippingAddress_firstName',
Expand Down
2 changes: 1 addition & 1 deletion src/Sylius/Behat/Page/Admin/Product/FormTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function getDefinedFormElements(): array
return [
'attribute_value' => '[data-test-attribute-value][data-test-locale-code="%localeCode%"][data-test-attribute-name="%attributeName%"]',
'channel_tab' => '[data-test-channel-tab="%channelCode%"]',
'form' => '[data-live-name-value="SyliusAdmin.Product.Form"]',
'form' => '[data-live-name-value="sylius_admin:product:form"]',
'field_associations' => '[name="sylius_product[associations][%association%][]"]',
'field_name' => '[name="sylius_product[translations][%localeCode%][name]"]',
'field_slug' => '[name="sylius_product[translations][%localeCode%][slug]"]',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ twig_hooks:
template: '@SyliusAdmin/shared/crud/common/navbar/menu.html.twig'
'sylius_admin.common.component.navbar.items':
notifications:
component: 'SyliusAdminNavbarNotifications'
component: 'sylius_admin:navbar:notifications'
user_dropdown:
template: '@SyliusAdmin/shared/crud/common/navbar/items/user.html.twig'
'sylius_admin.common.component.navbar.menu':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ twig_hooks:
hooks:
'sylius_admin.country.create.content':
form:
component: 'SyliusAdmin.Country.CountryType'
component: 'sylius_admin.country.form'
props:
country: '@=_context.resource'
form: '@=_context.form'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ twig_hooks:
hooks:
'sylius_admin.country.update.content':
form:
component: 'SyliusAdmin.Country.CountryType'
component: 'sylius_admin.country.form'
props:
country: '@=_context.resource'
form: '@=_context.form'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ twig_hooks:

'sylius_admin.customer.show.content.sections':
order_statistics:
component: 'SyliusAdmin.Customer.Show.OrderStatistics'
component: 'sylius_admin:customer:order_statistics'
props:
customerId: '@=_context.resource.getId()'
details:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ twig_hooks:
grid:
enabled: false
statistics:
component: 'SyliusAdmin.Dashboard.Statistics'
component: 'sylius_admin:dashboard:statistics'
props:
channelCode: '@=_context.channelCode'
latest_statistics:
Expand Down Expand Up @@ -52,6 +52,6 @@ twig_hooks:

'sylius_admin.dashboard.index.content.latest_statistics':
new_customers:
component: 'SyliusAdmin.Dashboard.NewCustomers'
component: 'sylius_admin:dashboard:new_customers'
new_orders:
component: 'SyliusAdmin.Dashboard.NewOrders'
component: 'sylius_admin:dashboard:new_orders'
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ twig_hooks:
hooks:
sylius_admin.order.update.content:
form:
component: 'SyliusAdmin.Order.OrderType'
component: 'sylius_admin:order:form'
props:
order: '@=_context.resource'
form: '@=_context.form'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ twig_hooks:
template: '@SyliusAdmin/product/scripts.html.twig'
'sylius_admin.product.create.content':
form:
component: 'SyliusAdmin.Product.Form'
component: 'sylius_admin:product:form'
props:
form: '@=_context.form'
resource: '@=_context.resource'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ twig_hooks:
template: '@SyliusAdmin/product/scripts.html.twig'
'sylius_admin.product.update.content':
form:
component: 'SyliusAdmin.Product.Form'
component: 'sylius_admin:product:form'
props:
form: '@=_context.form'
resource: '@=_context.resource'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ twig_hooks:

'sylius_admin.taxon.create.content.form':
tree:
component: 'SyliusAdmin.Taxon.TaxonTree'
component: 'sylius_admin:taxon:tree'
sections:
template: '@SyliusAdmin/taxon/form/sections.html.twig'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ twig_hooks:

'sylius_admin.taxon.update.content.form':
tree:
component: 'SyliusAdmin.Taxon.TaxonTree'
component: 'sylius_admin:taxon:tree'
sections:
template: '@SyliusAdmin/taxon/form/sections.html.twig'

Expand Down

0 comments on commit c2f0596

Please sign in to comment.