<h3 dir="auto">Description</h3>
<p dir="auto">Closing <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2978796042" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5905" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/5905/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/5905">#5905</a> . This PR improves the user profile heatmap by adding a <code class="notranslate">yearly</code> template to display exact one year starting from todays date respectively and <code class="notranslate">CalendarLabel</code> plugin for better month labeling. The changes include:</p>
<ul dir="auto">
<li>Adding a yearly template to show exactly one year of data</li>
<li>Integrating the CalendarLabel plugin for proper month label display since there is no way to do it automatically when creating new template according to official <a href="https://cal-heatmap.com/" rel="nofollow">docs</a>.</li>
<li>Handling the special case where months start after the 15th by rotating them to the end</li>
</ul>
<h3 dir="auto">How has this been tested?</h3>
<ul dir="auto">
<li>Tested the heatmap display with different start dates to verify month label rotation</li>
<li>Verified tooltips appear correctly and follow the mouse cursor</li>
<li>Checked dark/light theme compatibility</li>
<li>Verified the heatmap shows exactly one year of data</li>
</ul>
<h3 dir="auto">Screenshots</h3>
<p dir="auto">Before:<br>
<a href="https://github.com/user-attachments/assets/3a0b768b-568d-4957-9291-81f7d961fee7">Screenshot.2025-04-08.at.09.57.02.png (view on web)</a></p>
<p dir="auto">After:<br>
<a href="https://github.com/user-attachments/assets/8faa5be9-e291-4c78-80a9-f9d94ce62b16">Screenshot.2025-04-08.at.09.58.06.png (view on web)</a></p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5906'>https://github.com/openstreetmap/openstreetmap-website/pull/5906</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5906/commits/5d743021e22502dda033e2b57398d6ce38a2ccf2" class="commit-link">5d74302</a> Add yearly template and CalendarLabel plugin for month labels</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5906/files">3 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5906/files#diff-ff3763133f63089f0a2593943a3de42c08dbbd7afc11b78d1cded6d0ece51c9a">app/assets/javascripts/heatmap.js</a>
(166)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5906/files#diff-e86a39e6d0b163f152db8843fc7d647a3f5d648de4a74f1732bef4474b6e5bc8">app/assets/stylesheets/common.scss</a>
(3)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5906/files#diff-78ff736409d758722403cce31873ba803b3fb526d37398ca21caa557b54dfd95">app/views/users/show.html.erb</a>
(33)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5906.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5906.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5906.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5906.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5906">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNIBEPW2O24OWKPGVL2YN6UTAVCNFSM6AAAAAB2VRVDVGVHI2DSMVQWIX3LMV43ASLTON2WKOZSHE3TQOJUHA2TIOA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLIMUG2N7Y2B6YA7ZJL2YN6UTA5CNFSM6AAAAAB2VRVDVGWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHLDDZFYQ.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5906</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5906",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5906",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>