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-19 Thread Anton Khorev via rails-dev
> > * Sending the user to /login?referer=%2Fuser%2Fusername%2Fblocks is a > > workaround that somewhat works for non-needs_view blocks too and is not > > affected by GDPR. (*) > > > * Don't care about non-needs_view blocks and want a simpler workaround? > > Send users to /login. (**) > > Hmmm,

[openstreetmap/openstreetmap-website] Add a page to view active blocks (PR #5524)

2025-01-19 Thread Anton Khorev via rails-dev
This PR adds `/account/blocks` page that does the following: - if there are needs_view blocks, redirects to the earliest one of them - if there are any active blocks, redirects to the earliest one of them - if there are no active blocks, displays a message that there aren't any blocks, possibly wi

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

2025-01-19 Thread Fizzie41 via rails-dev
> All it really does is "bookmark" somebody so that they are included in a list > of people that you can narrow down the trace and changeset views to just > those people. Following up on this ... I am now a member of the DWG. During this last week, I got a message that has added me as a friend

Re: [openstreetmap/openstreetmap-website] Show notes more often (Issue #3971)

2025-01-19 Thread mmd via rails-dev
The issue here is in osm.js.erb: if mlon and mlat are set, we're not initializing "loc" from the _osm_location cookie. Later on we cannot set mapParams.layers, since "loc" should be nil at this time. This impacts both the notes layer, as well as the map layer. ```javascript } else if (param

[openstreetmap/openstreetmap-website] Add linting for .js.erb files (Issue #5523)

2025-01-19 Thread Marwin Hochfelsner via rails-dev
### Problem The JS with embedded Ruby isn't held to the same standards as all the other JS code. ### Description Please look into enabling linting files with embedded Ruby in ESLint. The [eslint-plugin-erb](//github.com/Splines/eslint-plugin-erb) could help here. ### Screenshots ![osm.js.erb]

[openstreetmap/openstreetmap-website] Use dark mode map tiles in embed (PR #5522)

2025-01-19 Thread Marwin Hochfelsner via rails-dev
Improved unlinted version of #5519 ![openstreetmap_embed](https://github.com/user-attachments/assets/0e868c5b-bdec-49ed-a668-93705c5ed8d3) You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5522 -- Commit Summary -- *

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

2025-01-19 Thread Dimitar via rails-dev
Since #5261 is merged, this issue should be marked as resolved. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/3310#issuecomment-2600962204 You are receiving this because you are subscribed to this thread. Message ID:

Re: [openstreetmap/openstreetmap-website] Use dark map tiles in embed (PR #5519)

2025-01-19 Thread Marwin Hochfelsner via rails-dev
So, when I tested the changes locally, I edited the evaluated JS to make iteration faster for me. Then the linter got mad. But eslint alone doesn't check files that have embedded ruby, which I'll criticise in an issue later on. As I don't like touching and "un-touching" code, I guess I'll keep ma

Re: [openstreetmap/openstreetmap-website] Use dark map tiles in embed (PR #5519)

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

Re: [openstreetmap/openstreetmap-website] Use turbo for the settings page to stop the URL changing (PR #5453)

2025-01-19 Thread Tom Hughes via rails-dev
@tomhughes pushed 3 commits. bf3983562b0c6ca265882005eb62492a0e62ae5a Use turbo for the settings page to stop the URL changing d223270779fc28a84d2227fbf63aab0f92d012c2 Replace count.zero? with empty? 368ea6589769e8eb9ccfb1a50f9fa611039c17fb Move errors from email to new_email properly -- Vi

Re: [openstreetmap/openstreetmap-website] Use dark map tiles in embed (PR #5519)

2025-01-19 Thread Tom Hughes via rails-dev
Firstly I didn't say it wasn't wanted, I said it is better to keep it in a separate commit to make reviewing easier. Secondly what "same linting as usual" is this? As far as I know it was already passing our eslint rules so is this some additional linting of your own? -- Reply to this email di

Re: [openstreetmap/openstreetmap-website] Adds optional use of notes records (PR #5511)

2025-01-19 Thread Tom Hughes via rails-dev
@tomhughes commented on this pull request. >def description -comments.first.body +if user_ip.nil? && user_id.nil? + comments.first.body +else + RichText.new("text", self[:description]) +end end I don't think I've said that as such. What I have said is that we n

Re: [openstreetmap/openstreetmap-website] Adds optional use of notes records (PR #5511)

2025-01-19 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", self[:description]) +end end Weren't you insisting on not showing the true description until LW

Re: [openstreetmap/openstreetmap-website] Use dark map tiles in embed (PR #5519)

2025-01-19 Thread Marwin Hochfelsner via rails-dev
Just doing the same linting as usual, why is this not wanted now @tomhughes? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5519#issuecomment-2600902355 You are receiving this because you are subscribed to this thread. Message I

Re: [openstreetmap/openstreetmap-website] Replace lookup_friend with lookup_user in FollowsController (PR #5515)

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

Re: [openstreetmap/openstreetmap-website] Use resourceful routes for api tracepoints (PR #5516)

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

Re: [openstreetmap/openstreetmap-website] Use resourceful routes for traces feeds (PR #5517)

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

Re: [openstreetmap/openstreetmap-website] Messages API `message_read` field is missing for messages you sent yourself (Issue #5489)

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

Re: [openstreetmap/openstreetmap-website] Include message_read attribute in api output of messages to self (PR #5520)

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

Re: [openstreetmap/openstreetmap-website] Use dark map tiles in embed (PR #5519)

2025-01-19 Thread Tom Hughes via rails-dev
@tomhughes commented on this pull request. Please try to avoid including stylistic changes like replacing single quotes with double quotes in the same commit as functional changes as it makes it very hard to tell what the actual functional changes are when reviewing... -- Reply to this email

Re: [openstreetmap/openstreetmap-website] Adds optional use of notes records (PR #5511)

2025-01-19 Thread Tom Hughes via rails-dev
@tomhughes commented on this pull request. >def description -comments.first.body +if user_ip.nil? && user_id.nil? + comments.first.body +else + RichText.new("text", self[:description]) +end end We could make it consistent by using `all_comments` instead but that

Re: [openstreetmap/openstreetmap-website] Include message_read attribute in api output of messages to self (PR #5520)

2025-01-19 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/5520#issuecomment-2600896747 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [openstreetmap/openstreetmap-website] Use resourceful routes for traces feeds (PR #5517)

2025-01-19 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/5517#issuecomment-2600896430 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [openstreetmap/openstreetmap-website] Use resourceful routes for api tracepoints (PR #5516)

2025-01-19 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/5516#issuecomment-2600895236 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [openstreetmap/openstreetmap-website] Replace lookup_friend with lookup_user in FollowsController (PR #5515)

2025-01-19 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/5515#issuecomment-2600894905 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [openstreetmap/openstreetmap-website] Adds optional use of notes records (PR #5511)

2025-01-19 Thread Nenad Vujicic via rails-dev
> Why does this need to use `[:user_id]` etc rather than the more typical > `.user_id` form? I replaced using `[:user_id]` with `user_id` (same with user_ip), but had to leave self[:description] because of possible recursion. I couldn't use self.{user_id, user_ip, description} because of Ruboco

Re: [openstreetmap/openstreetmap-website] Adds optional use of notes records (PR #5511)

2025-01-19 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. >def author_id -comments.first.author_id +if user_ip.nil? && user_id.nil? + comments.first.author_id +else + user_id +end end If user_id is a true id of the user who created the note, it won't necessarily match `auth

Re: [openstreetmap/openstreetmap-website] Adds optional use of notes records (PR #5511)

2025-01-19 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", self[:description]) +end end I assume that `self[:description]` is going to be the true note de

Re: [openstreetmap/openstreetmap-website] Adds optional use of notes records (PR #5511)

2025-01-19 Thread Nenad Vujicic via rails-dev
@nenad-vujicic pushed 2 commits. bb9d30fef5a295b42bffaf0cfe49329e9fb9989b Adds optional use of notes records 57b066df587a29ffe6f79db8da9061be839dc7f6 small fix -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5511/files/31dbd76c9cf4ec2e7d11673f0a272bab8d615807.

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

2025-01-19 Thread Roman Deev via rails-dev
I didn't take into account that sometimes centering is useful and necessary: https://github.com/user-attachments/assets/2c222546-6754-4605-9591-d42df41e9ffb -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5521#issuecomment-26008

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

2025-01-19 Thread Roman Deev via rails-dev
@deevroman pushed 1 commit. 6e64adb8c0d02008abcb8351169ed043464cc864 Fix left/right sidebar resizing on mobile devices -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5521/files/a0d853d418e424481a9b6120ad86b1f650ece769..6e64adb8c0d02008abcb8351169ed043464cc864

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

2025-01-19 Thread Roman Deev via rails-dev
@deevroman pushed 1 commit. 898ea3d1bc17468e3cfef0e36b6127e9208e70c0 Fix left/right sidebar resizing on mobile devices -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5521/files/6e64adb8c0d02008abcb8351169ed043464cc864..898ea3d1bc17468e3cfef0e36b6127e9208e70c0

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

2025-01-19 Thread Roman Deev via rails-dev
@deevroman pushed 1 commit. a0d853d418e424481a9b6120ad86b1f650ece769 Fix left/right sidebar resizing on mobile devices -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5521/files/e75db2ceae901b24385a676054b8510280200e2a..a0d853d418e424481a9b6120ad86b1f650ece769

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

2025-01-19 Thread Roman Deev via rails-dev
This PR fixes multiple issues about the map resetting its position when opening various menus on mobile devices. https://github.com/openstreetmap/openstreetmap-website/issues/4755 https://github.com/openstreetmap/openstreetmap-website/issues/991 ... 1. Get rid of the hardcoded left sidebar width