-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Seasonal series completion icon #4188
Conversation
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.
I really like the santa figure, thanks for the contribution!
BTW: I'll give you access to create branches on dodona, so you don't need to work from your own fork if you want to contribute more in the future.
app/helpers/temporal_helper.rb
Outdated
@@ -0,0 +1,14 @@ | |||
module TemporalHelper | |||
def christmas(current_time) | |||
return current_time.month == 12 && current_time.day.between?(25, 31) |
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.
I would include the 24th because Christmas eve also deserves a smiling Santa
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.
I would even start this as soon as december first
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.
My kids would strongly object doing this earlier than December 7th: no competition allowed!
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 you run your SVGs through https://www.svgminify.com/ or something similar?
I would also rename all "temporal" things to "seasonal".
Gemfile.lock
Outdated
@@ -227,7 +227,10 @@ GEM | |||
addressable (~> 2.7) |
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 you exclude this file from the PR?
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.
Except for the lockfile, everything looks good.
Side note: Once you have applied changes you can click on the circle arrows (Top right) to re request a review, which will notify me
Gemfile.lock
Outdated
@@ -1,579 +0,0 @@ | |||
GEM |
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.
You chose the wrong method to exclude it...
Please do not remove it from the repo, only exclude changes made by you
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.
I deployed this locally and it looks really nice!
I do agree with @chvp that this might be a bit much if we apply it to all series icons for the entire month and add other seasonal decorations in the future.
We could reduce the number of appearances by only applying the hat to the "green checkmark" icon (showing santa on hover) and show santa (without hover) instead of the "rainbow checkmark". This would make santa some kind of achievement. What do the others think?
I also checked if we could replace the icons that are shown on correct submission by a set of christmas-themed icons. Unfortunately, mdi doesn't include a lot of christmas icons.
Regarding the code: there are a lot of !important
's in the css which is something we try to avoid. Are these strictly necessary?
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.
Could you update your PR description to match the final implementation?
Co-authored-by: Charlotte Van Petegem <charlotte@vanpetegem.me>
I updated the description and added an extra image to show the different overlay options. |
Temporal overlay for Christmas
Ho Ho Ho, Santa has found his way to Dodona. He will be sitting on your status icons in order to watch your progress. Santa left his hat on every single status icon. When you hover the icon, he will come forward and take a peek.
This PR adds:
SeasonalHelper
that selects some css-styling based on the current time. At this moment I only do a check for Christmas (Dec 7 until Dec 31)