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    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