Re: [openstreetmap/openstreetmap-website] Use dark map tiles classlessly (PR #5507)

2025-01-16 Thread Holger Jeromin via rails-dev
@HolgerJeromin commented on this pull request. > @@ -9,7 +9,7 @@ body { font-size: $typeheight; - --dark-mode-map-filter: brightness(.8); + --dark-mode-map-filter: none; Is this needed? ```suggestion ``` -- Reply to this email directly or view it on GitHub: https://github.com/openstre

[openstreetmap/openstreetmap-website] Use form with normal-sized button on follows show pages (PR #5509)

2025-01-16 Thread Anton Khorev via rails-dev
Before: ![image](https://github.com/user-attachments/assets/6616b537-8396-4179-a4d6-fb2a02a483b4) After: ![image](https://github.com/user-attachments/assets/6220a921-7e62-4ff4-8f11-5fea68e872b4) You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/op

[openstreetmap/openstreetmap-website] Fix missing translation of Follow links on dashboard (PR #5508)

2025-01-16 Thread Anton Khorev via rails-dev
Non-friend nearby users section wasn't covered by tests. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5508 -- Commit Summary -- * Fix missing translation of Follow links on dashboard -- File Changes -- M app

Re: [openstreetmap/openstreetmap-website] Modify the way "Friends" are added (PR #5261)

2025-01-16 Thread Anton Khorev via rails-dev
Merged, thanks. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5261#issuecomment-2597226477 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev

Re: [openstreetmap/openstreetmap-website] Modify the way "Friends" are added (PR #5261)

2025-01-16 Thread Anton Khorev via rails-dev
Merged #5261 into master. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5261#event-15969915553 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-

Re: [openstreetmap/openstreetmap-website] Remove old browse redirects (PR #5463)

2025-01-16 Thread Anton Khorev via rails-dev
I'll close this since browse paths are still in use. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5463#issuecomment-2597139579 You are receiving this because you are subscribed to this thread. Message ID: _

Re: [openstreetmap/openstreetmap-website] Remove old browse redirects (PR #5463)

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

[openstreetmap/openstreetmap-website] Use dark map tiles classlessly (PR #5507)

2025-01-16 Thread Marwin Hochfelsner via rails-dev
Barebones classless filterless version of #5505. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5507 -- Commit Summary -- * Add classless dark map mode logic * Update --dark-mode-map-filter * Add TransportMap le

Re: [openstreetmap/openstreetmap-website] Use class based map tiles dark mode (PR #5505)

2025-01-16 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. > @@ -516,13 +515,13 @@ body.small-nav { } @mixin dark-map-color-scheme { - .leaflet-tile-container, + .leaflet-layer, Removing the need to stop `.leaflet-tile` from inheriting the filter from `.leaflet-tile-container` since `.leaflet-tile-container

Re: [openstreetmap/openstreetmap-website] Use class based map tiles dark mode (PR #5505)

2025-01-16 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. > @@ -52,10 +57,12 @@ L.OSM.Map = L.Map.extend({ code: "G" }); -this.on("layeradd", function (event) { - if (this.baseLayers.indexOf(event.layer) >= 0) { -this.setMaxZoom(event.layer.options.maxZoom); - } +this.on("la

Re: [openstreetmap/openstreetmap-website] Use class based map tiles dark mode (PR #5505)

2025-01-16 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. > @@ -31,6 +31,7 @@ apiKeyId: "THUNDERFOREST_KEY" canEmbed: true canDownloadImage: true + filterClass: "no-filter" I appeal that as long as there isn't documentation on which layers should get which treatment in dark mode, explicitly specifying

Re: [openstreetmap/openstreetmap-website] Bump allowed ECMAScript version to 2022 (ES13) (PR #5421)

2025-01-16 Thread Tom Hughes via rails-dev
@tomhughes pushed 1 commit. 70afbd09d615b4d726a5a58c6f0910126bd8480a Bump allowed ECMAScript version to 2021 (ES12) -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5421/files/7345c5ed0b8a6b63a2e4c79be8e4802e9c4348fc..70afbd09d615b4d726a5a58c6f0910126bd8480a Yo

Re: [openstreetmap/openstreetmap-website] Bump allowed ECMAScript version to 2021 (ES12) (PR #5421)

2025-01-16 Thread Tom Hughes via rails-dev
I've rebased this and modified it to target ES2021 instead. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5421#issuecomment-2596574488 You are receiving this because you are subscribed to this thread. Message ID: __

Re: [openstreetmap/openstreetmap-website] Install add/remove event listeners directly on note layer (PR #5500)

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

Re: [openstreetmap/openstreetmap-website] Install add/remove event listeners directly on note layer (PR #5500)

2025-01-16 Thread Tom Hughes via rails-dev
Looks good to me, thanks. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5500#issuecomment-2596550502 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [openstreetmap/openstreetmap-website] Use class based map tiles dark mode (PR #5505)

2025-01-16 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. > @@ -52,10 +57,12 @@ L.OSM.Map = L.Map.extend({ code: "G" }); -this.on("layeradd", function (event) { - if (this.baseLayers.indexOf(event.layer) >= 0) { -this.setMaxZoom(event.layer.options.maxZoom); - } +this.on("la

Re: [openstreetmap/openstreetmap-website] Use class based map tiles dark mode (PR #5505)

2025-01-16 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. > @@ -52,10 +57,12 @@ L.OSM.Map = L.Map.extend({ code: "G" }); -this.on("layeradd", function (event) { - if (this.baseLayers.indexOf(event.layer) >= 0) { -this.setMaxZoom(event.layer.options.maxZoom); - } +this.on("la

Re: [openstreetmap/openstreetmap-website] Adds description and author_id methods to Note (PR #5494)

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

Re: [openstreetmap/openstreetmap-website] Adds migration for adding description, user_id, user_ip columns to notes (PR #5499)

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

Re: [openstreetmap/openstreetmap-website] Adds migration for adding description, user_id, user_ip columns to notes (PR #5499)

2025-01-16 Thread Tom Hughes via rails-dev
Looks good to me, thanks. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5499#issuecomment-2596451967 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [openstreetmap/openstreetmap-website] Adds description and author_id methods to Note (PR #5494)

2025-01-16 Thread Tom Hughes via rails-dev
@tomhughes approved this pull request. This looks good to me now, thanks. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5494#pullrequestreview-2556937510 You are receiving this because you are subscribed to this thread. Messa

Re: [openstreetmap/openstreetmap-website] Bump osm-community-index from 5.9.0 to 5.9.1 (PR #5502)

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

Re: [openstreetmap/openstreetmap-website] Remove account terms code unreachable for unregistered users (PR #5506)

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

Re: [openstreetmap/openstreetmap-website] Use class based map tiles dark mode (PR #5505)

2025-01-16 Thread Tom Hughes via rails-dev
@tomhughes requested changes on this pull request. > @@ -32,6 +32,11 @@ L.OSM.Map = L.Map.extend({ layerOptions.apikey = OSM[value]; } else if (property === "leafletOsmId") { layerConstructor = L.OSM[value]; +} else if (property === "leafletOsmDarkId" && OS

Re: [openstreetmap/openstreetmap-website] Remove account terms code unreachable for unregistered users (PR #5506)

2025-01-16 Thread Tom Hughes via rails-dev
Looks good to me, thanks. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5506#issuecomment-2596402564 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [openstreetmap/openstreetmap-website] Use baselayerchange/overlaylayerchange instead of layeradd/layerremove (PR #5474)

2025-01-16 Thread Roman Deev via rails-dev
@deevroman commented on this pull request. > this.addLayer(this.baseLayers[i]); } else { +baselayerChanged = this.hasLayer(this.baseLayers[i]); It seems that `"baselayerchange overlaylayerchange"` will work in this place -- Reply to this email directly or view it on Gi

Re: [openstreetmap/openstreetmap-website] Use baselayerchange/overlaylayerchange instead of layeradd/layerremove (PR #5474)

2025-01-16 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > this.addLayer(this.baseLayers[i]); } else { +baselayerChanged = this.hasLayer(this.baseLayers[i]); The answer to the above question was *yes* but it probably didn't affect anything. However if we start using `baselayerchang

Re: [openstreetmap/openstreetmap-website] Remove account terms code unreachable for unregistered users (PR #5506)

2025-01-16 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 1 commit. 87e7f887f5da0c38b110425c9bf97b03ce728724 Remove account terms code unreachable for unregistered users -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5506/files/e35760e3e5e72c41d7860af3495e2ef493677544..87e7f887f5da0c38b110425c9bf

Re: [openstreetmap/openstreetmap-website] Fixes translation key in TermsController (PR #5504)

2025-01-16 Thread Nenad Vujicic via rails-dev
Closed #5504. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5504#event-15964033363 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing

Re: [openstreetmap/openstreetmap-website] Fixes translation key in TermsController (PR #5504)

2025-01-16 Thread Nenad Vujicic via rails-dev
Closed in favor of #5506 -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5504#issuecomment-2596108752 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [openstreetmap/openstreetmap-website] Remove account terms code unreachable for unregistered users (PR #5506)

2025-01-16 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 1 commit. e35760e3e5e72c41d7860af3495e2ef493677544 Remove account terms code unreachable for unregistered users -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5506/files/2e92eba531c314b46c28db8fe0346177ab60474d..e35760e3e5e72c41d7860af3495

[openstreetmap/openstreetmap-website] Remove account terms code unreachable for unregistered users (PR #5506)

2025-01-16 Thread Anton Khorev via rails-dev
You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5506 -- Commit Summary -- * Remove account terms code unreachable for unregistered users -- File Changes -- M app/abilities/ability.rb (4) M app/controllers/

Re: [openstreetmap/openstreetmap-website] Use baselayerchange/overlaylayerchange instead of layeradd/layerremove (PR #5474)

2025-01-16 Thread Roman Deev via rails-dev
@deevroman commented on this pull request. > this.addLayer(this.baseLayers[i]); } else { +baselayerChanged = this.hasLayer(this.baseLayers[i]); So the next handler also violates this expectation? https://github.com/openstreetmap/openstreetmap-website/blob/b45eb03a6c026e

Re: [openstreetmap/openstreetmap-website] Use baselayerchange/overlaylayerchange instead of layeradd/layerremove (PR #5474)

2025-01-16 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > @@ -116,6 +116,7 @@ L.OSM.Map = L.Map.extend({ } else { this.removeLayer(this.baseLayers[i]); } + this.fire("baselayerchange", { layer: this.baseLayers[i] }); Yes, looks like our layers menu is wrong. Leaflet's layer sel

Re: [openstreetmap/openstreetmap-website] Use baselayerchange/overlaylayerchange instead of layeradd/layerremove (PR #5474)

2025-01-16 Thread Anton Khorev via rails-dev
Do we fix `baselayerchange` everywhere before doing this PR that changes listeners for this event? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5474#issuecomment-2595886376 You are receiving this because you are subscribed to t

Re: [openstreetmap/openstreetmap-website] Use baselayerchange/overlaylayerchange instead of layeradd/layerremove (PR #5474)

2025-01-16 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > @@ -116,6 +116,7 @@ L.OSM.Map = L.Map.extend({ } else { this.removeLayer(this.baseLayers[i]); } + this.fire("baselayerchange", { layer: this.baseLayers[i] }); You could put `this.fire ...` next to `this.addLayer ...`, th

Re: [openstreetmap/openstreetmap-website] Use baselayerchange/overlaylayerchange instead of layeradd/layerremove (PR #5474)

2025-01-16 Thread Anton Khorev via rails-dev
@AntonKhorev requested changes on this pull request. > this.addLayer(this.baseLayers[i]); } else { +baselayerChanged = this.hasLayer(this.baseLayers[i]); `baselayerchange` is supposed to be fired *once* for the layer that became visible. It's not supposed to be fired fo

Re: [openstreetmap/openstreetmap-website] Fixes translation key in TermsController (PR #5504)

2025-01-16 Thread Nenad Vujicic via rails-dev
> Is this branch reachable now? We don't show the terms page to unregistered > users after the signup redesign, therefore `current_user` should be set. Well, I was wondering about this too, but left untouched because didn't fully understand it. Do we need to simply remove this branch (and transl