[openstreetmap/openstreetmap-website] Add user profile heatmap visualization for contributions (PR #5402)
Emin Kocan
notifications at github.com
Fri Jan 24 16:27:42 UTC 2025
Updated the code again, resolved some issues raised here. Few remarks:
> CSP violations, days of week won't be visible if not resolved:
>
> > Content-Security-Policy: (Report-Only policy) The page’s settings would block an inline style (style-src-attr) from being applied
>
> 
The issue was caused by the `CalendarLabel` 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.
> Is it the intended effect that nothing gets rendered in case the user made no edits in the span of one year?
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.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5402#issuecomment-2612924757
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5402/c2612924757 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250124/5a17c7f3/attachment.htm>
More information about the rails-dev
mailing list