<p dir="auto">If you're reporting something and you managed to submit the form without filling out the required fields<sup><a href="#user-content-fn-1-475ec81597c5e4d4d2bb6421c676e305" id="user-content-fnref-1-475ec81597c5e4d4d2bb6421c676e305" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup>, there's a message "Please provide the required details". The problem is that it's styled as a <em>success</em> message, as if the report was created, while actually it wasn't.</p>
<p dir="auto">Before:<br>
<a href="https://github.com/user-attachments/assets/ef8b3a30-d223-455a-bc4d-305f8eff4d15">image.png (view on web)</a></p>
<p dir="auto">After:<br>
<a href="https://github.com/user-attachments/assets/5ae667af-8606-4a11-8e9c-944791d90f64">image.png (view on web)</a></p>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only" dir="auto">Footnotes</h2>
<ol dir="auto">
<li id="user-content-fn-1-475ec81597c5e4d4d2bb6421c676e305">
<p dir="auto">This shouldn't normally happen, you'll get a javascript error, as long as <code class="notranslate">required</code> html attributes are there. <a href="#user-content-fnref-1-475ec81597c5e4d4d2bb6421c676e305" data-footnote-backref="" aria-label="Back to reference 1" class="data-footnote-backref">↩</a></p>
</li>
</ol>
</section>
<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/6126'>https://github.com/openstreetmap/openstreetmap-website/pull/6126</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6126/commits/c979c5feb54d711936f0ae42c215a66befb72c1a" class="commit-link">c979c5f</a> Change incomplete report flash style from success to warning</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6126/files">2 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6126/files#diff-40c889bfec2f4677ca340d48772b56107986ba517a9cdf5b5852ee1c192f913d">app/controllers/reports_controller.rb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6126/files#diff-a88306a3d5206fba4e91b69de7a00d8983ac10c2d26d17ffcf5582dd2ce579a4">test/controllers/reports_controller_test.rb</a>
(2)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6126.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/6126.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6126.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/6126.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/6126">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKSPZP2SKH4OJYXRK33E76TRAVCNFSM6AAAAAB75NMJ4WVHI2DSMVQWIX3LMV43ASLTON2WKOZTGE3DQMRSGQZDIMY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJDXQU6ULJMP456RKD3E76TRA5CNFSM6AAAAAB75NMJ4WWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHLZV2D6M.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/6126</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/6126",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6126",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>