Re: [openstreetmap/openstreetmap-website] Transition more requests to fetch (PR #5669)

2025-02-15 Thread Tom Hughes via rails-dev
@tomhughes approved this pull request. Thanks for the changes. I think this all looks good now. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5669#pullrequestreview-2619362102 You are receiving this because you are subscribed

Re: [openstreetmap/openstreetmap-website] Transition more requests to fetch (PR #5669)

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

Re: [openstreetmap/openstreetmap-website] Replace var in javascript with let/const (PR #5558)

2025-02-15 Thread Tom Hughes via rails-dev
@tomhughes pushed 2 commits. acabad71a669c632bea8b96e9edbf0e37a763e43 Update eslint to prefer let/const over var 83dde9e78e9ea4eb6a7be3e5cb43bf740082f6b2 Replace uses of var with let or const as appropriate -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/555

Re: [openstreetmap/openstreetmap-website] Use fetch to make overpass requests for the query tool (PR #5662)

2025-02-15 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5662) Superseded by #5669. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5662#issuecomment-2660832367 You are receiving this because you are subscribed to this thread

Re: [openstreetmap/openstreetmap-website] Use fetch to make overpass requests for the query tool (PR #5662)

2025-02-15 Thread Tom Hughes via rails-dev
Closed #5662. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5662#event-16321102866 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing

Re: [openstreetmap/openstreetmap-website] Fix left/right sidebar resizing on mobile devices (PR #5521)

2025-02-15 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5521) This PR is marked as draft - if it's ready for review can you clear the draft flag please? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5521#issuecomment-2660

Re: [openstreetmap/openstreetmap-website] API active blocks list (PR #5452)

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

Re: [openstreetmap/openstreetmap-website] Fix left/right sidebar resizing on mobile devices (PR #5521)

2025-02-15 Thread Tom Hughes via rails-dev
@tomhughes approved this pull request. Thanks for the fix - this looks good to me now. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5521#pullrequestreview-2619424293 You are receiving this because you are subscribed to this t

[openstreetmap/openstreetmap-website] User list enhancements (PR #5677)

2025-02-15 Thread Tom Hughes via rails-dev
This enhances the user list view for administrators to include a search parameter bar at the top, to allow searching by IP subnet, and to properly preserve all search fields in links. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap

Re: [openstreetmap/openstreetmap-website] Fix left/right sidebar resizing on mobile devices (PR #5521)

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

Re: [openstreetmap/openstreetmap-website] Copies notes details from first comments to notes table (PR #5667)

2025-02-15 Thread Tom Hughes via rails-dev
@tomhughes commented on this pull request. > + note_ids = notes.pluck(:id) + + sql_query = <<-SQL.squish +WITH first_comment AS( + SELECT DISTINCT ON (note_id) * + FROM note_comments + WHERE note_id BETWEEN #{note_ids.min} AND #{note_ids.max} +

Re: [openstreetmap/openstreetmap-website] Copies notes details from first comments to notes table (PR #5667)

2025-02-15 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5667) > How will that code know if the first comment has been already deleted for a > given note? It can't just be `all_comments.drop(1)` for example, since that > won't work after the next migration has completed. I was imagining de

Re: [openstreetmap/openstreetmap-website] Replace var in javascript with let/const (PR #5558)

2025-02-15 Thread Tom Hughes via rails-dev
@tomhughes pushed 2 commits. b3e0a7b5fd43680e3ca992ac7c31a9bfb09c47a6 Update eslint to prefer let/const over var 61760af161bab1b8a91dc08df63d139d70185e1c Replace uses of var with let or const as appropriate -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/555

Re: [openstreetmap/openstreetmap-website] changeset-page doesn't pan to changeset location when opened from links in rss-feed (#865)

2025-02-15 Thread Tom Hughes via rails-dev
Closed #865 as completed via b14965e4b211ad7eece9b8a77b984c140744dc8f. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/865#event-16322047640 You are receiving this because you are subscribed to this thread. Message ID:

Re: [openstreetmap/openstreetmap-website] fix map panning to objects when url hash is not empty but has no map location (PR #5679)

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

Re: [openstreetmap/openstreetmap-website] fix map panning to objects when url hash is not empty but has no map location (PR #5679)

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

Re: [openstreetmap/openstreetmap-website] Update error pages (PR #5131)

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

Re: [openstreetmap/openstreetmap-website] Update error pages (PR #5131)

2025-02-15 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5131) Most of the discussion here seems to be about whether this goes far enough but I don't see any significant complaints about the things this does do, and it looks good to me so I'm going to merge it. If people want to propose ad

Re: [openstreetmap/openstreetmap-website] Request wikidata and osm sophox to linkify some tag value (#2621)

2025-02-15 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#2621) It's been pointed out on #5200 that this could be simplified by using the `tag2link` npm package and loading the JSON data it includes - we'd probably want to only link things with a rank of `preferred` if only to avoid having

[openstreetmap/openstreetmap-website] Include spam reports on unresolved issues in the spam score (PR #5676)

2025-02-15 Thread Tom Hughes via rails-dev
I think this should be reasonably safe - it will need three reports to trigger a suspension or possibly less if there are already links in the content adding to a score. Given the negative influence of edits on the score it's unlikely that people reporting users for map spam will manage to trig

Re: [openstreetmap/openstreetmap-website] After restoring a closed tab, the page's CSS styles are not loaded (Issue #5663)

2025-02-15 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5663) That change does indeed seem to be the cause. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5663#issuecomment-2660963705 You are receiving this because you ar

Re: [openstreetmap/openstreetmap-website] Fix left/right sidebar resizing on mobile devices (PR #5521)

2025-02-15 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5521) It still seems to be restricted to half the screen for me: ![image](https://github.com/user-attachments/assets/c3e142cb-e638-4c90-aa8f-62cc1cf945c1) -- Reply to this email directly or view it on GitHub: https://github.com/open

[openstreetmap/openstreetmap-website] Prevent caching a partial XHR response as a full page URL (PR #5678)

2025-02-15 Thread Tom Hughes via rails-dev
Long term we should fix the sidebar to use turbo but for now this fixes #5663. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5678 -- Commit Summary -- * Prevent caching a partial XHR response as a full page URL --

Re: [openstreetmap/openstreetmap-website] Process trace files once (PR #5233)

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

Re: [openstreetmap/openstreetmap-website] Process trace files once (PR #5233)

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

Re: [openstreetmap/openstreetmap-website] Selecting a note centres the map on it and zooms (Issue #5683)

2025-02-16 Thread Tom Hughes via rails-dev
Closed #5683 as completed via #5686. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5683#event-16323960837 You are receiving this because you are subscribed to this thread. Message ID: _

Re: [openstreetmap/openstreetmap-website] don't re-pan the map when selecting another note that is already on screen (PR #5686)

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

Re: [openstreetmap/openstreetmap-website] Replace var in javascript with let/const (PR #5558)

2025-02-16 Thread Tom Hughes via rails-dev
@tomhughes pushed 2 commits. f83424aeb20cf371925094c6640ff407185cc0a4 Update eslint to prefer let/const over var c47cb299a842a2eb7d022fcf4f0d02c08001f928 Replace uses of var with let or const as appropriate -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/555

Re: [openstreetmap/openstreetmap-website] don't re-pan the map when selecting another note that is already on screen (PR #5686)

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

Re: [openstreetmap/openstreetmap-website] Don't zoom in when commenting/closing a note. (#648)

2025-02-16 Thread Tom Hughes via rails-dev
Closed #648 as completed via 793757a6ff4a6ca3cb7ad5454fec1c51fe63804f. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/648#event-16323960799 You are receiving this because you are subscribed to this thread. Message ID:

Re: [openstreetmap/openstreetmap-website] Add option to use headless Firefox in system tests (PR #5684)

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

Re: [openstreetmap/openstreetmap-website] Add option to use headless Firefox in system tests (PR #5684)

2025-02-16 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5684) I usually just hack to code temporarily to do that, but it looks good to me, thanks. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5684#issuecomment-2661320634

Re: [openstreetmap/openstreetmap-website] Add changeset comment search api with filtering by author and time (PR #4359)

2025-02-16 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#4359) This looks good to me. Thanks for keeping it alive for so long. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/4359#issuecomment-2661332529 You are receiving thi

Re: [openstreetmap/openstreetmap-website] Add changeset comment search api with filtering by author and time (PR #4359)

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

Re: [openstreetmap/openstreetmap-website] Replace var in javascript with let/const (PR #5558)

2025-02-16 Thread Tom Hughes via rails-dev
@tomhughes pushed 2 commits. 887ec6f6ef56ce660a43306dd771d8768e7b58b5 Update eslint to prefer let/const over var a2de8402b34f3d68e49260bd52b71fa837f83a4a Replace uses of var with let or const as appropriate -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/555

Re: [openstreetmap/openstreetmap-website] Replace var in javascript with let/const (PR #5558)

2025-02-16 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5558) I've rebased this now. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5558#issuecomment-2661341416 You are receiving this because you are subscribed to this thre

Re: [openstreetmap/openstreetmap-website] API element resources - redaction paths (PR #5656)

2025-02-16 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5656) I've just discussed this with @gravitystorm and we think the fallback code should only be enabled when the old route is used - the best way to do that is probably to have the route set a flag parameter and then make the action o

Re: [openstreetmap/openstreetmap-website] Use 'My Account' for account pages (PR #5681)

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

Re: [openstreetmap/openstreetmap-website] Use 'My Account' for account pages (PR #5681)

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

Re: [openstreetmap/openstreetmap-website] Align bottoms of date-username-changeset_id and counters in history (PR #5800)

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

Re: [openstreetmap/openstreetmap-website] Revise search forms (PR #5765)

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

Re: [openstreetmap/openstreetmap-website] Add social profile links (PR #5439)

2025-03-15 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5439) That seems to have been some glitch with the tests. I forced a rerun and they passed fine. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5439#issuecomment-2711

Re: [openstreetmap/openstreetmap-website] opening https://www.openstreetmap.org/way/12432594/ link does not center map where way is (Issue #5798)

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

Re: [openstreetmap/openstreetmap-website] Write directions sidebar header using .erb template (PR #5754)

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

Re: [openstreetmap/openstreetmap-website] update-wiki-pages: process ChangesetKey template (PR #5818)

2025-03-19 Thread Tom Hughes via rails-dev
@tomhughes commented on this pull request. > @@ -8,6 +8,7 @@ use Pod::Usage; use MediaWiki::API; use Test::More qw(no_plan); use YAML::XS qw(Dump); +# NOTE: on macos, LWP::Protocol::https also needs to be installed There's nothing macos specific about that - the https protocol handler is in

Re: [openstreetmap/openstreetmap-website] Missing translations should fall back to English (Issue #5819)

2025-03-18 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5819) Missing translations do fall back to english - what make you think they don't? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5819#issuecomment-2734882038 You

Re: [openstreetmap/openstreetmap-website] Add reload on iframe redirect (PR #5823)

2025-03-19 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5823) It's a bit nasty but I don't see a better solution - the ideal would be that the server forces a full page reload when it needs to redirect the id frame to the login but that isn't possible for obvious reasons because of the sec

Re: [openstreetmap/openstreetmap-website] Switch to dynamic allocation for the Firefox bidi port (PR #5820)

2025-03-19 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5820) It also hasn't been deployed yet! -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5820#issuecomment-2737465744 You are receiving this because you are subscribed t

Re: [openstreetmap/openstreetmap-website] Make URLs more relative (PR #5824)

2025-03-19 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5824) I'm not really sure why it's doing that... There an aspiration to separate API calls onto a separate domain which I guess is the reason but we've never got anywhere near making it a reality. -- Reply to this email directly or

Re: [openstreetmap/openstreetmap-website] Make URLs more relative (PR #5824)

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

Re: [openstreetmap/openstreetmap-website] Put changeset and note comments in elements (PR #5837)

2025-03-23 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5837) Looks good to me, thanks. I was going to say we should do the same for diary entries, but I see that already use `article` so there's nothing to do there. -- Reply to this email directly or view it on GitHub: https://github.co

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

2025-03-23 Thread Tom Hughes via rails-dev
@tomhughes requested changes on this pull request. Looks good to me - just one small cosmetic comment. > @@ -97,11 +158,22 @@ OSM.History = function (map) { .then(response => response.text()) .then(function (html) { displayFirstChangesets(html); +enableChangesetInte

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

2025-03-23 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5835) Can you also squash the fixup commits into the commit they're fixing please. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5835#issuecomment-2746264423 You are

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

2025-03-23 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5835) In fact this is going to just wind up as a single commit I think so squash everything together unless you have a good reason not to. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstr

Re: [openstreetmap/openstreetmap-website] Add profile location (PR #5302)

2025-03-23 Thread Tom Hughes via rails-dev
@tomhughes commented on this pull request. > @@ -139,6 +139,16 @@ +<% if @user.home_location_name && @user.home_location_name.strip.present? %> This could just be `@user.home_location_name&.strip.present?`? > @@ -0,0 +1,65 @@ +OSM.HomeLocationNameEndp

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

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

Re: [openstreetmap/openstreetmap-website] Bump eslint from 9.22.0 to 9.23.0 (PR #5836)

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

Re: [openstreetmap/openstreetmap-website] Put changeset and note comments in elements (PR #5837)

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

Re: [openstreetmap/openstreetmap-website] Update straight routing in tests to use named directions icons (PR #5827)

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

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

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

Re: [openstreetmap/openstreetmap-website] Update to rails 8 (PR #5430)

2025-03-20 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5430) Ah I had actually re-enabled the gem but forgot to uncomment the config again. Now fixed. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5430#issuecomment-27401

Re: [openstreetmap/openstreetmap-website] Increase dynamic range of contribution heatmap (Issue #5831)

2025-03-21 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5831) I hadn't realised we were using fixed buckets - that does seem like a poor choice. Is there any benefit to use one of the log types rather than linear, to better capture variation at the low end for people that occasionally do

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

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

Re: [openstreetmap/openstreetmap-website] Use Date().toLocaleString() to construct month titles (PR #5834)

2025-03-21 Thread Tom Hughes via rails-dev
Merged #5834 into master. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5834#event-16932984762 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-21 Thread Tom Hughes via rails-dev
@tomhughes requested changes 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"]

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

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

Re: [openstreetmap/openstreetmap-website] Use Date().toLocaleString() to construct month titles (PR #5834)

2025-03-21 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5834) It's a bit annoying having to use mix our own translation with the browser's like this bit it seems to work OK so this looks good to me. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/ope

Re: [openstreetmap/openstreetmap-website] Show heatmap only to logged in users (PR #5829)

2025-03-21 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5829) Well we can allow moderators to see the heatmap even where the user has asked to hide it, and I was assuming that we would, which helps with the review problem. -- Reply to this email directly or view it on GitHub: https://git

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

2025-03-21 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5706) There's no need to "accept" changes to the terms though, or rather the terms says that you're expected to check them when you want and that [continuing to use the service constitutes acceptance of any changes](https://osmfounda

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

2025-03-21 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5121) I think this needs some sort of indication when an entry has been truncated - an ellipsis at the end of the truncated text or something. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/ope

Re: [openstreetmap/openstreetmap-website] Show heatmap only to logged in users (PR #5829)

2025-03-24 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5829) Look I don't want to remove it but it legally we have no choice but to offer that option then so be it - it would be good to get an actual statement from the current LWG rather than comments from a former member of course. My c

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 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 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] Update to i18n-js 4.x (PR #5811)

2025-03-16 Thread Tom Hughes via rails-dev
@tomhughes pushed 1 commit. 6ea3991de6ee0fc78335663a6a33f611d1304efb Update to i18n-js 4.x -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5811/files/93fab10f6e606e14a867bac1f5a990d22c41cd6d..6ea3991de6ee0fc78335663a6a33f611d1304efb You are receiving this becau

Re: [openstreetmap/openstreetmap-website] Put api keys directly in js layer definitions (PR #5809)

2025-03-16 Thread Tom Hughes via rails-dev
@tomhughes commented on this pull request. > @@ -0,0 +1,19 @@ +module MapLayers + def self.full_definitions(layers_filename) +YAML.load_file(Rails.root.join(layers_filename)).filter_map do |layer| Err... I guess... Which is why I hate that sort of control flow :-( -- Reply to this email

Re: [openstreetmap/openstreetmap-website] Put api keys directly in js layer definitions (PR #5809)

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

Re: [openstreetmap/openstreetmap-website] Put api keys directly in js layer definitions (PR #5809)

2025-03-16 Thread Tom Hughes via rails-dev
@tomhughes commented on this pull request. > @@ -0,0 +1,19 @@ +module MapLayers + def self.full_definitions(layers_filename) +YAML.load_file(Rails.root.join(layers_filename)).filter_map do |layer| This isn't actually doing any filtering it is? The block always returns a "truthy" value so

Re: [openstreetmap/openstreetmap-website] Filter out invisible nodes and ways during initial selection (PR #5589)

2025-03-16 Thread Tom Hughes via rails-dev
@tomhughes pushed 1 commit. 6f887001dec8a31da29ee3a17d64549511d21bff Filter out invisible nodes and ways during initial selection -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5589/files/ff0c1b492a966b183d8a03f47bc4b8c9f598418d..6f887001dec8a31da29ee3a17d645

[openstreetmap/openstreetmap-website] Update to i18n-js 4.x (PR #5811)

2025-03-16 Thread Tom Hughes via rails-dev
This updates i18n-js to the 4.x branch which requires quite a bit of re-engineering due to upstream API changes. Although this looks quite large the vast majority of it is just replacement of `I18n.t` with `OSM.i18n.t` as you now need to instantiate an instance of I18n instead of just using glo

Re: [openstreetmap/openstreetmap-website] Update to i18n-js 4.x (PR #5811)

2025-03-16 Thread Tom Hughes via rails-dev
@tomhughes pushed 1 commit. 37dfb402cfe3d8e6429f80ebacbe37ae97fef158 Update to i18n-js 4.x -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5811/files/aa75a1ec628fe387342bce58f90ca14bc6c3714e..37dfb402cfe3d8e6429f80ebacbe37ae97fef158 You are receiving this becau

Re: [openstreetmap/openstreetmap-website] Update to i18n-js 4.x (PR #5811)

2025-03-16 Thread Tom Hughes via rails-dev
@tomhughes pushed 1 commit. 93fab10f6e606e14a867bac1f5a990d22c41cd6d Update to i18n-js 4.x -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5811/files/37dfb402cfe3d8e6429f80ebacbe37ae97fef158..93fab10f6e606e14a867bac1f5a990d22c41cd6d You are receiving this becau

Re: [openstreetmap/openstreetmap-website] Fix heatmap month titles in Western Hemisphere (PR #5806)

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

Re: [openstreetmap/openstreetmap-website] Add links to days in user history from heatmap (PR #5805)

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

Re: [openstreetmap/openstreetmap-website] "Comments" link on the user profile should include changeset and note comments. (#1148)

2025-03-16 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#1148) Well technically this issue suggests including note comments as well, which are there, but on a separate link. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/

Re: [openstreetmap/openstreetmap-website] Remove workaround for iD 2.31 (PR #5813)

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

Re: [openstreetmap/openstreetmap-website] Fix heatmap month titles in Western Hemisphere (PR #5806)

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

Re: [openstreetmap/openstreetmap-website] Monkey patch Selenium to allocate unique bidi ports (PR #5796)

2025-03-16 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5796) I don't normally self-merge things but nobody has spotted any problems with this and it's getting annoying seeing a sea of red in the PR queue so I'm going to merge and if anybody spots a problem we can fix it later. -- Reply

Re: [openstreetmap/openstreetmap-website] Monkey patch Selenium to allocate unique bidi ports (PR #5796)

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

Re: [openstreetmap/openstreetmap-website] Contribution heatmap is off by a month (Issue #5802)

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

Re: [openstreetmap/openstreetmap-website] Add links to days in user history from heatmap (PR #5805)

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

Re: [openstreetmap/openstreetmap-website] Update to i18n-js 4.x (PR #5811)

2025-03-16 Thread Tom Hughes via rails-dev
@tomhughes pushed 1 commit. cc525cdf2a47f9807ce71cc4722265d8c344122f Update to i18n-js 4.x -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5811/files/6ea3991de6ee0fc78335663a6a33f611d1304efb..cc525cdf2a47f9807ce71cc4722265d8c344122f You are receiving this becau

Re: [openstreetmap/openstreetmap-website] Update to i18n-js 4.x (PR #5811)

2025-03-16 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5811) I've split this as suggested so that the mass renaming can be done first and then the functional changes. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5811#is

Re: [openstreetmap/openstreetmap-website] Disable asynchronous object layer loading (PR #5799)

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

Re: [openstreetmap/openstreetmap-website] Align bottoms of date-username-changeset_id and counters in history (PR #5800)

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

Re: [openstreetmap/openstreetmap-website] Revise search forms (PR #5765)

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

Re: [openstreetmap/openstreetmap-website] Add social profile links (PR #5439)

2025-03-14 Thread Tom Hughes via rails-dev
@tomhughes commented on this pull request. > + +class SocialLink < ApplicationRecord + belongs_to :user + + validates :url, :format => { :with => %r{\Ahttps?://.+\z}, :message => :http_parse_error } + + URL_PATTERNS = { +:bluesky => %r{\Ahttps?://(?:www\.)?bsky\.app/profile/([a-zA-Z0-9\.

Re: [openstreetmap/openstreetmap-website] API changeset subscription resource (PR #5801)

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

Re: [openstreetmap/openstreetmap-website] API changeset subscription resource (PR #5801)

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

Re: [openstreetmap/openstreetmap-website] Add UserActivities module for structured user activity history (PR #5761)

2025-03-18 Thread Tom Hughes via rails-dev
@tomhughes requested changes on this pull request. I'm not sure why you say union is hard? We have https://github.com/brianhempel/active_record_union installed already so you can just use the `union` or `union_all` method on a relation to merge it with another one? > + # Common SQL for activi

<    4   5   6   7   8   9   10   11   12   13   >