PR adds location name info on the user profile page. Location name can be 
changed from "Edit Profile" page either by manual typing or 
auto-filling according to the home location.

One column was added to the user table to save user's location.
JS logics are responsible for handling:
1) Delete-Undelete buttons interactions
2) Nominatim calls to locate home locations country name
3) Warning logic of the location name

![image](https://github.com/user-attachments/assets/85450fbb-6072-4515-b37f-8d58380c61e9)
![image](https://github.com/user-attachments/assets/807a597e-613e-4ef3-b6c7-b0c65def1497)
![image](https://github.com/user-attachments/assets/f01f4c87-6680-4b1b-96c4-cbef4d2262c0)
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5302

-- Commit Summary --

  * Add profile location

-- File Changes --

    M app/assets/javascripts/user.js (96)
    M app/controllers/profiles_controller.rb (1)
    M app/models/user.rb (1)
    M app/views/profiles/edit.html.erb (7)
    M app/views/users/show.html.erb (8)
    M config/locales/en.yml (1)
    A db/migrate/20241030090336_add_user_location_name.rb (5)
    M db/structure.sql (4)
    A test/system/user_location_change_test.rb (22)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5302.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5302.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5302
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to