Re: [openstreetmap/openstreetmap-website] Remove OSM.params in favor of URLSearchParams (PR #5825)

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

Re: [openstreetmap/openstreetmap-website] Bump @types/leaflet from 1.9.16 to 1.9.17 (PR #5843)

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

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

2025-03-25 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > +const textarea = content.find("textarea"); +if (textarea.length) { + data.set("text", textarea.val()); +} I guess @hlfan wants to say that the OSM API reacts the same to empty `text` parameters and missing `text`

Re: [openstreetmap/openstreetmap-website] Adds version to notes table and creates note_versions table (PR #5815)

2025-03-25 Thread Anton Khorev via rails-dev
AntonKhorev left a comment (openstreetmap/openstreetmap-website#5815) > If we set an updated_at attribute whenever a new version is created, why > would sorting by that be problematic? Wouldn't it be sufficient for ordering > by the latest updates instead of relying on a surrogate id from note_c

Re: [openstreetmap/openstreetmap-website] Shorten matching urls in linkify (PR #5844)

2025-03-25 Thread Tom Hughes via rails-dev
@tomhughes commented on this pull request. > @@ -76,11 +76,13 @@ def sanitize(text) end def linkify(text, mode = :urls) - if text.html_safe? -Rinku.auto_link(text, mode, tag_builder.tag_options(:rel => "nofollow noopener noreferrer")).html_safe - else -Rink

Re: [openstreetmap/openstreetmap-website] Shorten matching urls in linkify (PR #5844)

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

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

2025-03-25 Thread Marwin Hochfelsner via rails-dev
Closed #5832. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5832#event-16933709037 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing

Re: [openstreetmap/openstreetmap-website] Change heatmap color to sqrt from 0 to max changes (PR #5833)

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

Re: [openstreetmap/openstreetmap-website] Show changeset element counts using badges (PR #4872)

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

Re: [openstreetmap/openstreetmap-website] Show changeset element counts using badges (PR #4872)

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

Re: [openstreetmap/openstreetmap-website] Shorten matching urls in linkify (PR #5844)

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

Re: [openstreetmap/openstreetmap-website] Rewrite history page url when scrolling (PR #5826)

2025-03-25 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > @@ -97,11 +158,22 @@ OSM.History = function (map) { .then(response => response.text()) .then(function (html) { displayFirstChangesets(html); +enableChangesetIntersectionObserver(); + +if (params.has("before"))

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

2025-03-25 Thread Tom Hughes via rails-dev
@tomhughes commented on this pull request. > +const textarea = content.find("textarea"); +if (textarea.length) { + data.set("text", textarea.val()); +} Which API call are you talking about? Surely we want to avoid any errors? -- Reply to this email directly or

Re: [openstreetmap/openstreetmap-website] Adds version to notes table and creates note_versions table (PR #5815)

2025-03-25 Thread Emin Kocan via rails-dev
kcne left a comment (openstreetmap/openstreetmap-website#5815) @AntonKhorev, just to clarify—are you referring to sorting notes by their latest updates or reconstructing the full note history for discussions (e.g., from note, note_versions, and note_comments)? If we set an updated_at attribute

Re: [openstreetmap/openstreetmap-website] Show changeset element counts using badges (PR #4872)

2025-03-25 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > - nodes: "Nodes (%{count})" + nodes_title: "Nodes" nodes_paginated: "Nodes (%{x}-%{y} of %{count})" - ways: "Ways (%{count})" + ways_title: "Ways" ways_paginated: "Ways (%{x}-%{y} of %{count})" - relations: "Re

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

2025-03-25 Thread Nitai Sasson via rails-dev
NeatNit left a comment (openstreetmap/openstreetmap-website#5840) In that case, I stand by the current version of this PR. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5840#issuecomment-2751739808 You are receiving this because

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

2025-03-25 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5840) I really don't think we want to get into writing and maintaining our own complicated algorithms for determining direction, especially given the huge number of elements we would need to apply it to, and a especially before there

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

2025-03-25 Thread Nitai Sasson via rails-dev
NeatNit left a comment (openstreetmap/openstreetmap-website#5840) I'm considering rewriting this from scratch, with the following changes which would result in nicer code and better output: 1. Instead of subclassing the HTML converter, I will modify the document upon its creation. This would me

Re: [openstreetmap/openstreetmap-website] Show changeset element counts using badges (PR #4872)

2025-03-25 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > +<% if pages.page_count == 1 %> + +<%= t ".#{type.pluralize}_title" %> + + <%= pages.item_count %> + + +<% elsif pages.page_count > 1 %> + +<%= t ".#{type.pluralize}_title" %> + + <%= t ".range", :x => pages.curre

Re: [openstreetmap/openstreetmap-website] Shorten matching urls in linkify (PR #5844)

2025-03-25 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > @@ -76,11 +76,13 @@ def sanitize(text) end def linkify(text, mode = :urls) - if text.html_safe? -Rinku.auto_link(text, mode, tag_builder.tag_options(:rel => "nofollow noopener noreferrer")).html_safe - else -Ri

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

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

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

2025-03-25 Thread Rilus Mahmud via rails-dev
RilusMahmud left a comment (openstreetmap/openstreetmap-website#5845) https://github.com/user-attachments/assets/e40865e3-5265-4346-be89-26ff4d5ebeab"; /> here is the full view, here i ran these commands one by one, first, docker compose build then, docker compose up -d, then on left pane, i ran

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

2025-03-25 Thread Tom Hughes via rails-dev
Reopened #5845. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5845#event-16970894205 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mail

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

2025-03-25 Thread Rilus Mahmud via rails-dev
RilusMahmud left a comment (openstreetmap/openstreetmap-website#5845) @tomhughes i am following the docker instructions, https://github.com/user-attachments/assets/f6820170-fc52-4bd7-a7eb-744f84052925"; /> and in migration step, docker compose run --rm web bundle exec rails db:migrate this co

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

2025-03-25 Thread Rilus Mahmud via rails-dev
RilusMahmud created an issue (openstreetmap/openstreetmap-website#5845) ### URL _No response_ ### How to reproduce the issue? I'm trying to host on my local server, all was going well, but while running migration, got this error, To use retry middleware with Faraday v2.0+, install `faraday-re

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

2025-03-25 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5845) Whatever your problem with migrations is I can assure it's nothing to do with that message. It doesn't really make much sense for `db:migrate` to complain about pending migrations because it's job is to run them but I've never

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

2025-03-25 Thread Rilus Mahmud via rails-dev
RilusMahmud left a comment (openstreetmap/openstreetmap-website#5845) @tomhughes But my migration didn't ran for this issues, how can i do that? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5845#issuecomment-2750612905 You

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

2025-03-25 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5845) You don't need to fix it because it's not an error, it's just an informational message. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5845#issuecomment-27506

Re: [openstreetmap/openstreetmap-website] can't activate "internal" search results (#872)

2025-03-25 Thread Marwin Hochfelsner via rails-dev
hlfan left a comment (openstreetmap/openstreetmap-website#872) Even with multiple pins this problem remains: > Otherwise there would be no obvious time when the marker could be removed > again. Although I think the closing of the search sidebar or opening another seems a pretty obvious time to

Re: [openstreetmap/openstreetmap-website] Remove unused options argument from user_image_url (PR #5839)

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

Re: [openstreetmap/openstreetmap-website] Map Data checkbox: perhaps use toggle slider instead (PR #5009)

2025-03-25 Thread David Tsiklauri via rails-dev
nertc left a comment (openstreetmap/openstreetmap-website#5009) For `CPU slowdown` I use browser built-in functionality. Difference between getting data from server and rendering them is that while getting data, there are no CPU intense tasks and loading icon is shown next to the `data layer` c