Re: [openstreetmap/openstreetmap-website] Label administrative boundaries by real-world designation (PR #5493)

2025-01-12 Thread Minh Nguyễn via rails-dev
@1ec5 commented on this pull request. > +level3: "Administrative Boundary (Level 3)" +level4: "Administrative Boundary (Level 4)" +level5: "Administrative Boundary (Level 5)" +level6: "Administrative Boundary (Level 6)" +level7: "Administrative Boundary (L

Re: [openstreetmap/openstreetmap-website] display an encouragement to contribute after many anonymous notes (PR #5468)

2025-01-12 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > @@ -30,6 +30,7 @@ def confirm user.email_valid = true flash[:notice] = gravatar_status_message(user) if gravatar_enable(user) user.save! +cookies.delete :_osm_anonymous_notes_count If you run osm-website in a term

Re: [openstreetmap/openstreetmap-website] Label administrative boundaries by real-world designation (PR #5493)

2025-01-12 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > +level3: "Administrative Boundary (Level 3)" +level4: "Administrative Boundary (Level 4)" +level5: "Administrative Boundary (Level 5)" +level6: "Administrative Boundary (Level 6)" +level7: "Administrative Boun

Re: [openstreetmap/openstreetmap-website] Label administrative boundaries by real-world designation (PR #5493)

2025-01-12 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > +level3: "Administrative Boundary (Level 3)" +level4: "Administrative Boundary (Level 4)" +level5: "Administrative Boundary (Level 5)" +level6: "Administrative Boundary (Level 6)" +level7: "Administrative Boun

Re: [openstreetmap/openstreetmap-website] Label administrative boundaries by real-world designation (PR #5493)

2025-01-12 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > + border_type = t > "geocoder.search_osm_nominatim.border_types.#{extratag.attributes['value']}", > :default => prefix_name if extratag.attributes["key"] == "border_type" + place_type = t "geocoder.search_osm_nominatim.prefix.pl

Re: [openstreetmap/openstreetmap-website] Label administrative boundaries by real-world designation (PR #5493)

2025-01-12 Thread Minh Nguyễn via rails-dev
@1ec5 commented on this pull request. > + border_type = t > "geocoder.search_osm_nominatim.border_types.#{extratag.attributes['value']}", > :default => prefix_name if extratag.attributes["key"] == "border_type" + place_type = t "geocoder.search_osm_nominatim.prefix.place.#{e

Re: [openstreetmap/openstreetmap-website] Label administrative boundaries by real-world designation (PR #5493)

2025-01-12 Thread Minh Nguyễn via rails-dev
@1ec5 commented on this pull request. > +level3: "Administrative Boundary (Level 3)" +level4: "Administrative Boundary (Level 4)" +level5: "Administrative Boundary (Level 5)" +level6: "Administrative Boundary (Level 6)" +level7: "Administrative Boundary (L

Re: [openstreetmap/openstreetmap-website] Label administrative boundaries by real-world designation (PR #5493)

2025-01-12 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > +level3: "Administrative Boundary (Level 3)" +level4: "Administrative Boundary (Level 4)" +level5: "Administrative Boundary (Level 5)" +level6: "Administrative Boundary (Level 6)" +level7: "Administrative Boun

Re: [openstreetmap/openstreetmap-website] display an encouragement to contribute after many anonymous notes (PR #5468)

2025-01-12 Thread etiennejourdier via rails-dev
@etiennejourdier commented on this pull request. > @@ -30,6 +30,7 @@ def confirm user.email_valid = true flash[:notice] = gravatar_status_message(user) if gravatar_enable(user) user.save! +cookies.delete :_osm_anonymous_notes_count I thought it would be more l

Re: [openstreetmap/openstreetmap-website] display an encouragement to contribute after many anonymous notes (PR #5468)

2025-01-12 Thread etiennejourdier via rails-dev
@etiennejourdier commented on this pull request. > @@ -5,9 +5,17 @@ <%= t(".intro") %> <% if !current_user %> -<%= t ".anonymous_warning_html", - :log_in => link_to(t(".anonymous_warning_log_in"), login_path(:referer => new_note_path)), -

Re: [openstreetmap/openstreetmap-website] display an encouragement to contribute after many anonymous notes (PR #5468)

2025-01-12 Thread etiennejourdier via rails-dev
@etiennejourdier pushed 1 commit. b49cdc187e50fcbb5fda72719847e9215c5b81f4 display an encouragement to contribute after many anonymous notes -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5468/files/13d1113e2f94e1a40268a8677bb443d2728b3307..b49cdc187e50fcbb5f

Re: [openstreetmap/openstreetmap-website] blocks with needs_view flag not shown when user does oauth authorisation (for example login into an OSM editor) (Issue #5490)

2025-01-12 Thread Matija Nalis via rails-dev
> If there's an api to check whether the user is blocked, you need a valid > token to access that api. If blocking invalidates the token, you're not > going to have a valid token to access that api. Makes sense. That is why my suggestion implied that such a new API call is maybe not needed at

Re: [openstreetmap/openstreetmap-website] blocks with needs_view flag not shown when user does oauth authorisation (for example login into an OSM editor) (Issue #5490)

2025-01-12 Thread Mateusz Konieczny via rails-dev
> There are ways to detect blocks I know, that is why I specifically put "reasonable" filter word. I know about workarounds like showing 403 response message and about https://github.com/streetcomplete/StreetComplete/issues/6062#issuecomment-2565450817 -- Reply to this email directly or view i

Re: [openstreetmap/openstreetmap-website] Label administrative boundaries by real-world designation (PR #5493)

2025-01-12 Thread Tom Hughes via rails-dev
@tomhughes commented on this pull request. I'm not totally convinced showing the numeric level is useful but generally this looks good apart from the specific point I've mentioned in a comment. > @@ -101,9 +101,13 @@ def search_osm_nominatim if klass == "boundary" && type == "administrati

Re: [openstreetmap/openstreetmap-website] blocks with needs_view flag not shown when user does oauth authorisation (for example login into an OSM editor) (Issue #5490)

2025-01-12 Thread Anton Khorev via rails-dev
And I haven't even suggested to display the block message in the app. That's because currently the blocks api returns it in some format it doesn't tell, but it's almost certainly markdown. Then you'll say that you don't want to parse markdown. One solution to that is to have it converted to html

Re: [openstreetmap/openstreetmap-website] Move number of points to file details in gpx emails (PR #5492)

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

Re: [openstreetmap/openstreetmap-website] Bump eslint from 9.17.0 to 9.18.0 (PR #5491)

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

Re: [openstreetmap/openstreetmap-website] Moves the note's description, author ID, and author IP from the first comment to the note itself (PR #5485)

2025-01-12 Thread Tom Hughes via rails-dev
@tomhughes requested changes on this pull request. This is going to need to be broken down in to multiple PRs as we can't take all three migrations in one go, and we can't take code changes that rely on new fields until after those fields have been created. The first two PRs should be one to cr

Re: [openstreetmap/openstreetmap-website] blocks with needs_view flag not shown when user does oauth authorisation (for example login into an OSM editor) (Issue #5490)

2025-01-12 Thread Anton Khorev via rails-dev
> If we stop that then it would not fix anything and would make things worse. > User will be never notified about block If you want to be lazy, just show the 403 response message. It tells about the block. That's what iD does. We can put an url there to to read the block directly. *User will be

Re: [openstreetmap/openstreetmap-website] Moves the note's description, author ID, and author IP from the first comment to the note itself (PR #5485)

2025-01-12 Thread Tom Hughes via rails-dev
I hadn't previously noticed that #5294 had proposed adding versioning - that's a whole other level of additional complication. I can understand why it might be needed for tags, and I guess it also allows for editing the initial description if we want once that it part of the note itself rather

Re: [openstreetmap/openstreetmap-website] Move number of points to file details in gpx emails (PR #5492)

2025-01-12 Thread Tom Hughes via rails-dev
Looks good to me, thanks. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5492#issuecomment-2585790739 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [openstreetmap/openstreetmap-website] blocks with needs_view flag not shown when user does oauth authorisation (for example login into an OSM editor) (Issue #5490)

2025-01-12 Thread Mateusz Konieczny via rails-dev
> This behavior of killing off tokens on 403 is the reason why this issue was > opened. If they stop doing that, they wouldn't need block messages appearing > on the authorization page. If we stop that then it would not fix anything and would make things worse. User will be never notified about

Re: [openstreetmap/openstreetmap-website] blocks with needs_view flag not shown when user does oauth authorisation (for example login into an OSM editor) (Issue #5490)

2025-01-12 Thread Anton Khorev via rails-dev
> invalidating tokens If there's an api to check whether the user is blocked, you need a valid token to access that api. If blocking invalidates the token, you're not going to have a valid token to access that api. It only makes sense to invalidate the token if you insist on making users to re

Re: [openstreetmap/openstreetmap-website] Move number of points to file details in gpx emails (PR #5492)

2025-01-12 Thread Nenad Vujicic via rails-dev
@nenad-vujicic approved this pull request. This looks and work great on my side. Thank you very much! -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5492#pullrequestreview-2545452683 You are receiving this because you are subsc

Re: [openstreetmap/openstreetmap-website] blocks with needs_view flag not shown when user does oauth authorisation (for example login into an OSM editor) (Issue #5490)

2025-01-12 Thread Matija Nalis via rails-dev
>Sending the user to reauthorize again and again when they've already seen a >block is not going to help with anything. Perhaps I'm misunderstanding, but why would that _"again and again"_ reauthorisation need to happen? My suggestion was _not_ about invalidating tokens every time a user logs i

Re: [openstreetmap/openstreetmap-website] blocks with needs_view flag not shown when user does oauth authorisation (for example login into an OSM editor) (Issue #5490)

2025-01-12 Thread Mateusz Konieczny via rails-dev
> authorisation is not blocked in > user doing oauth authorisation (for example login into an OSM editor) which > is blocked I meant that user is blocked. Is > blocked user doing oauth authorisation (for example login into an OSM editor) more clear? --- > Sending

Re: [openstreetmap/openstreetmap-website] blocks with needs_view flag not shown when user does oauth authorisation (for example login into an OSM editor) (Issue #5490)

2025-01-12 Thread Anton Khorev via rails-dev
> authorisation ... which is blocked authorisation is not blocked -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5490#issuecomment-2585711467 You are receiving this because you are subscribed to this thread. Message ID: _

Re: [openstreetmap/openstreetmap-website] blocks with needs_view flag not shown when user does oauth authorisation (for example login into an OSM editor) (Issue #5490)

2025-01-12 Thread Anton Khorev via rails-dev
> Wouldn't be possible that when a user is blocked, their tokens are > invalidated, so they are forced to re-login? No, this is going against any kind of api that would let the app to check if the user is blocked, in particular #5452. Even if StreetComplete devs will decide against checking act

Re: [openstreetmap/openstreetmap-website] Modify the way "Friends" are added (PR #5261)

2025-01-12 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > + follow: +heading: "Do you want to follow %{user}?" +button: "Follow User" + unfollow: +heading: "Do you want to unfollow %{user}?" +button: "Unfollow" Of course you wouldn't write "Unfriend as friend" (as

Re: [openstreetmap/openstreetmap-website] Edit with Remote Control blocked in Safari (#2445)

2025-01-12 Thread Máté Gyöngyösi via rails-dev
> Safari still has a bug, but it will be fixed soon hopefully: > > https://bugs.webkit.org/show_bug.cgi?id=171934 IIUC Apple [doesn't want to remove this block](https://bugs.webkit.org/show_bug.cgi?id=171934#c96) due to security reasons until the [Private Network Access specification](https://

Re: [openstreetmap/openstreetmap-website] Modify the way "Friends" are added (PR #5261)

2025-01-12 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > + has_many :follows, -> { joins(:following).where(:users => { :status => > %w[active confirmed] }) } + has_many :followings, :through => :follows, :source => :following OK, let's keep `followings`. -- Reply to this email directly or view it on

Re: [openstreetmap/openstreetmap-website] display an encouragement to contribute after many anonymous notes (PR #5468)

2025-01-12 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > @@ -5,9 +5,17 @@ <%= t(".intro") %> <% if !current_user %> -<%= t ".anonymous_warning_html", - :log_in => link_to(t(".anonymous_warning_log_in"), login_path(:referer => new_note_path)), -

Re: [openstreetmap/openstreetmap-website] display an encouragement to contribute after many anonymous notes (PR #5468)

2025-01-12 Thread Anton Khorev via rails-dev
> deletion of the cookie after successful login If you do this, you probably also want to delete the cookie on signup. I'm not sure if it's better to do before or after confirming the email. If before, you'd delete the cookie somewhere here: https://github.com/openstreetmap/openstreetmap-websit