Re: [openstreetmap/openstreetmap-website] Change naming of boundaries based on admin_level=* (Issue #5450)

2024-12-30 Thread Minh Nguyễn via rails-dev
Fortunately, Nominatim does expose `border_type` in the `extratags` field of the response, and both Overpass queries (for nearby and enclosing features) include all the element’s tags. Unfortunately, `border_type=*` values are unlocalized and un-namespaced. We’d only be able to pretty-print the

[openstreetmap/openstreetmap-website] Bump leaflet.locatecontrol from 0.82.0 to 0.83.0 (PR #5451)

2024-12-30 Thread dependabot[bot] via rails-dev
Bumps [leaflet.locatecontrol](https://github.com/domoritz/leaflet-locatecontrol) from 0.82.0 to 0.83.0.
Commits

Re: [openstreetmap/openstreetmap-website] Change naming of boundaries based on admin_level=* (Issue #5450)

2024-12-30 Thread Brian Sperlongano via rails-dev
The `border_type` tag is in [pretty wide use](https://taginfo.openstreetmap.org/keys/border_type#overview) (45,000 relations, wide geographic coverage). It seems like it would be pretty sensible to just use the border_type value as the preferred label, and then fall back to `place=*` or a gene

Re: [openstreetmap/openstreetmap-website] Change naming of boundaries based on admin_level=* (Issue #5450)

2024-12-30 Thread Minh Nguyễn via rails-dev
For Overpass queries, there’s currently a special case that pulls in a dedicated string based on the `admin_level=*` if it’s present. Maybe instead we could use the generic “Administrative Boundary” label, using the normal code path, but add a suffix like “(Level 3)”? https://github.com/openstr

Re: [openstreetmap/openstreetmap-website] Change naming of boundaries based on admin_level=* (Issue #5450)

2024-12-30 Thread Gafigglethorp via rails-dev
Even the numbering in admin_level is better than no information at all, as it at least gives a ballpark for comparing admin boundaries between each other. Remember that osm.org is useful for mapper feedback first and foremost: Plenty of places have admin boundaries with the exact same name that

Re: [openstreetmap/openstreetmap-website] Change naming of boundaries based on admin_level=* (Issue #5450)

2024-12-30 Thread Tom Hughes via rails-dev
Well the fundamental problem is that the numeric admin_level tagging scheme is, and always has been, totally insane and just doesn't work in the real world. There isn't much we as web site developers can do about that though. Probably we should ignore admin_level and just label them all as admin

Re: [openstreetmap/openstreetmap-website] New note page on low zooms (PR #5443)

2024-12-30 Thread Tom Hughes via rails-dev
@tomhughes commented on this pull request. > @@ -35,11 +35,13 @@ OSM.NewNote = function (map) { OSM.router.route("/note/new"); }); - function createNote(marker, form, url) { -var location = marker.getLatLng().wrap(); + function createNote(form, url) { +if (!newNoteMarker) ret

[openstreetmap/openstreetmap-website] Change naming of boundaries based on admin_level=* (Issue #5450)

2024-12-30 Thread Gafigglethorp via rails-dev
### Problem As discussed in [this forum thread](https://community.openstreetmap.org/t/admin-level-boundary-naming-on-osm-org-and-translation/123358/19) the current naming scheme for boundaries is a peculiar mishmash of terminology from different English speaking countries that actually applies

Re: [openstreetmap/openstreetmap-website] Add user profile heatmap visualization for contributions (PR #5402)

2024-12-30 Thread Marwin Hochfelsner via rails-dev
The MutationObserver thought came from my tinkering with the site locally wanting to reduce the reloads, forgetting that a toggle if added would already have onchange events. > So maybe you don't want one global watcher. Yeah, I kinda missed that... Still, having a similar style on such similar

Re: [openstreetmap/openstreetmap-website] Use resourceful route for user status (PR #5437)

2024-12-30 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 1 commit. c8a4eec318683f1fd74bd7830fb3c37e281f272b Use resourceful route for user status -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5437/files/0764432abf0b9d534b479efefa1a467da574cd19..c8a4eec318683f1fd74bd7830fb3c37e281f272b You are re

Re: [openstreetmap/openstreetmap-website] Use map tiles dark mode from leaflet-osm plugin (PR #5426)

2024-12-30 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. > @@ -31,6 +31,9 @@ L.OSM.layers = function (options) { var miniMap = L.map(mapContainer[0], { attributionControl: false, zoomControl: false, keyboard: false }) .addLayer(new layer.constructor(layer.options)); +if (layer.optio

Re: [openstreetmap/openstreetmap-website] Use map tiles dark mode from leaflet-osm plugin (PR #5426)

2024-12-30 Thread Tom Hughes via rails-dev
@tomhughes commented on this pull request. > @@ -31,6 +31,9 @@ L.OSM.layers = function (options) { var miniMap = L.map(mapContainer[0], { attributionControl: false, zoomControl: false, keyboard: false }) .addLayer(new layer.constructor(layer.options)); +if (layer.o

Re: [openstreetmap/openstreetmap-website] Use map tiles dark mode from leaflet-osm plugin (PR #5426)

2024-12-30 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. > @@ -31,6 +31,9 @@ L.OSM.layers = function (options) { var miniMap = L.map(mapContainer[0], { attributionControl: false, zoomControl: false, keyboard: false }) .addLayer(new layer.constructor(layer.options)); +if (layer.optio

Re: [openstreetmap/openstreetmap-website] Resourceful routes for received/issued blocks (PR #5440)

2024-12-30 Thread Tom Hughes via rails-dev
Using the `edit` action as the revoke all view is a bit weird but I guess if we ever want to more general edit we can change the title of that page and the link to it and then just have revoke as one thing you can do from the edit page. Other than that this looks good to me, thanks. -- Reply t

Re: [openstreetmap/openstreetmap-website] Resourceful routes for received/issued blocks (PR #5440)

2024-12-30 Thread Tom Hughes via rails-dev
Merged #5440 into master. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5440#event-15784250651 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-

Re: [openstreetmap/openstreetmap-website] Use map tiles dark mode from leaflet-osm plugin (PR #5426)

2024-12-30 Thread Tom Hughes via rails-dev
@tomhughes requested changes on this pull request. As it stands this only works correctly for the transport layer that has a dark variant - for all other layers it disables the filtering when in dark mode. > @@ -31,6 +31,9 @@ L.OSM.layers = function (options) { var miniMap = L.map(mapCo

Re: [openstreetmap/openstreetmap-website] Dark Mode bugs/improvements for the UI (Issue #5329)

2024-12-30 Thread Anton Khorev via rails-dev
@hlfan Are you reporting a bug here or do you want to discuss the details of how Bootstrap's `$color-mode-type` setting works? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5329#issuecomment-2565379267 You are receiving this b

Re: [openstreetmap/openstreetmap-website] Translations of "doesn't" (Issue #5432)

2024-12-30 Thread Anton Khorev via rails-dev
Or put anything, maybe the entire sentence in `doesnt`. Then it probably should be renamed to something like `off_the_map_emphasis`. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5432#issuecomment-2565367882 You are receiving

Re: [openstreetmap/openstreetmap-website] Dark Mode bugs/improvements for the UI (Issue #5329)

2024-12-30 Thread Marwin Hochfelsner via rails-dev
So why have flags in the document at all if you can store the theme entirely by which stylesheet you load? /s I haven't seen any other major website load a different CSS file just because the user changed their color theme preferences. Are two separate files really necessary also given the comm

Re: [openstreetmap/openstreetmap-website] Accessibility issue fixed #5431 (PR #5445)

2024-12-30 Thread Anton Khorev via rails-dev
Closed #5445. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5445#event-15783685948 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing

Re: [openstreetmap/openstreetmap-website] Accessibility issue fixed #5431 (PR #5445)

2024-12-30 Thread Anton Khorev via rails-dev
Superseded by #5447. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5445#issuecomment-2565341490 You are receiving this because you are subscribed to this thread. Message ID: ___ rails

Re: [openstreetmap/openstreetmap-website] Add user profile heatmap visualization for contributions (PR #5402)

2024-12-30 Thread Anton Khorev via rails-dev
Also the conditions under which watching `prefers-color-scheme` are different for this PR and https://github.com/openstreetmap/openstreetmap-website/pull/5426. Here you need to watch if the website theme is auto, in https://github.com/openstreetmap/openstreetmap-website/pull/5426 you need to w

Re: [openstreetmap/openstreetmap-website] Add user profile heatmap visualization for contributions (PR #5402)

2024-12-30 Thread Anton Khorev via rails-dev
Why MutationObservers? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5402#issuecomment-2565317228 You are receiving this because you are subscribed to this thread. Message ID: ___ rai

Re: [openstreetmap/openstreetmap-website] Add user profile heatmap visualization for contributions (PR #5402)

2024-12-30 Thread Marwin Hochfelsner via rails-dev
> You don't need to change the theme of the page I did that for testing, but since listening increased the complexity unnecessarily, I left that for a second pass. But suppose the site needs a theme watcher anyway because the cal-heatmap doesn't want to let CSS do the color mixing theme-agnosti

Re: [openstreetmap/openstreetmap-website] Dark Mode bugs/improvements for the UI (Issue #5329)

2024-12-30 Thread Anton Khorev via rails-dev
> Any manual theme change What do you mean by *manual theme change*? There are two versions of stylesheets, one that follows `prefers-color-scheme` and one that doesn't. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5329#iss

Re: [openstreetmap/openstreetmap-website] Add user profile heatmap visualization for contributions (PR #5402)

2024-12-30 Thread Anton Khorev via rails-dev
> Any other change to the theme of the page without reloading will break most > of the CSS theming anyway since the stylesheets were split in #5362 by the > way. You don't need to change the theme of the page, neither here, nor in https://github.com/openstreetmap/openstreetmap-website/pull/5426

Re: [openstreetmap/openstreetmap-website] Make preferences page editable without clicking 'Edit Preferences' (PR #5449)

2024-12-30 Thread Anton Khorev via rails-dev
Keeping `edit` is not without its problems. Open *My Settings* page. Your location is going to be `/account/edit`. Make an invalid edit, for example, enter a password and leave *Confirm Password* blank. Click *Save Changes*. You'll see the form loaded again with errors highlighted. But look at

Re: [openstreetmap/openstreetmap-website] Move code that runs after user save from save_new_user to create method (PR #5446)

2024-12-30 Thread Anton Khorev via rails-dev
`save_new_user` was called from two different places when if was first introduced. The other was I think save after terms page. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5446#issuecomment-2565225822 You are receiving this be

Re: [openstreetmap/openstreetmap-website] Dark Mode bugs/improvements for the UI (Issue #5329)

2024-12-30 Thread Marwin Hochfelsner via rails-dev
Any manual theme change without a reload after `$("html")[0].toggleAttribute("data-bs-theme")` bricks the themes. This probably has to do with the split distribution of the stylesheets. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/