<p dir="auto">Currently note markers in note layers don't necessarily display note descriptions. There's no check if the first "comment" returned by the api is a description or is it a regular comment because the description is hidden:</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/50af9642-0067-4b9a-941e-64826c0271d0">https://github.com/user-attachments/assets/50af9642-0067-4b9a-941e-64826c0271d0</a></p>
<p dir="auto">I wrote this comment <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2795333096" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5511" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5511/hovercard?comment_id=1931817739&comment_type=review_comment" href="https://github.com/openstreetmap/openstreetmap-website/pull/5511#discussion_r1931817739">#5511 (comment)</a> where I say that it can be fixed by adding attributes to comments that indicate whether they are descriptions or actually comments. But that is not necessary because there's a status attribute, and if its value is <code class="notranslate">opened</code>, the "comment" is a description. This PR adds this check to note layer.</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/5576'>https://github.com/openstreetmap/openstreetmap-website/pull/5576</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5576/commits/7a8e32851750b512b74ff17684b93d0dd0f3f09d" class="commit-link">7a8e328</a>  Show only description as a marker tooltip in note layer</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5576/files">3 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5576/files#diff-8058f2f9c608b200098c52a855b78588f6b3aedce1b96c0fa57b706fa2d9e81c">app/assets/javascripts/index/layers/notes.js</a>
    (9)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5576/files#diff-58be79ee432aa1a1e12529b3141879d9c9503ac6e071c47e2d53462d339362b7">test/application_system_test_case.rb</a>
    (3)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5576/files#diff-ae7557bec96421caa001f6f6ba95f142100a052294526cab9bf495ab81d99885">test/system/note_layer_test.rb</a>
    (40)
  </li>
</ul>

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