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

Winter edition #449

Merged
merged 5 commits into from
Dec 10, 2018
Merged

Winter edition #449

merged 5 commits into from
Dec 10, 2018

Conversation

edworczak
Copy link
Contributor

@edworczak edworczak commented Dec 10, 2018

Updated winter edition with improvements suggested by users.

Description

Now the Winter Theme is disabled by default. To enable it go to report/src/main/webapp/app/themes/winterEdition.directive.js and change the value of winterEditionEnabled variable to true. Winter Theme will be visible 14 days before and after Christmas. Winter Theme contains:

  • logo with Santa Claus's hat,
  • new icons for tests,
  • snow falling only on sidebar so it won't cover test results.

Screenshot

winteredition

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • I have reviewed (and updated if needed) the documentation regarding this change

I hereby agree to the terms of the AET Contributor License Agreement.

Copy link
Contributor

@malaskowski malaskowski left a comment

Choose a reason for hiding this comment

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

One cosmetic change before merging to master.
Could you please also update the CHANGELOG and add an instruction in the description of this PR about what is this feature, add the screenshot and instruction on how to enable it.

@@ -43,8 +43,10 @@ define(['angularAMD'], function (angularAMD) {
var isChristmas = isDateWithinMargin(TODAY, CHRISTMAS_DATE, DAY_MARGIN);

if (isChristmas) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we please add additional flag, e.g. winterEditionEnabled and make the condition:

if (winterEditionEnabled && isChristmas) {

?
It should be set to false by default.
If admin of an AET instance decides to enable it, it should be manually set to true on the server instance.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@@ -42,9 +45,11 @@ define(['angularAMD'], function (angularAMD) {
var DAY_MARGIN = 14;
var isChristmas = isDateWithinMargin(TODAY, CHRISTMAS_DATE, DAY_MARGIN);

if (isChristmas) {
if (isChristmas && winterEditionEnabled) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please revert the order of flags.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@edworczak
Copy link
Contributor Author

Added description and screenshot to PR.

@tkaik tkaik merged commit 00717a8 into master Dec 10, 2018
@tkaik tkaik deleted the winter-edition branch December 10, 2018 12:47
@edworczak edworczak restored the winter-edition branch December 10, 2018 14:02
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