Skip to content

Winter edition#449

Merged
tkaik merged 5 commits intomasterfrom
winter-edition
Dec 10, 2018
Merged

Winter edition#449
tkaik merged 5 commits intomasterfrom
winter-edition

Conversation

@edworczak
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

var isChristmas = isDateWithinMargin(TODAY, CHRISTMAS_DATE, DAY_MARGIN);

if (isChristmas) {
if (isChristmas && winterEditionEnabled) {
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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