enh(heatmaps): 🌟 adding TODAY rectangle marker #13#135
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a visual "today" marker to calendar-based heatmaps (activity + sickness) and improves sickness heatmap tooltips to include an ISO date prefix, aligning the UI with the changelog entry for better day-level readability.
Changes:
- Add
CalendarHeatmap.Cell.is_todayfor server-side "today" detection. - Apply a
heat_todayCSS ring/outline to activity and sickness heatmap cells; refactor sickness heatmap cell rendering into a macro. - Update sickness heatmap tooltips to show
YYYY-MM-DD(and count when present), and document the change in changelogs.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/test_sickness_heatmap_today.py | Adds unit tests for CalendarHeatmap.Cell.is_today. |
| mytral/views.py | Introduces CalendarHeatmap.Cell.is_today property. |
| mytral/templates/insight-sickness-heatmap.html | Adds a rendering macro, applies today marker class, improves tooltip text, updates explanatory copy. |
| mytral/templates/heatmap-calendar.html | Applies today marker class to activity heatmap cells. |
| mytral/static/mytral.css | Adds heat_today styling (inset box-shadow outline). |
| mytral/static/documentation/changelog.html | Documents the "today" marker and improved sickness tooltip format. |
| docs/CHANGELOG.md | Documents the "today" marker and improved sickness tooltip format. |
| CHANGELOG.md | Documents the "today" marker and improved sickness tooltip format. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR brings TODAY rectangle marker for heatmaps.
Related: