<p dir="auto">This PR addresses "Company Name on Profile Page" issue mentioned in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3041839005" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5986" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/5986/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/5986">#5986</a></p>
<p dir="auto">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 <code class="notranslate">Edit Profile</code>. <code class="notranslate">company</code> field can be empty, in which case, company information will be hidden on the profile page.<br>
Ruby - <code class="notranslate">ProfilesController</code> has one more field to save<br>
DB - nullable <code class="notranslate">company</code> column added to the user table<br>
JS - no change</p>
<p dir="auto">Tested: manually, controller tests (checking controller saving functionality), system tests (checking translations and flow)</p>
<p dir="auto"><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #5986.">Fixes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3041839005" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5986" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/5986/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/5986">#5986</a></p>
<p dir="auto">Screenshots:<br>
<a href="https://github.com/user-attachments/assets/1ae32cc1-7674-4023-9cb6-8d1863a5dc54">image.png (view on web)</a><br>
<a href="https://github.com/user-attachments/assets/a6b07041-cd85-44c3-8434-108e0a7d57a2">image.png (view on web)</a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5987'>https://github.com/openstreetmap/openstreetmap-website/pull/5987</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5987/commits/be64551ad822cb20d7e29022e4f57fb40a76f8a2" class="commit-link">be64551</a>  Company Name on Profile Page</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5987/files">9 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5987/files#diff-7a47d335107fc35c2e79cc9c2b0a195c863594dd2343bcd48a4c770ac4af673c">app/controllers/profiles_controller.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5987/files#diff-9802ca3c9c4cf89904fd44bc114e35ebdf2c5dd3d5b645491e2b253e1afef29b">app/models/user.rb</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5987/files#diff-6091542e4570d68ca546a4a893b0d0202a75b9aa6fabf4e8aa0b4122ae6a3544">app/views/profiles/edit.html.erb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5987/files#diff-78ff736409d758722403cce31873ba803b3fb526d37398ca21caa557b54dfd95">app/views/users/show.html.erb</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5987/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
    (2)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5987/files#diff-d36429b152d7abfc8daa99e09d3b0c8dfa70869712d4051daffef4a8ef1e3144">db/migrate/20250506052030_add_company_to_users.rb</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5987/files#diff-1dd5a8f580b9615769ddc19a64a98f455d9d20eb149c443f41d9d3c797d39b12">db/structure.sql</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5987/files#diff-6ad6fcf04b256a25747cfe704f2e34405ccb340f00b049eb348ee02410d747c5">test/controllers/profiles_controller_test.rb</a>
    (9)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5987/files#diff-1e3a233895a381dce3aadf5cd4e730e098e8fa446fd14b278a04dfc7c5d385b6">test/system/user_company_test.rb</a>
    (27)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5987.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5987.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5987.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5987.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5987">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLI5KA3RDLXHV5WJW7325B3DXAVCNFSM6AAAAAB4QTM2HCVHI2DSMVQWIX3LMV43ASLTON2WKOZTGA2DEMBXGE3DONA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLNDIUVQKL7UNPM6OKL25B3DXA5CNFSM6AAAAAB4QTM2HCWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHLKUSUPI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5987</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5987",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5987",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>