[openstreetmap/openstreetmap-website] Add profile location (PR #5302)
David Tsiklauri
notifications at github.com
Tue Nov 5 08:40:44 UTC 2024
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/5302 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20241105/02328506/attachment.htm>
More information about the rails-dev
mailing list