<p></p>
<p dir="auto">Updated the code again, resolved some issues raised here. Few remarks:</p>
<blockquote>
<p dir="auto">CSP violations, days of week won't be visible if not resolved:</p>
<blockquote>
<p dir="auto">Content-Security-Policy: (Report-Only policy) The page’s settings would block an inline style (style-src-attr) from being applied</p>
</blockquote>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://private-user-images.githubusercontent.com/4158490/399146508-63e176b4-22d8-4238-9d3c-101a1cd06332.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzc3MzM1NTAsIm5iZiI6MTczNzczMzI1MCwicGF0aCI6Ii80MTU4NDkwLzM5OTE0NjUwOC02M2UxNzZiNC0yMmQ4LTQyMzgtOWQzYy0xMDFhMWNkMDYzMzIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDEyNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAxMjRUMTU0MDUwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MDhmOTIwM2Y2NzllNWI0ZjIwMmJkYjFjYjY1YWE4NDQzOTJhNGRkM2NhNjhhZDJmMWY5YWZhN2Y4MjQ5ZmQyZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.EoL-EszNCUum1gnFkRiUnrIKw93dYJSdCIw2RcnULms"><img src="https://private-user-images.githubusercontent.com/4158490/399146508-63e176b4-22d8-4238-9d3c-101a1cd06332.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzc3MzM1NTAsIm5iZiI6MTczNzczMzI1MCwicGF0aCI6Ii80MTU4NDkwLzM5OTE0NjUwOC02M2UxNzZiNC0yMmQ4LTQyMzgtOWQzYy0xMDFhMWNkMDYzMzIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDEyNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAxMjRUMTU0MDUwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MDhmOTIwM2Y2NzllNWI0ZjIwMmJkYjFjYjY1YWE4NDQzOTJhNGRkM2NhNjhhZDJmMWY5YWZhN2Y4MjQ5ZmQyZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.EoL-EszNCUum1gnFkRiUnrIKw93dYJSdCIw2RcnULms" alt="image" style="max-width: 100%;"></a></p>
</blockquote>
<p dir="auto">The issue was caused by the <code class="notranslate">CalendarLabel</code> plugin. Given the simplicity of our use case, I opted to convert the labels to use plain HTML/CSS instead of introducing custom CSP policies for controller/view/JS files. Labels should now display correctly, and the CSP violations should be resolved. Please let me know if there’s anything I might have missed.</p>
<blockquote>
<p dir="auto">Is it the intended effect that nothing gets rendered in case the user made no edits in the span of one year?</p>
</blockquote>
<p dir="auto">The heatmap now renders regardless of whether the user has made edits in the past year. If there’s interest in hiding the heatmap for users with no contributions, I can refactor it to include a fallback or placeholder message instead. Let me know your preference.</p>

<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/5402#issuecomment-2612924757">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLXKHLDMY7BC7YO5U32MJSX5AVCNFSM6AAAAABTWNRZO6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJSHEZDINZVG4">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJ3PLVMAKPX6YEZZPT2MJSX5A5CNFSM6AAAAABTWNRZO6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTU3XYIVK.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/5402/c2612924757</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/5402#issuecomment-2612924757",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5402#issuecomment-2612924757",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>