<h3 dir="auto">Description</h3>
<p dir="auto">This PR partly addresses <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="48080268" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/832" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/832/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/832">#832</a> and serves as a smaller alternative to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2576573582" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5255" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5255/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5255">#5255</a> as suggested in comments. It aims to enhance user experience on user note pages by providing filtering functionality for notes by status. The <code class="notranslate">with_status</code> scope is added to the <code class="notranslate">Note</code> model, and the <code class="notranslate">NotesController</code> is updated accordingly. Default behavior remains unchanged since the status preselected value is set to <code class="notranslate">All</code> by default.</p>
<h3 dir="auto">How has this been tested?</h3>
<p dir="auto">Test for the new scope is added to note model test to ensure functionality is working as expected.</p>
<h3 dir="auto">Screenshots</h3>
<a href="https://github.com/user-attachments/assets/cf15a288-91c3-40fe-b2f1-690fab42b248">Screenshot.2024-10-30.at.22.07.56.png (view on web)</a>
<a href="https://github.com/user-attachments/assets/8145173f-8c3d-417d-a708-94d25f952e6a">Screenshot.2024-10-30.at.22.07.46.png (view on web)</a>
<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/5297'>https://github.com/openstreetmap/openstreetmap-website/pull/5297</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5297/commits/0b7d8b8711567f8a952e8c7c805faf911aa981f6" class="commit-link">0b7d8b8</a> Add status filter to user's note 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/5297/files">5 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5297/files#diff-c254740097a8c0601832077488db77e572b2c2b926f77508fadc6081b0052804">app/controllers/notes_controller.rb</a>
(3)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5297/files#diff-08ddccf408b18937e98b422e555eaf851c2a02c3ba815c5aeb8bc00efe65ecab">app/models/note.rb</a>
(10)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5297/files#diff-4fe647349351c7492508c788230b91b7f4445d4b821f6781ac7fcfad5e879f21">app/views/notes/index.html.erb</a>
(14)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5297/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5297/files#diff-b93fe6b2fae5309f99ba81772f10cf26c2d05ce9eb923b430a03de6121951964">test/models/note_test.rb</a>
(21)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5297.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5297.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5297.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5297.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/5297">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLDAD47VSVOZKWMU3TZ6FDQHAVCNFSM6AAAAABQ5AHD4WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYZDKMZVGE4TQMI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJYOAL6CSW3G4ORO23Z6FDQHA5CNFSM6AAAAABQ5AHD4WWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJY65RFU.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/5297</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/5297",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5297",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>