[openstreetmap/openstreetmap-website] Don't update deactivates_at if block was already viewed (PR #5312)

2024-11-11 Thread Anton Khorev via rails-dev
When a blocked user visits their block page, its deactivation time is recorded. Problem is this only needs to happen if there's no deactivation time set. If it's already set, it should be kept at what it is. The possible bug is that if the user visits their block page after the block is lifted,

Re: [openstreetmap/openstreetmap-website] Show "reporting user" on "issues" screen (PR #4990)

2024-11-11 Thread Anton Khorev via rails-dev
I wouldn't try to do a comma-separated list > UserA, UserBB, UserC I'd write them each on a new line and add truncation > UserA > UserB... > UserC And if there's more than say 3, write something like > UserA > UserB... > UserC > and 2 more users -- Reply to t

Re: [openstreetmap/openstreetmap-website] Show "reporting user" on "issues" screen (PR #4990)

2024-11-11 Thread Anton Khorev via rails-dev
I don't think tooltips were a good idea. You can't interact with the usernames they show. And truncation works fine for individual names, but then you'd have to do it inside the tooltip too. Do you want to make html tooltips? And then there's Turbo cleanup. ![image](https://github.com/user-att

Re: [openstreetmap/openstreetmap-website] use highway=busway instead of emergency=yes when determining feature type in query results (Issue #5258)

2024-11-11 Thread Holger Jeromin via rails-dev
Not all projects work with assignments. Especially to new contributors. This can result in [cookie licking](https://www.redhat.com/en/blog/dont-lick-cookie). Go ahead, get familiar to the code base and work on this if you like. If you solve this. Hurray! -- Reply to this email directly or view

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

2024-11-11 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > @@ -178,6 +220,42 @@ $(document).ready(function () { } } + function updateHomeLocation() { +const lat = $("#home_lat").val().trim(); +const lon = $("#home_lon").val().trim(); +if (!lat || !lon) { + return; +} + +c

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

2024-11-11 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > + +<%= t ".location_name_warning" %> + + This looks like a sentence and it's not obvious that it ends with a button I'm supposed to click to update the value: ![image](https://github.com/user-attachments/assets/7b05903

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

2024-11-11 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > @@ -178,6 +220,42 @@ $(document).ready(function () { } } + function updateHomeLocation() { +const lat = $("#home_lat").val().trim(); +const lon = $("#home_lon").val().trim(); +if (!lat || !lon) { + return; +} + +c

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

2024-11-11 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > @@ -0,0 +1,22 @@ +require "application_system_test_case" + +class UserLocationChangeTest < ApplicationSystemTestCase + def setup +stub_request(:get, /.*gravatar.com.*d=404/).to_return(:status => 404) + end + + test "User can change their loca

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

2024-11-11 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > + def truncate_html(html, max_length, empty_tag_length = 500) +doc = Nokogiri::HTML::DocumentFragment.parse(html) +accumulated_length = 0 +truncated_node = nil + +doc.traverse do |node| + if accumulated_length >= max_length +

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

2024-11-11 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > @@ -2,7 +2,7 @@ <%= render :partial => "diary_entry_heading", :object => diary_entry, :as => "diary_entry" %> -<%= diary_entry.body.to_html %> +<%= truncated ? diary_entry.truncated_body(1000).to_html : diary_entry.body.to_html %>

Re: [openstreetmap/openstreetmap-website] Add "BBBike Extracts" to the list of export services in the left sidebar (#1383)

2024-11-11 Thread Wolfram Schneider via rails-dev
Closed #1383. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/1383#event-15248161987 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing

Re: [openstreetmap/openstreetmap-website] use highway=busway instead of emergency=yes when determining feature type in query results (Issue #5258)

2024-11-11 Thread sarathprasath via rails-dev
@tguen / @gravitystorm / @lonvia : I will work on this issue, please assign this to me -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5258#issuecomment-2467631435 You are receiving this because you are subscribed to this thre