This PR addresses "Company Name on Profile Page" issue mentioned in 
#5986

PR adds Company Name functionality on Profile page. If user modifies company 
field, value will be shown on the profile page. It can be changed from `Edit 
Profile`. `company` field can be empty, in which case, company information will 
be hidden on the profile page.
Ruby - `ProfilesController` has one more field to save
DB - nullable `company` column added to the user table
JS - no change

Tested: manually, controller tests (checking controller saving functionality), 
system tests (checking translations and flow)

Fixes #5986

Screenshots:
![image](https://github.com/user-attachments/assets/1ae32cc1-7674-4023-9cb6-8d1863a5dc54)
![image](https://github.com/user-attachments/assets/a6b07041-cd85-44c3-8434-108e0a7d57a2)
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Company Name on Profile Page

-- File Changes --

    M app/controllers/profiles_controller.rb (2)
    M app/models/user.rb (1)
    M app/views/profiles/edit.html.erb (4)
    M app/views/users/show.html.erb (8)
    M config/locales/en.yml (2)
    A db/migrate/20250506052030_add_company_to_users.rb (5)
    M db/structure.sql (4)
    M test/controllers/profiles_controller_test.rb (9)
    A test/system/user_company_test.rb (27)

-- Patch Links --

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

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5987
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