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

[Core] [Theme] Integration with Sylius platform #4000

Merged
merged 13 commits into from
Feb 29, 2016

Conversation

pamil
Copy link
Contributor

@pamil pamil commented Jan 28, 2016

Themes should be set per channel by default. Based on #4172, #4169, #4156, #4268, #4287, #4292.

@pamil pamil force-pushed the theme-bundle-integration branch from 02470f3 to 4bb9a49 Compare January 28, 2016 10:24

Scenario: Unsetting a channel theme
When I unset "France" channel theme
Then any theme should not be used
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then none of the themes should be used?

@pamil pamil force-pushed the theme-bundle-integration branch from 4bb9a49 to 49aa3a6 Compare January 28, 2016 10:26
Then that theme should be used

Scenario: Unsetting a channel theme
When I unset "France" channel theme
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing Given I set theme...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

When I set "Maverick Meerkat" theme to be used by "France" channel
And I set "Vivid Vervet" theme to be used by "Poland" channel
Then "France" channel should use "Maverick Meerkat" theme
And "Poland" channel should use "Vivid Vervet" theme
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this scenario should be in separate feature, it is not about the management itself. Actor should be Visitor for this scenario too. Wdyt?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, will change! :)

@pamil pamil force-pushed the theme-bundle-integration branch 14 times, most recently from 09259c9 to db0ce9d Compare February 16, 2016 14:54
$channel = $this->channelContext->getChannel();

$themeName = $channel->getThemeName();
return $themeName;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for that early return here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, PHPStorm messed up this during extracting.

@pamil pamil force-pushed the theme-bundle-integration branch 4 times, most recently from 23819b7 to 8c727ad Compare February 16, 2016 19:10
@@ -0,0 +1,33 @@
@ui-themes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be just @theme and live inside theme folder :)

@pamil pamil force-pushed the theme-bundle-integration branch from 83b64d3 to 8b0bb4c Compare February 17, 2016 16:11
@pamil pamil force-pushed the theme-bundle-integration branch 5 times, most recently from ea38652 to eaaae22 Compare February 26, 2016 10:04
@pamil pamil force-pushed the theme-bundle-integration branch from 2163d5a to b282063 Compare February 29, 2016 12:15
@pamil pamil changed the title [WIP] [Theme] Integration with Sylius platform [Core] [Theme] Integration with Sylius platform Feb 29, 2016
@@ -25,6 +25,9 @@
<parameter key="sylius.behat.context.setup.zone.class">Sylius\Behat\Context\Setup\ZoneContext</parameter>
<parameter key="sylius.behat.context.setup.tax.class">Sylius\Behat\Context\Setup\TaxContext</parameter>
<parameter key="sylius.behat.context.setup.order.class">Sylius\Behat\Context\Setup\OrderContext</parameter>
<parameter key="sylius.behat.context.setup.customer.class">Sylius\Behat\Context\Setup\CustomerContext</parameter>
<parameter key="sylius.behat.context.setup.addressing.class">Sylius\Behat\Context\Setup\AddressingContext</parameter>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these relevant to this PR?

pjedrzejewski pushed a commit that referenced this pull request Feb 29, 2016
[Core] [Theme] Integration with Sylius platform
@pjedrzejewski pjedrzejewski merged commit 663ada4 into Sylius:master Feb 29, 2016
@pjedrzejewski
Copy link
Member

Thank you Kamil! 👍

@pamil pamil deleted the theme-bundle-integration branch February 29, 2016 14:47
pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
[Core] [Theme] Integration with Sylius platform
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.

3 participants