Re: [openstreetmap/openstreetmap-website] Refactor embed.js.erb with layers.yml (PR #5571)

2025-01-31 Thread Tom Hughes via rails-dev
You don't need to "change the source branch" because the source branch will still be master. What you need to do is to rebase, and then force push. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5571#issuecomment-2628831887 You

Re: [openstreetmap/openstreetmap-website] rails commands fail with LoadError due to gd2-ffij on MacOS (Issue #5583)

2025-01-31 Thread Tom Hughes via rails-dev
Duplicate of #5281. As far as I know there is nothing more known beyond the comments I already made there. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5583#issuecomment-2628831546 You are receiving this because you are subsc

Re: [openstreetmap/openstreetmap-website] rails commands fail with LoadError due to gd2-ffij on MacOS (Issue #5583)

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

Re: [openstreetmap/openstreetmap-website] Refactor embed.js.erb with layers.yml (PR #5571)

2025-01-31 Thread Marwin Hochfelsner via rails-dev
> The code changes here look great now but the commit history is rather messy - > can we get rid of the merges please and rebase it instead? and merge any > fixup commits into the thing they're fixing - having two `Refactor > embed.js.erb with layers.yml` commits in one PR can't be right. Well,

Re: [openstreetmap/openstreetmap-website] Refactor embed.js.erb with layers.yml (PR #5571)

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

[openstreetmap/openstreetmap-website] rails commands fail with LoadError due to gd2-ffij on MacOS (Issue #5583)

2025-01-31 Thread Eric Theise via rails-dev
### Problem I wanted to try running the app outside of the provided Docker setup. I've followed the instructions in `INSTALL.md` and `gd` (2.3.3_6) has definitely been installed via `brew`. Any `rails` or `rake` command results in a `Couldn't load the gd2 library. (LoadError)`, e.g. ``` /Users

Re: [openstreetmap/openstreetmap-website] Extend user block periods (PR #5582)

2025-01-31 Thread Kai Michael Poppe via rails-dev
Closed #5582. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5582#event-16146498206 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing

Re: [openstreetmap/openstreetmap-website] Extend user block periods (PR #5582)

2025-01-31 Thread Kai Michael Poppe via rails-dev
Should be discussed, agreed. Closing. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5582#issuecomment-2628509783 You are receiving this because you are subscribed to this thread. Message ID:

Re: [openstreetmap/openstreetmap-website] Extend user block periods (PR #5582)

2025-01-31 Thread Tom Hughes via rails-dev
If the DWG wants indefinite then we should just add indefinite rather than adding another five years every so often, especially since that won't actually change any existing blocks. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull

[openstreetmap/openstreetmap-website] Extend user block periods (PR #5582)

2025-01-31 Thread Kai Michael Poppe via rails-dev
Extend user block periods to include 15 and 20 years ### Description There are currently around 10 user blocks that were created with a duration of 9 years and will end on 2026-01-01. Earlier blocks from 2015 and before that were decided as "indefinite" have ended on 2025-01-01. To prevent 10 y

Re: [openstreetmap/openstreetmap-website] Add coordinate precision function (PR #5581)

2025-01-31 Thread Tom Hughes via rails-dev
@tomhughes requested changes on this pull request. This appears to introduce test failures that will need to be resolved. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5581#pullrequestreview-2587360907 You are receiving this b

Re: [openstreetmap/openstreetmap-website] Refactor embed.js.erb with layers.yml (PR #5571)

2025-01-31 Thread Tom Hughes via rails-dev
@tomhughes requested changes on this pull request. The code changes here look great now but the commit history is rather messy - can we get rid of the merges please and rebase it instead? and merge any fixup commits into the thing they're fixing - having two `Refactor embed.js.erb with layers.y

Re: [openstreetmap/openstreetmap-website] Adds optional use of note's author and description v2 (PR #5579)

2025-01-31 Thread Nenad Vujicic via rails-dev
@nenad-vujicic commented on this pull request. >def description -comments.first.body +if user_ip.nil? && user_id.nil? + comments.first.body +else + RichText.new("text", super) +end end > How is this PR going to go in a different direction? Well, honestly, I don

Re: [openstreetmap/openstreetmap-website] Add user profile heatmap visualization for contributions (PR #5402)

2025-01-31 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > + height: 100%; + z-index: 0; Do these two properties do anything? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5402#pullrequestreview-2586823620 You are receiving this becaus

Re: [openstreetmap/openstreetmap-website] Add user profile heatmap visualization for contributions (PR #5402)

2025-01-31 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > + top: 2px; + left: 17px; + padding-top: 21px; Why do you need both `top` and `padding-top`? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5402#pullrequestreview-2586818329 Yo

Re: [openstreetmap/openstreetmap-website] Add user profile heatmap visualization for contributions (PR #5402)

2025-01-31 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > +.heatmap-wrapper { + position: relative; + height: 130px; +} + +.heatmap-labels { +position: absolute; + top: 2px; + left: 17px; + padding-top: 21px; + z-index: 1; + overflow-y: hidden; +} + +.heatmap { + margin-left: 50px; + height: 100%;

Re: [openstreetmap/openstreetmap-website] Add user profile heatmap visualization for contributions (PR #5402)

2025-01-31 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > + const translations = I18n.translations[locale] || I18n.translations.en; + const date = translations && translations.date; + const abbrMonthNames = date && date.abbr_month_names; + + const months = abbrMonthNames || []; + return months[monthIn

Re: [openstreetmap/openstreetmap-website] Add user profile heatmap visualization for contributions (PR #5402)

2025-01-31 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > + data: { +source: heatmapData, +type: "json", +x: "date", +y: "total_changes" + }, + scale: { +color: { + type: "threshold", + range: currentTheme === "dark" ? rangeColors :

Re: [openstreetmap/openstreetmap-website] Add user profile heatmap visualization for contributions (PR #5402)

2025-01-31 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > + type: "threshold", + range: currentTheme === "dark" ? rangeColors : Array.from(rangeColors).reverse(), + domain: [10, 20, 30, 40] +} + } +}, [ + [Tooltip, { +text: (date, value) => getToolt

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

2025-01-31 Thread David Tsiklauri via rails-dev
@nertc commented on this pull request. > @@ -65,6 +65,32 @@ def description protected +def truncate_html(html_doc, max_length = nil, empty_tag_length = 1000) + return html_doc if max_length.nil? + + doc = Nokogiri::HTML::DocumentFragment.parse(html_doc) + accumulated_

Re: [openstreetmap/openstreetmap-website] Add user profile heatmap visualization for contributions (PR #5402)

2025-01-31 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > //= link_tree ../../../vendor/assets/iD/iD/img //= link_directory ../../../vendor/assets/iD/iD/data .json //= link_directory ../../../vendor/assets/iD/iD/locales .json //= link_directory ../../../vendor/assets/iD/iD/mapillary-js .css //= link_d

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

2025-01-31 Thread David Tsiklauri via rails-dev
@nertc commented on this pull request. > +def truncate_html(html_doc, max_length = nil, empty_tag_length = 1000) + return html_doc if max_length.nil? + + doc = Nokogiri::HTML::DocumentFragment.parse(html_doc) + accumulated_length = 0 + last_child = nil + + doc.traver

Re: [openstreetmap/openstreetmap-website] Map Data checkmark is unresponsive (#2800)

2025-01-31 Thread David Tsiklauri via rails-dev
Currently skipping is done using `isSkipped` object reference, but you are right, probably saving ids and then clearing them using `clearTimeout` will be a better way to approach a problem. I'll update a PR accordingly. -- Reply to this email directly or view it on GitHub: https://github.com/op

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

2025-01-31 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > +:substack => %r{substack\.com/@([a-zA-Z0-9_-]+)}, +:telegram => %r{t\.me/([a-zA-Z0-9_]+)}, +:threads => %r{threads\.net/@([a-zA-Z0-9_]+)}, +:tiktok => %r{tiktok\.com/@([a-zA-Z0-9_]+)}, +:twitch => %r{twitch\.tv/([a-zA-Z0-9_]+)},

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

2025-01-31 Thread Marwin Hochfelsner via rails-dev
@AntonKhorev I'd still say merge sooner rather than later just because all the arising issues can be autofixed. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5558#issuecomment-2627076620 You are receiving this because you are s

[openstreetmap/openstreetmap-website] Add coordinate precision function (PR #5581)

2025-01-31 Thread Marwin Hochfelsner via rails-dev
The amount of `latlng.lat/lng.toFixed(precision)` calls has been bugging me. I've put a function next to OSM.zoomPrecision that outputs a latlng array that can be destructured, spread and `join`ed. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/

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

2025-01-31 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > @@ -40,6 +40,21 @@ + +<%= t ".social_links.legend" %> + + <%= f.fields_for :social_links do |social_link_form| %> + + <%= social_link_form.text_field :url, :hide_label => true, :wrapper_class => "col-sm-8

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

2025-01-31 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > + +<%= image_tag "/assets/social_link_icons/#{social_link.parsed[:platform].nil? ? 'other' : social_link.parsed[:platform]}.svg", + :alt => social_link.parsed[:platform].nil? ? "other" : social_link.parsed[:platform], +

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

2025-01-31 Thread Anton Khorev via rails-dev
If this is merged, I'll have to rewrite #5064 again. That's a bugfix PR. People are still [complaining about bugs it fixes](https://community.openstreetmap.org/t/osm-website-routing-start-endpoints-jump-from-original-location/124529). -- Reply to this email directly or view it on GitHub: https:

Re: [openstreetmap/openstreetmap-website] Add coordinate precision function (PR #5581)

2025-01-31 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. > -if (!o || !d) return; +if (!points[0] || !points[1]) return; Which option would you prefer? ```js if (!points[0] || !points[1]) return; if (!(points[0] && points[1])) return; if (!points.every(p => p)) return; if (points.some(p => !p)) return;

Re: [openstreetmap/openstreetmap-website] Adds optional use of note's author and description v2 (PR #5579)

2025-01-31 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. >def description -comments.first.body +if user_ip.nil? && user_id.nil? + comments.first.body +else + RichText.new("text", super) +end end How is this PR going to go in a different direction? You're again first reveal

Re: [openstreetmap/openstreetmap-website] Map Data checkmark is unresponsive (#2800)

2025-01-31 Thread Anton Khorev via rails-dev
I still see no attempt to record timeout ids: https://github.com/openstreetmap/openstreetmap-website/pull/5009/files#diff-4fe14e869cf17b068e1bea009a55b094fed13f0cad85337cf4769f32b40a01b5R218 -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-webs

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

2025-01-31 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > @@ -40,6 +40,21 @@ + Why is the link editor placed between *avatar* and *home location*? If you don't change the order of other things on this page, this place makes the least sense to me. -- Reply to this email directly or view i

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

2025-01-31 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > +# created_at :datetime not null +# updated_at :datetime not null +# +# Indexes +# +# index_social_links_on_user_id (user_id) +# +# Foreign Keys +# +# fk_rails_... (user_id => users.id) +# + +class SocialLink < ApplicationRecor

Re: [openstreetmap/openstreetmap-website] Add coordinate precision function (PR #5581)

2025-01-31 Thread Marwin Hochfelsner via rails-dev
@hlfan pushed 1 commit. cb535c2e2582aadc20ad19037042859127704de9 Remove last o & d references in getRoute call -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5581/files/0155b99ebf1596264989376bb0c8d755f869d7a3..cb535c2e2582aadc20ad19037042859127704de9 You are

[openstreetmap/openstreetmap-website] Refactor embed.js.erb and inlcude layers from layers.yml (PR #5580)

2025-01-31 Thread Marwin Hochfelsner via rails-dev
Like #5571 but without fixup commits. Closes #5550 and closes #5571 You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5580 -- Commit Summary -- * Refactor embed.js.erb with layers.yml -- File Changes -- M app/ass

Re: [openstreetmap/openstreetmap-website] Add coordinate precision function (PR #5581)

2025-01-31 Thread Holger Jeromin via rails-dev
@HolgerJeromin commented on this pull request. > -if (!o || !d) return; +if (!points[0] || !points[1]) return; I find the current PR version the easiest to read. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5581#di

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

2025-01-31 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > +:mastodon => %r{mastodon\.social/@([a-zA-Z0-9_]+)}, +:medium => %r{medium\.com/@([a-zA-Z0-9_]+)}, +:quora => %r{quora\.com/profile/([a-zA-Z0-9_-]+)}, +:reddit => %r{reddit\.com/user/([a-zA-Z0-9_-]+)}, +:skype => %r{join\.skype\.

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

2025-01-31 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > @@ -231,10 +231,15 @@ <% end %> -<%= @user.description.to_html %> - -<% if current_user and @user.id == current_user.id %> - -<%= link_to t(".edit_profile"), edit_profile_path, :class => "btn btn-outline-primary" %> + + +<%= ren

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

2025-01-31 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > +:substack => %r{substack\.com/@([a-zA-Z0-9_-]+)}, +:telegram => %r{t\.me/([a-zA-Z0-9_]+)}, +:threads => %r{threads\.net/@([a-zA-Z0-9_]+)}, +:tiktok => %r{tiktok\.com/@([a-zA-Z0-9_]+)}, +:twitch => %r{twitch\.tv/([a-zA-Z0-9_]+)},