Re: [openstreetmap/openstreetmap-website] "Load more" on user's changesets doesn't alter the url (ie doesn't keep state) (#933)

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

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

2025-03-23 Thread Anton Khorev via rails-dev
Not in use since https://github.com/openstreetmap/openstreetmap-website/commit/f70edc02f086d97727453e738e9f0083c68ec706. Whatever it did would only apply to Gravatar images and not to other king of images. You can view, comment on, or merge this pull request online at: https://github.com/open

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

2025-03-23 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5840) I thought the previous PR was handling all rich text... If it doesn't handle markdown then it's of limited use - any HTML content is limited to legacy material from many years ago so it's really only things that are limited to

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

2025-03-23 Thread Nitai Sasson via rails-dev
@NeatNit commented on this pull request. > @@ -1,5 +1,45 @@ # frozen_string_literal: true +module Kramdown https://kramdown.gettalong.org/rdoc/Kramdown/Parser/Base.html > Implementing a new parser is rather easy: just derive a new class from this > class and put it in the > [Kramdown::Par

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

2025-03-23 Thread Nitai Sasson via rails-dev
NeatNit left a comment (openstreetmap/openstreetmap-website#5840) > I thought the previous PR was handling all rich text... I'm sorry I didn't make that clear enough. Changeset comments and notes were the main (only?) thing affected by the previous PR. Legacy or not, they are extremely prominen

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

2025-03-23 Thread Nitai Sasson via rails-dev
@NeatNit pushed 1 commit. 8284a308c4bfa880720367e6665e4cb66e48cfba make markdown bidirectional with dir="auto" -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5840/files/3fd1fd04a82f9fb8b780b7b7f4f717f018da9023..8284a308c4bfa880720367e6665e4cb66e48cfba You are

Re: [openstreetmap/openstreetmap-website] pretty formatting of OSM URLS in notes, changeset comment, and comments (Issue #5780)

2025-03-23 Thread Marwin Hochfelsner via rails-dev
hlfan left a comment (openstreetmap/openstreetmap-website#5780) Pasting a full SHA for a commit makes it get formatted too, like `1370741ca929d87714934c9cc8c52780291fe0c3` to 1370741ca929d87714934c9cc8c52780291fe0c3, so requiring a few digits could be all that's necessary. I'd say at least five

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

2025-03-23 Thread Nitai Sasson via rails-dev
NeatNit left a comment (openstreetmap/openstreetmap-website#5835) Looks like I missed something important (main changeset comment). I'll lump that in with my next PR, which handles Markdown. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-web

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

2025-03-23 Thread Nitai Sasson via rails-dev
@NeatNit commented on this pull request. > @@ -96,7 +136,7 @@ def to_text class Markdown < Base def to_html - linkify(sanitize(document.to_html), :all) + linkify(sanitize(document.to_html_bidi), :all) Oops, wrong link. This is the one: https://kramdown.gettalong.org/rdoc/Kr

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

2025-03-23 Thread Tom Hughes via rails-dev
@tomhughes commented on this pull request. > @@ -1,5 +1,45 @@ # frozen_string_literal: true +module Kramdown Injecting code into the `Kramdown` namespace is not ideal as we don't own that. > @@ -96,7 +136,7 @@ def to_text class Markdown < Base def to_html - linkify(sanitize(d

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

2025-03-23 Thread Nitai Sasson via rails-dev
@NeatNit pushed 1 commit. 618df632c8509e5367ae990494c7418465dd2439 make markdown bidirectional with dir="auto" -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5840/files/d55aca5d61f7b90702ec161e3ce1860430e655f8..618df632c8509e5367ae990494c7418465dd2439 You are

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

2025-03-23 Thread Nitai Sasson via rails-dev
NeatNit left a comment (openstreetmap/openstreetmap-website#5840) > I wonder if this would this be better done with a sanitize transformer that > would work on the HTML regardless of how it was generated? I don't know. Is there anything wrong with this approach? It seems to be the cleanest way

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] 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] Adds version to notes table and creates note_versions table (PR #5815)

2025-03-23 Thread Anton Khorev via rails-dev
AntonKhorev left a comment (openstreetmap/openstreetmap-website#5815) Se also the last paragraph of https://github.com/openstreetmap/openstreetmap-website/issues/5294#issuecomment-2541604426, where I write about keeping `id` from api0.6-comments. Some of those api0.6-comments will become non-co

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] pretty formatting of OSM URLS in notes, changeset comment, and comments (Issue #5780)

2025-03-23 Thread Anton Khorev via rails-dev
AntonKhorev left a comment (openstreetmap/openstreetmap-website#5780) There is a difference with changing how things that are already detected as links look and the rest. You don't expect "I added a note 5 years ago" to link to note #5 but that's what you'll get with those formats. -- Reply to

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

2025-03-23 Thread github-actions[bot] via rails-dev
github-actions[bot] left a comment (openstreetmap/openstreetmap-website#5835) 1 Warning :warning: Merge commits are found in PR. Please rebase to get rid of the merge commits in this PR, see CONTRIBUTING.md. Genera

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

2025-03-23 Thread Nitai Sasson via rails-dev
@NeatNit pushed 1 commit. 50c79d89503194c34f9a325c0aa53140a6d0b65e undo common.scss changes -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5835/files/83575bd9baee1e49d3e3d822d8fd01a423cb1596..50c79d89503194c34f9a325c0aa53140a6d0b65e You are receiving this beca

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

2025-03-23 Thread Nitai Sasson via rails-dev
NeatNit 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. That's what I intend to do. Just need to rebase with the new master. Will get behind a compu

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

2025-03-23 Thread Nitai Sasson via rails-dev
NeatNit left a comment (openstreetmap/openstreetmap-website#5835) Awesome, I'll do that ASAP :) -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5835#issuecomment-2746262433 You are receiving this because you are subscribed to this

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] 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] pretty formatting of OSM URLS in notes, changeset comment, and comments (Issue #5780)

2025-03-23 Thread Minh Nguyễn via rails-dev
1ec5 left a comment (openstreetmap/openstreetmap-website#5780) GitHub gets around this problem by requiring a `#` in front of the number, or the full URL. Even just detecting and linkifying the URL would be a significant improvement. By the way, the URL format for elements used to be slightly d

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

2025-03-23 Thread Anton Khorev via rails-dev
AntonKhorev left a comment (openstreetmap/openstreetmap-website#5835) With #5837 merged it should be enough to just set `dir=auto` on paragraphs: ![image](https://github.com/user-attachments/assets/bcd1f776-8b2b-405a-91db-2229b5ff15f5) You can remove css changes and squash the commits. -- Repl

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] 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-

[openstreetmap/openstreetmap-website] Object highlight stuck when object detail pane closed while loading (Issue #5838)

2025-03-23 Thread danieldegroot2 via rails-dev
danieldegroot2 created an issue (openstreetmap/openstreetmap-website#5838) ### URL _No response_ ### How to reproduce the issue? Minor visual remark It is possible to get the object highlight stuck when the object detail pane is closed while it is still loading the relation highlight. (it is s

Re: [openstreetmap/openstreetmap-website] Show new/modified/deleted count in place of " 🖊" in changeset card (Issue #5758)

2025-03-23 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#5758) The most notable thing I find worth porting over from osmcha is the changeset visualization. Other projects need to jump through hoops to generate augmented diffs, and we have direct access to all relevant data and could probably