<p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/4158490/259606525-89bb7604-cb3b-4510-bc41-9dd7b93906c7.png"><img src="https://user-images.githubusercontent.com/4158490/259606525-89bb7604-cb3b-4510-bc41-9dd7b93906c7.png" alt="home" style="max-width: 100%;"></a></p>
<ul dir="auto">
<li>also undo delete button</li>
<li>also show button to center map on currently entered coordinates</li>
<li>also <code class="notranslate">has_home?</code> method in user models instead of doing home_lat && home_lon</li>
</ul>
<p dir="auto"><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #3725.">Fixes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1389505313" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/3725" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/3725/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/3725">#3725</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/4149'>https://github.com/openstreetmap/openstreetmap-website/pull/4149</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4149/commits/9ea2ba5ee5df514542a2ca50258c396f4c070969" class="commit-link">9ea2ba5</a> Add home location condition to user model</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4149/commits/ca6f461a1763adf8c51fef48f0aeed5546c96e56" class="commit-link">ca6f461</a> Add user home location change listeners and buttons</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4149/commits/3fd75bbaf1fa112f5c3b8d673ea739df97c865fa" class="commit-link">3fd75bb</a> Add show home location button listener</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4149/commits/baaf42969b6f41ad291ec784e0c0f87541c025c5" class="commit-link">baaf429</a> Add delete home location button listener</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4149/commits/bc9c6fab18a0bdd73a1fb3d356858c69015937c9" class="commit-link">bc9c6fa</a> Add undelete home location button listener</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4149/commits/2f78b10fb026cedd909a7cf35c0ba4a75dcd46ec" class="commit-link">2f78b10</a> Set default home location zoom when centering the map</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4149/commits/3e3dc96914cc4bf33452855dbfd6b7bcfc6c43d7" class="commit-link">3e3dc96</a> Disable show home location button if close enough to map center</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4149/commits/55eb2ad09d6d9afe6aff1da1167d52c245ba9798" class="commit-link">55eb2ad</a> Disable home marker tab focus and cursor change</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4149/commits/20f6fb48a26588633055d1b80838bd1a536f7d68" class="commit-link">20f6fb4</a> Exchange focus between home location delete/undelete buttons</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4149/commits/e062a3e8bc4dbeb35a3f4a13ee7aad84acae8031" class="commit-link">e062a3e</a> Don't construct invalid LatLng objects in home location</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4149/commits/71d5ad31c09e39581668e0a37d82713af4381182" class="commit-link">71d5ad3</a> Highlight non-numeric home location coordinates</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4149/files">11 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4149/files#diff-6bf5e2b503c6238cb80234a21524267bec1b1a820855412a5795c6296f11cb89">app/assets/javascripts/user.js</a>
(115)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4149/files#diff-4b73866ef57c70fca07c0f330d7a57aae939b11e4aae0514f303df3aa3762f89">app/controllers/diary_entries_controller.rb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4149/files#diff-5f3fc5e3977d242572aa1d08551f5eb557de0ccaff30370838ee9df5386ea0da">app/helpers/application_helper.rb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4149/files#diff-9802ca3c9c4cf89904fd44bc114e35ebdf2c5dd3d5b645491e2b253e1afef29b">app/models/user.rb</a>
(8)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4149/files#diff-07e9f7ef663c6658db15fb1fde5202424107351588d49ec20b374081fd078846">app/views/api/users/_user.json.jbuilder</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4149/files#diff-1fb81a6b5c364ca75b88b74fb22cd6d57eabd121dc5040f5f544a531686e4d4b">app/views/api/users/_user.xml.builder</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4149/files#diff-a893bdff25132b2a60513f4fb74deb7507b568af429e60d05a48c63b7dd95230">app/views/dashboards/_contact.html.erb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4149/files#diff-e390cd3017ea55a29b03a500b95a0203d99769e74ccc353cd2bd8c2bf058ec63">app/views/dashboards/show.html.erb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4149/files#diff-eaeaf6b733bc454c8c41be224e85cdca90bc6e0e5bc1f02f9f86315cfc6fafab">app/views/layouts/map.html.erb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4149/files#diff-6091542e4570d68ca546a4a893b0d0202a75b9aa6fabf4e8aa0b4122ae6a3544">app/views/profiles/edit.html.erb</a>
(9)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4149/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
(3)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4149.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4149.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4149.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4149.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/4149">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPU73FB35ODOTYA2DDXURES7ANCNFSM6AAAAAA3K2Z2DQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLP43IONJ2P3TKTFOTLXURES7A5CNFSM6AAAAAA3K2Z2DSWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHG33RO4I.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/4149</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/4149",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4149",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>