Re: [openstreetmap/openstreetmap-website] OAuth2 login flow returns error 500 (Issue #5400)
Creating new OAuth logins requires creating records in the oauth tables in the database. Existing tokens should work fine I think but you won't be able to create new ones. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5400#issuecomment-2545032747 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
[openstreetmap/openstreetmap-website] Update nominatim terms (PR #5401)
### Description I'm planning to introduce three new categories for Nominatim classes: lock, water and information. These are the main terms for it. ### How has this been tested? Only made sure the CI runs successfully. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5401 -- Commit Summary -- * add lock, information and water classes for nominatim terms -- File Changes -- M config/locales/en.yml (21) -- Patch Links -- https://github.com/openstreetmap/openstreetmap-website/pull/5401.patch https://github.com/openstreetmap/openstreetmap-website/pull/5401.diff -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5401 You are receiving this because you are subscribed to this thread. Message ID:___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
[openstreetmap/openstreetmap-website] Add date and url settings for offline message (PR #5403)
The current message doesn't say much about how long the api/db is expected to stay down. on map layout:  on site layout:  You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5403 -- Commit Summary -- * Move map offline flash to partial * Use offline flash partial on edit page * Use offline flash partial on offline redirect target page * Change scope of offline flash messages * Add offline announcement setting * Add expected restoration date setting -- File Changes -- M app/controllers/application_controller.rb (11) M app/controllers/site_controller.rb (14) A app/views/layouts/_offline_flash.erb (26) A app/views/site/_not_public_flash.erb (3) M app/views/site/edit.html.erb (14) M config/locales/en.yml (12) M config/settings.yml (4) -- Patch Links -- https://github.com/openstreetmap/openstreetmap-website/pull/5403.patch https://github.com/openstreetmap/openstreetmap-website/pull/5403.diff -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5403 You are receiving this because you are subscribed to this thread. Message ID:___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] Add date and url settings for offline message (PR #5403)
@AntonKhorev pushed 5 commits. ad862c2179a20a981a35798d1af829ffe74393c3 Use offline flash partial on edit page 985032b6a447367c5d5077aed7a3a724322d302f Use offline flash partial on offline redirect target page ef2035877ec16641af31ac986a1e5de9c9536d73 Change scope of offline flash messages f6865a342aaadbdad8ce36552dbbcf881a5664f3 Add offline announcement setting 3fbbe8276f9448e5dee98d3ca9e999defd34606b Add expected restoration date setting -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5403/files/0807cb5714aba822ee22d1e3e54c437e57fe966c..3fbbe8276f9448e5dee98d3ca9e999defd34606b You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] White grid around map tiles when page zoom set to 33%, 67%, 80%, 85%, 90% or 115% (Issue #5109)
Okay, I don’t have a Mac to test with Safari, but I found an extension to precisely change zoom levels on Chrome and it looks like _mix-blend-mode: plus-lighter_ creates problems more often than not, so it should only be applied to specific pixel ratios where it’s been confirmed to work. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5109#issuecomment-2546649393 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
[openstreetmap/openstreetmap-website] Bump osm-community-index from 5.8.0 to 5.9.0 (PR #5405)
Bumps [osm-community-index](https://github.com/osmlab/osm-community-index) from 5.8.0 to 5.9.0.Release notes
Sourced from osm-community-index's releases.
v5.9.0
https://github.com/osmlab/osm-community-index/blob/main/CHANGELOG.md#590
;v5.8.1
https://github.com/osmlab/osm-community-index/blob/main/CHANGELOG.md#581
;Changelog
Sourced from osm-community-index's changelog.
5.9.0
2024-Dec-16
- Updated dependencies, bump to location-conflation v1.4.1 / country-coder v5.3.1
- Support new resource type:
bluesky
- Added:
- Many community forum links (#741;, #742;, #743;, #744;, #745;, #746;, #747;, #748;, #752;):
- Africa, Austria, Bangladesh, Canada, Croatia, Estonia, Finland, Hungary, Indonesia, Malaysia, Mexico, Nepal, Russia, Sweden, Ukraine, Venezuela
- Social networks for OSM Colombia (#749;)
- Social networks for TadeoMappers (#754;)
- Nelson, New Zealand mapping group (#755;)
- Georgia Matrix (#760;)
- Croatia resources and remove IRC (#762;)
- Bulgaria Matrix (#766;)
- Updated:
- Removed:
#740: osmlab/osm-community-index#740; #741: osmlab/osm-community-index#741; #742: osmlab/osm-community-index#742; #743: osmlab/osm-community-index#743; #744: osmlab/osm-community-index#744; #745: osmlab/osm-community-index#
[openstreetmap/openstreetmap-website] Notes UI is still presented, despite being "read-only" (Issue #5404)
### URL https://www.openstreetmap.org/note/new#map=17/51.060265/3.721265&layers=N ### How to reproduce the issue? 0. Get OSM.org to be in "read-only" mode. (For example, sabotage the upstream router) 1. Go to OSM.org 2. Click the "new note button" 3. The new-note UI will still happily popup, as if nothing is wrong 4. Write a comment and click "Create new note" 5. Nothing happens It would be nice if no form popped up, but a small "sorry, we cannot add notes right now" would be shown instead. ### Screenshot(s) or anything else? _No response_ -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5404 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
[openstreetmap/openstreetmap-website] Check if db is writable on oauth authorization pages (PR #5406)
Redirect to `/offline` from `/oauth2/authorize` if the database is offline. Instead of this:  users will see this:  Fixes #5400 You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5406 -- Commit Summary -- * Check if db is writable on oauth authorization pages -- File Changes -- M app/controllers/oauth2_authorizations_controller.rb (2) M test/controllers/oauth2_authorizations_controller_test.rb (14) -- Patch Links -- https://github.com/openstreetmap/openstreetmap-website/pull/5406.patch https://github.com/openstreetmap/openstreetmap-website/pull/5406.diff -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5406 You are receiving this because you are subscribed to this thread. Message ID:___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] OAuth2 login flow returns error 500 (Issue #5400)
Thanks for the link @HolgerJeromin! I thought that the fact that I can see the openstreetmap.org site means the failure was resolved, but I now learned that it's in read-only mode. I'll wait patiently for the resolution. Thanks for all the hard work around OSM, it is very much appreciated! Keep it up. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5400#issuecomment-2545810987 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] Proposal for adding support for map notes tags (Issue #5294)
OK, thanks, I think I got it, but, I'm far from having a solution code in my head honestly. What would be the ideal way for doing this for you (maintainers)? Should I close #5344 and #5323 and start with fresh PR(s) (perhaps the cleanest / safest option) or to extend #5344 or to create additional PR(s) that build on #5344? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5294#issuecomment-2545895332 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] White grid around map tiles when page zoom set to 33%, 67%, 80%, 85%, 90% or 115% (Issue #5109)
@Nekzuris they're just zoom levels on Safari. https://github.com/user-attachments/assets/bcd41dd3-46dc-4478-942f-611e189cb406"; /> -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5109#issuecomment-2545803584 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
[openstreetmap/openstreetmap-website] Add user profile heatmap visualization for contributions (PR #5402)
### Description This PR introduces a heatmap visualization on user profile pages to display daily contribution activity over the past year. **Key changes include:** - Added a heatmap container in the user profile view (`users/show.html.erb`). - Implemented JavaScript logic (`heatmap.js`) using CalHeatmap to render the heatmap dynamically based on contribution data. - Updated localization (`config/locales/en.yml`) to include tooltips and month/weekday labels for the heatmap. - Added tests in `users_controller_test.rb` to validate heatmap data handling. Screenshots:![]()
![]()
### How has this been tested? - Verified heatmap rendering with mock data for different users and activity levels. - Tested responsiveness and theme support (light/dark mode). - Checked correct localization of tooltips, month names, and weekday labels. - Ran automated tests to ensure proper heatmap data handling in the controller. Let me know if you need further tweaks or enhancements! You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5402 -- Commit Summary -- * Add cal-heatmap lib with plugins and dependencies to vendor/assets/javascripts * Add manifest and application JS updates for asset linking and heatmap functionality * Add heatmap data caching and query for user contributions * Add heatmap container to user profile view * Add heatmap javascript logic, styles and localization * Add tests for heatmap data in UsersController -- File Changes -- M app/assets/config/manifest.js (5) M app/assets/javascripts/application.js (5) A app/assets/javascripts/heatmap.js (116) A app/assets/stylesheets/heatmap.css (3) M app/controllers/users_controller.rb (17) M app/views/users/show.html.erb (10) M config/locales/en.yml (4) M test/controllers/users_controller_test.rb (93) A vendor/assets/cal-heatmap/cal-heatmap.css (1) A vendor/assets/cal-heatmap/cal-heatmap.js (1) A vendor/assets/cal-heatmap/calendar-label.js (1) A vendor/assets/cal-heatmap/popper.js (6) A vendor/assets/cal-heatmap/tooltip.js (1) A vendor/assets/d3/d3.js (2) -- Patch Links -- https://github.com/openstreetmap/openstreetmap-website/pull/5402.patch https://github.com/openstreetmap/openstreetmap-website/pull/5402.diff -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5402 You are receiving this because you are subscribed to this thread. Message ID:
___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] OAuth2 login flow returns error 500 (Issue #5400)
We are seeing the same issue. OSM is in Readonly-Mode https://en.osm.town/@osm_tech/113656639378201391 but since I can log into the website, the readonly has to be only for certain parts of the website. I assumed the Rails parts would work but the editing part wouldn't. But then again commenting on notes is also prohibited so maybe only the user sessions are "allowed" since those can be deleted when switching back to Amsterdam as primary (or maybe they are not stored in the DB at all)… -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5400#issuecomment-2544919212 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] Calendar heatmap of user contributions on user profile (Issue #5373)
Ping https://github.com/openstreetmap/openstreetmap-website/issues/5356 which looks like the ambrella issue for this. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5373#issuecomment-2544945799 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] OAuth2 login flow returns error 500 (Issue #5400)
I think it has to do with the following: The OpenStreetMap database cannot be modified at the moment due to maintenance work being carried out. Does anyone know how long this maintenance work will last? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5400#issuecomment-2545394044 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] OAuth2 login flow returns error 500 (Issue #5400)
@tomhughes Thanks. Is there capacity to improve the handing of this error case by showing the "we are in readonly" message in step 1 of the oAuth process so users don't run into the uncaught 500? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5400#issuecomment-2545240486 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] OAuth2 login flow returns error 500 (Issue #5400)
> Does anyone know how long this maintenance work will last? https://community.openstreetmap.org/t/openstreetmap-org-currently-offline-operations-team-are-working-to-restore-15-december-2024/122930 -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5400#issuecomment-2545408116 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] Add date and url settings for offline message (PR #5403)
@AntonKhorev pushed 5 commits. bc83501b52933d56153c843c55c3bf3fabcd07e4 Use offline flash partial on edit page fbe887124451231887e5b4a9dcedb484c11795de Use offline flash partial on offline redirect target page 06952ca16b5af492968cf3ea9d579e95d0b2d888 Change scope of offline flash messages 7cd5ba1975fd87948966222e55e9ee9f17926483 Add offline announcement setting c47b46d2a259b8909f285bb0a3d12805bc1e8900 Add expected restoration date setting -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5403/files/3fbbe8276f9448e5dee98d3ca9e999defd34606b..c47b46d2a259b8909f285bb0a3d12805bc1e8900 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] Help with documentation for translations (Issue #5399)
Those are model names for use outside of sentences. If the language has grammatical cases, use nominative case. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5399#issuecomment-2546425837 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] Authenticating the maps desktop app fails (Issue #5409)
Is probably the same as #5400 -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5409#issuecomment-2547525944 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] Authenticating the maps desktop app fails (Issue #5409)
Is probably the same as #5400 -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5409#issuecomment-2547533092 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] Authenticating the maps desktop app fails (Issue #5409)
same as #5400 -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5409#issuecomment-2547534259 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
[openstreetmap/openstreetmap-website] Authenticating the maps desktop app fails (Issue #5409)
### URL _No response_ ### How to reproduce the issue? 1. Open maps on the desktop (manjaro, gnome). Select "Setup OpenStreetMap Account..." In the "three dots menu" 2. Select to sign in on OpenStreetMap 3. Authorize the access (my account is in German, so the dialog language is that) 4. This yields in an Application error ### Screenshot(s) or anything else?       ``` POST /oauth2/authorize HTTP/2 Host: www.openstreetmap.org User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate, br, zstd Referer: https://www.openstreetmap.org/oauth2/authorize?scope=read_prefs+write_api&code_challenge_method=S256&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&client_id=ATOMKAKOXQuAJYpFxkm__nDVRlJLXXmP-0P54UfDnZI&state=pNsj%7EQ%7EclM&response_type=code&code_challenge=m9aesZKh1NAMELUL9fTwM3B4z_3DkNEYPGg456GL7KE Content-Type: application/x-www-form-urlencoded Content-Length: 388 Origin: https://www.openstreetmap.org DNT: 1 Sec-GPC: 1 Connection: keep-alive Cookie: Upgrade-Insecure-Requests: 1 Sec-Fetch-Dest: document Sec-Fetch-Mode: navigate Sec-Fetch-Site: same-origin Sec-Fetch-User: ?1 Priority: u=0, i ``` -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5409 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] Dark mode preference not respected after OAuth expiry (Issue #5407)
It is an known issue that not-logged-in users have no settings to change that. So this is a duplicate to one of the open issues -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5407#issuecomment-2547576757 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
[openstreetmap/openstreetmap-website] Dark mode preference not respected after OAuth expiry (Issue #5407)
### URL _No response_ ### How to reproduce the issue? 1. Have color scheme preference set. 2. Have login expire. 3. Website doesn't respect color scheme preference anymore. ### Screenshot(s) or anything else? Could be fixed by not relying on inserting the data-bs/map-theme flags on the server side and check against a cookie/localStorage -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5407 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] Add date and url settings for offline message (PR #5403)
@AntonKhorev pushed 6 commits. 93c122dcb163c3cdf2e4a258729595382b471189 Move map offline flash to partial 89fa8d5015b9c9a54ab5f60e644e13f67b735492 Use offline flash partial on edit page 1c1ca02b14a995fef3fd7447b21f77f1cc69ca77 Use offline flash partial on offline redirect target page 25755f69760579c0c640e283d193d12cda88f50a Change scope of offline flash messages a42de32e15ee60f0bdc5b7e7ffa0933646ee2998 Add offline announcement setting d231d5d3757523c2fb77559dc512420183d76c0b Add expected restoration date setting -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5403/files/c47b46d2a259b8909f285bb0a3d12805bc1e8900..d231d5d3757523c2fb77559dc512420183d76c0b You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] Add date and url settings for offline message (PR #5403)
@AntonKhorev pushed 5 commits. 2f01c9472aa9b692a4678e19abb37cfc4f0855b7 Use offline flash partial on edit page 2287bf044af084667f0c6ddbe205ff08f3b9cf5c Use offline flash partial on offline redirect target page d7beb6ffedf2f87ecc1c8639579d197c95a2bc18 Change scope of offline flash messages 86035db1f44832c551cc4acff7cbf422b54fa239 Add offline announcement setting 337af7b299f49bac56f9d924e10acda600fba534 Add expected restoration date setting -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5403/files/d231d5d3757523c2fb77559dc512420183d76c0b..337af7b299f49bac56f9d924e10acda600fba534 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
[openstreetmap/openstreetmap-website] Show 'api offline' message on new note page (PR #5408)
Show this on `/note/new` if the api is not online:  Fixes #5404. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5408 -- Commit Summary -- * Show 'api offline' message on new note page -- File Changes -- M app/controllers/notes_controller.rb (4) A app/views/notes/new_readonly.html.erb (7) M config/locales/en.yml (3) A test/system/create_note_test.rb (23) -- Patch Links -- https://github.com/openstreetmap/openstreetmap-website/pull/5408.patch https://github.com/openstreetmap/openstreetmap-website/pull/5408.diff -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5408 You are receiving this because you are subscribed to this thread. Message ID:___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] Add user profile heatmap visualization for contributions (PR #5402)
@HolgerJeromin commented on this pull request. > + [CalendarLabel, { +position: "left", +key: "left", +text: () => weekdays, +textAlign: "end", +width: 30, +padding: [23, 10, 0, 0] + }], + [Tooltip, { +text: (date, value) => getTooltipText(date, value, locale) + }] +]); + } catch (error) { +console.error("Error during Cal-Heatmap initialization:", error); + } +}); ```suggestion }, {once: true}); ``` -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5402#pullrequestreview-2508046543 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] Add user profile heatmap visualization for contributions (PR #5402)
@HolgerJeromin commented on this pull request. > + const heatmapElement = document.querySelector("#cal-heatmap"); + + if (!heatmapElement) { +console.warn("Heatmap element not found in the DOM."); +return; + } + + + const heatmapData = heatmapElement.dataset.heatmap ? JSON.parse(heatmapElement.dataset.heatmap) : []; + + try { +// eslint-disable-line no-undef +const cal = new CalHeatmap(); +const applicationData = $("head").data(); +const locale = applicationData.locale; +const theme = getTheme(); We can watch for change of color theme with https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/change_event -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5402#pullrequestreview-2508058564 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev