<p dir="auto">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.</p>
<p dir="auto">One column was added to the user table to save user's location.<br>
JS logics are responsible for handling:</p>
<ol dir="auto">
<li>Delete-Undelete buttons interactions</li>
<li>Nominatim calls to locate home locations country name</li>
<li>Warning logic of the location name</li>
</ol>
<p dir="auto"><a href="https://github.com/user-attachments/assets/85450fbb-6072-4515-b37f-8d58380c61e9">image.png (view on web)</a><br>
<a href="https://github.com/user-attachments/assets/807a597e-613e-4ef3-b6c7-b0c65def1497">image.png (view on web)</a><br>
<a href="https://github.com/user-attachments/assets/f01f4c87-6680-4b1b-96c4-cbef4d2262c0">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/5302'>https://github.com/openstreetmap/openstreetmap-website/pull/5302</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5302/commits/d20e90d5a8e55b94805cbe21c3c0633ddea36cc6" class="commit-link">d20e90d</a>  Add profile location</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5302/files">9 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5302/files#diff-6bf5e2b503c6238cb80234a21524267bec1b1a820855412a5795c6296f11cb89">app/assets/javascripts/user.js</a>
    (96)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5302/files#diff-7a47d335107fc35c2e79cc9c2b0a195c863594dd2343bcd48a4c770ac4af673c">app/controllers/profiles_controller.rb</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5302/files#diff-9802ca3c9c4cf89904fd44bc114e35ebdf2c5dd3d5b645491e2b253e1afef29b">app/models/user.rb</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5302/files#diff-6091542e4570d68ca546a4a893b0d0202a75b9aa6fabf4e8aa0b4122ae6a3544">app/views/profiles/edit.html.erb</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5302/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/5302/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
    (1)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5302/files#diff-b156767780467e0202f7351d4cae82d7881946be9d2eb60a8763e3f4a54bcf10">db/migrate/20241030090336_add_user_location_name.rb</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5302/files#diff-1dd5a8f580b9615769ddc19a64a98f455d9d20eb149c443f41d9d3c797d39b12">db/structure.sql</a>
    (4)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5302/files#diff-d8089f49c0e3ef52b3daa8f5053f5807e1655ca1f231d422e66359fdf01b8b0f">test/system/user_location_change_test.rb</a>
    (22)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5302.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5302.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5302.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5302.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/5302">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOZBHX2ZJBMPV5NUFDZ7CAAZAVCNFSM6AAAAABRF74QGWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYZTINZZGU3DENY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLLK5Q7I4N76VZTMRWDZ7CAAZA5CNFSM6AAAAABRF74QGWWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJ2C6KNM.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/5302</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/5302",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5302",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>