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/c2612924...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev