Skip to content

enh(heatmaps): 🌟 adding TODAY rectangle marker #13#135

Merged
dvorka merged 3 commits into
dev/1.58.0from
feat-13/today-in-heatmaps
Jul 6, 2026
Merged

enh(heatmaps): 🌟 adding TODAY rectangle marker #13#135
dvorka merged 3 commits into
dev/1.58.0from
feat-13/today-in-heatmaps

Conversation

@dvorka

@dvorka dvorka commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

This PR brings TODAY rectangle marker for heatmaps.

Related:

@dvorka dvorka requested a review from Copilot July 6, 2026 06:14
@dvorka dvorka self-assigned this Jul 6, 2026

Copilot AI left a comment

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.

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_today for server-side "today" detection.
  • Apply a heat_today CSS 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.

Comment thread tests/test_sickness_heatmap_today.py
Comment thread tests/test_sickness_heatmap_today.py
Comment thread tests/test_sickness_heatmap_today.py
Comment thread mytral/templates/insight-sickness-heatmap.html Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@dvorka dvorka merged commit de5eea1 into dev/1.58.0 Jul 6, 2026
2 checks passed
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.

[Enhancement] sickness heatmap to show current week w/ top arrow/triangle or dot

2 participants