Re: [openstreetmap/openstreetmap-website] Remove controls sprite (PR #5752)

2025-03-26 Thread Marwin Hochfelsner via rails-dev
@hlfan pushed 4 commits. 731b167714fb6acb520f62602f321ff9cfb77f71 Unify active control button behaviour 07893ac5bbdbf3024131ad353514e9ee36e3c2b3 Set fixthemap note link in template 8d88b38e92943c49d0097010f83e85aa0327b5e7 Click links instead of icons in tests 73afa85266af789fef46f6be934e1eb476e

Re: [openstreetmap/openstreetmap-website] Remove controls sprite (PR #5752)

2025-03-26 Thread Marwin Hochfelsner via rails-dev
@hlfan pushed 1 commit. b73906f4693a7e2e1b07f6352997092a0166bb93 Use icon definitions templates -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5752/files/bb5ce3b03b4c54d39e76d0b67e5c3d0930924922..b73906f4693a7e2e1b07f6352997092a0166bb93 You are receiving this

Re: [openstreetmap/openstreetmap-website] Remove controls sprite (PR #5752)

2025-03-26 Thread Marwin Hochfelsner via rails-dev
hlfan left a comment (openstreetmap/openstreetmap-website#5752) Most aren't needed anywhere other than the map layout, so only the zoom/locate icons need to be there. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5752#issuecomm

Re: [openstreetmap/openstreetmap-website] Add dir="auto" to Markdown content for bidi (PR #5840)

2025-03-26 Thread Nitai Sasson via rails-dev
@NeatNit commented on this pull request. > +"dl", +# "dd", "dt", # child - since it's similar to a list, it has the same behavior as a list + +"math" # don't know how this ends up, but dir="auto" is probably correct + ].each do |name| +define_method :"conve

Re: [openstreetmap/openstreetmap-website] Migration run failed saying To use retry middleware with Faraday v2.0+, install `faraday-retry` gem (Issue #5845)

2025-03-26 Thread Rilus Mahmud via rails-dev
RilusMahmud left a comment (openstreetmap/openstreetmap-website#5845) @gravitystorm thanks a lot! -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5845#issuecomment-2756513265 You are receiving this because you are subscribed to

Re: [openstreetmap/openstreetmap-website] Remove controls sprite (PR #5752)

2025-03-26 Thread Anton Khorev via rails-dev
AntonKhorev left a comment (openstreetmap/openstreetmap-website#5752) If you put the icons in a erb template and include that template from map layout and other pages that use the icons, you'll have all the icons in one place without paths in javascript. Something like this: https://github.com/

Re: [openstreetmap/openstreetmap-website] Add dir="auto" to Markdown content for bidi (PR #5840)

2025-03-26 Thread Anton Khorev via rails-dev
AntonKhorev left a comment (openstreetmap/openstreetmap-website#5840) This is a version that modifies the document, consisting of replaced `document` method, assuming we don't need to add `dir` on inline elements: ```ruby def document return @document if @document @document = Kr

Re: [openstreetmap/openstreetmap-website] Add dir="auto" to Markdown content for bidi (PR #5840)

2025-03-26 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > +"dl", +# "dd", "dt", # child - since it's similar to a list, it has the same behavior as a list + +"math" # don't know how this ends up, but dir="auto" is probably correct + ].each do |name| +define_method :"c

[openstreetmap/openstreetmap-website] Support interactive debugger with docker-compose (PR #5851)

2025-03-26 Thread rkoeze via rails-dev
### Description Configures the `web` service in `docker-compose.yml` file to allow for interactive debugging. `tty` allocates a pseudo terminal while `stdin_open` runs the container with stdin. Running `docker attach WEB_CONTAINER_ID` connects to the running container where the debugger can be

Re: [openstreetmap/openstreetmap-website] Provide a truncated view of recent diaries (PR #5121)

2025-03-26 Thread Anton Khorev via rails-dev
AntonKhorev left a comment (openstreetmap/openstreetmap-website#5121) If the truncation was the last step, I'd move to another module/class, which I'd use only when I need to truncate. But currently html conversion is followed by sanitize and linkify (why not first linkify then sanitize?). Can w

[openstreetmap/openstreetmap-website] Remove TagHelper include from RichText module (PR #5850)

2025-03-26 Thread Anton Khorev via rails-dev
We use TagHelper module to convert `:rel => "nofollow noopener noreferrer"` into `'rel="nofollow noopener noreferrer"'`, probably because [Rinku](https://github.com/vmg/rinku)'s readme says thet we can generate an attribute string from a hash. And to do that we have to call what is now a priva

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

2025-03-26 Thread Andy Allan via rails-dev
Closed #5329 as completed. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5329#event-16994273641 You are receiving this because you are subscribed to this thread. Message ID: ___ rai

[openstreetmap/openstreetmap-website] Fix GitHub badges in readme (PR #5849)

2025-03-26 Thread Anton Khorev via rails-dev
Before: ![image](https://github.com/user-attachments/assets/d6894e11-b510-48cf-8a20-edb3ab21df54) After: ![image](https://github.com/user-attachments/assets/e1abc4a2-9606-4c1b-a519-e6c5f182dce4) You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/op

Re: [openstreetmap/openstreetmap-website] Add dir="auto" to Markdown content for bidi (PR #5840)

2025-03-26 Thread Nitai Sasson via rails-dev
@NeatNit commented on this pull request. > +# "li", # child; sometimes container + +"table", # similar to Discourse, where the parent of gets dir="auto" (no parent div in kramdown) +# "td", # child +# "th", # child; not actually a thing in kramdown but hypothet

[openstreetmap/openstreetmap-website] Map key resource (PR #5830)

2025-03-26 Thread Anton Khorev via rails-dev
The remainder of #5024 done similarly to #5751, without `Features` namespace. Moves map key from `site` to its own resource/controller. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5830 -- Commit Summary -- * Cre

Re: [openstreetmap/openstreetmap-website] Viewing a changeset loses context of previous changeset list (#647)

2025-03-26 Thread Tom Hughes via rails-dev
Closed #647 as completed via #5826. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/647#event-16945524843 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [openstreetmap/openstreetmap-website] Fix "undefined" comment when hiding resolved notes (PR #5842)

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

Re: [openstreetmap/openstreetmap-website] Add dir="auto" to Markdown content for bidi (PR #5840)

2025-03-26 Thread Tom Hughes via rails-dev
@tomhughes commented on this pull request. > +# "li", # child; sometimes container + +"table", # similar to Discourse, where the parent of gets dir="auto" (no parent div in kramdown) +# "td", # child +# "th", # child; not actually a thing in kramdown but hypoth

Re: [openstreetmap/openstreetmap-website] Add dir="auto" to Markdown content for bidi (PR #5840)

2025-03-26 Thread Tom Hughes via rails-dev
@tomhughes commented on this pull request. > @@ -1,5 +1,45 @@ # frozen_string_literal: true +module Kramdown Actually https://kramdown.gettalong.org/rdoc/Kramdown/Converter/Base.html is the relevant documentation here but yes it does seem that this is intended as an extension point. -- R

Re: [openstreetmap/openstreetmap-website] Move more map layer logic to MapLayers lib to simplify JS (PR #5832)

2025-03-26 Thread Tom Hughes via rails-dev
@tomhughes commented on this pull request. > @@ -3,6 +3,10 @@ def self.full_definitions(layers_filename) YAML.load_file(Rails.root.join(layers_filename)) .reject { |layer| layer["apiKeyId"] && !Settings[layer["apiKeyId"]] } .map do |layer| + layer["name"] = I18n.t

Re: [openstreetmap/openstreetmap-website] Fix "undefined" comment when hiding resolved notes (PR #5842)

2025-03-26 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5842) I think this is probably fine as it is, thanks. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5842#issuecomment-2755391411 You are receiving this because you ar

Re: [openstreetmap/openstreetmap-website] Migrations don't run in CI with rails 8 (Issue #5847)

2025-03-26 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5847) How can the tests run if the migrations haven't run? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5847#issuecomment-2754928143 You are receiving this because

Re: [openstreetmap/openstreetmap-website] Test migrations (PR #5848)

2025-03-26 Thread Andy Allan via rails-dev
gravitystorm left a comment (openstreetmap/openstreetmap-website#5848) Merged, thanks for figuring this out! -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5848#issuecomment-2755089600 You are receiving this because you are subsc

Re: [openstreetmap/openstreetmap-website] Migrations don't run in CI with rails 8 (Issue #5847)

2025-03-26 Thread Andy Allan via rails-dev
Closed #5847 as completed via #5848. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5847#event-16996710379 You are receiving this because you are subscribed to this thread. Message ID: _

Re: [openstreetmap/openstreetmap-website] Migrations don't run in CI with rails 8 (Issue #5847)

2025-03-26 Thread Andy Allan via rails-dev
Closed #5847 as completed via 1d89cee94672ed09ba1733cae76142b69f72b3cc. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5847#event-16996710444 You are receiving this because you are subscribed to this thread. Message ID: __

Re: [openstreetmap/openstreetmap-website] Test migrations (PR #5848)

2025-03-26 Thread Andy Allan via rails-dev
Merged #5848 into master. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5848#event-16996710106 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-

Re: [openstreetmap/openstreetmap-website] Migration run failed saying To use retry middleware with Faraday v2.0+, install `faraday-retry` gem (Issue #5845)

2025-03-26 Thread Andy Allan via rails-dev
gravitystorm left a comment (openstreetmap/openstreetmap-website#5845) @RilusMahmud Thanks for reporting this problem! We've now fixed it in the latest commits. If you update your repository, the migrations will now run properly. -- Reply to this email directly or view it on GitHub: https://gi

Re: [openstreetmap/openstreetmap-website] Allow to agree to new terms if already agreed to old terms (PR #5706)

2025-03-26 Thread Anton Khorev via rails-dev
AntonKhorev left a comment (openstreetmap/openstreetmap-website#5706) Do we just change the language from "accept" the ToU to "confirm that you read", or did we go from *mandatory* acceptance to *automatic* acceptance since https://github.com/openstreetmap/openstreetmap-website/pull/2028#issueco

[openstreetmap/openstreetmap-website] Test migrations (PR #5848)

2025-03-26 Thread Tom Hughes via rails-dev
Fixes #5847 by forcing migrations to run in test, and fixing some noise that had crept into the structure as a result of them not running. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5848 -- Commit Summary -- *

Re: [openstreetmap/openstreetmap-website] Migrations don't run in CI with rails 8 (Issue #5847)

2025-03-26 Thread Tom Hughes via rails-dev

Re: [openstreetmap/openstreetmap-website] Update strong_migrations to be compatible with rails 8 (PR #5846)

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

Re: [openstreetmap/openstreetmap-website] Update strong_migrations to be compatible with rails 8 (PR #5846)

2025-03-26 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5846) Looks good to me, thanks. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5846#issuecomment-2754953766 You are receiving this because you are subscribed to this t

Re: [openstreetmap/openstreetmap-website] Migrations don't run in CI with rails 8 (Issue #5847)

2025-03-26 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5847) Oh it's loading `structure.sql` instead of running migrations even though we explicitly ask it to run migrations? Even removing `db/structure.sql` first doesn't help - it sill doesn't run the migrations and you get an empty data

Re: [openstreetmap/openstreetmap-website] Migrations don't run in CI with rails 8 (Issue #5847)

2025-03-26 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5847) Also how does the structure compare equal? It can't possibly so the migrations must have run, it just doesn't log the output? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-

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

2025-03-26 Thread Andy Allan via rails-dev
gravitystorm left a comment (openstreetmap/openstreetmap-website#5329) If there's any dark-mode inconsistencies or similar in the UI that have been missed, please open separate issues for them. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-

Re: [openstreetmap/openstreetmap-website] Dark Mode for maps (Issue #5328)

2025-03-26 Thread Andy Allan via rails-dev
gravitystorm left a comment (openstreetmap/openstreetmap-website#5328) I'm closing this issue now, because the dark mode maps are now implemented as described above. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5328#issueco

[openstreetmap/openstreetmap-website] Migrations don't run in CI with rails 8 (Issue #5847)

2025-03-26 Thread Andy Allan via rails-dev
gravitystorm created an issue (openstreetmap/openstreetmap-website#5847) We have code to run the migrations in CI, mostly to make sure that when they run, they produce the same results as structure.sql When we upgraded to Rails 8, however, these migrations no longer run. I believe it's because,

[openstreetmap/openstreetmap-website] Update strong_migrations to be compatible with rails 8 (PR #5846)

2025-03-26 Thread Andy Allan via rails-dev
We previously pinned to an old version for ruby 3.1 support, but that's no longer required since rails needs 3.2 anyway. Fixes #5845 I'll follow up with the issue about why CI didn't catch this. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/o

Re: [openstreetmap/openstreetmap-website] Dark Mode for maps (Issue #5328)

2025-03-26 Thread Andy Allan via rails-dev
Closed #5328 as completed. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5328#event-16994261489 You are receiving this because you are subscribed to this thread. Message ID: ___ rai

Re: [openstreetmap/openstreetmap-website] add dir="auto" to paragraphs in rich_text.rb (PR #5835)

2025-03-26 Thread Nitai Sasson via rails-dev
NeatNit left a comment (openstreetmap/openstreetmap-website#5835) Yay! How long do you think until it goes live on osm.org? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5835#issuecomment-2746295538 You are receiving this becaus

Re: [openstreetmap/openstreetmap-website] Provide a truncated view of recent diaries (PR #5121)

2025-03-26 Thread David Tsiklauri via rails-dev
@nertc pushed 1 commit. 859d609fb2d519dab4253d9df5b1c718a30015d0 Provide a truncated view of recent diaries -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5121/files/09f4fb63448798f0698efa82052576005ab6a533..859d609fb2d519dab4253d9df5b1c718a30015d0 You are re

Re: [openstreetmap/openstreetmap-website] Convert more markers to SVG (PR #5764)

2025-03-26 Thread Marwin Hochfelsner via rails-dev
@hlfan pushed 1 commit. 43c9495f2f433264cf279f7cd7e504bb0601dba1 Convert leaflet markers to SVG -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5764/files/5a361fc250b9e47b3f482bdad30b05df2cf6a061..43c9495f2f433264cf279f7cd7e504bb0601dba1 You are receiving this

Re: [openstreetmap/openstreetmap-website] Convert more markers to SVG (PR #5764)

2025-03-26 Thread Marwin Hochfelsner via rails-dev
@hlfan pushed 1 commit. 981b5ff00112153ee46c9363bc67cdb786429d3a Convert leaflet markers to SVG -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5764/files/43c9495f2f433264cf279f7cd7e504bb0601dba1..981b5ff00112153ee46c9363bc67cdb786429d3a You are receiving this

Re: [openstreetmap/openstreetmap-website] Move more map layer logic to MapLayers lib to simplify JS (PR #5832)

2025-03-26 Thread Marwin Hochfelsner via rails-dev
@hlfan pushed 4 commits. f915b243a5c8af0859b62820f3759ea3a570fe31 Put layer definitions into map layout dc23418e768a99ca25c885e68ccb6dd8a857efe3 Translate names in MapLayers lib f882b7b367f7b8c72e15f4f2974b8a90b96b5bb8 Build attribution in MapLayers lib 327691eaba98e7248453b19153f3b50d7f034ebb