<p></p>
<p>These days it seems there are two conventional types of flashes: notices and alerts.  After switching one of my notices to an alert, I noticed it did not appear on the following page.</p>
<p>It looks like app/views/layouts/_flash.html.erb only handle :error, :warning, and :notice.</p>
<p>I actually like :error and :warning better than :alert.</p>
<p>Do you think we should add support for :alert in _flash.html.erb, or should I just use the types of flashes we have defined.  The only downside I see is code becomes a little more verbose.</p>
<div class="highlight highlight-source-ruby"><pre>      <span class="pl-en">redirect_to</span> <span class="pl-c1">@thing</span><span class="pl-kos">,</span> <span class="pl-pds">:flash</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span> <span class="pl-pds">:error</span> <span class="pl-c1">=></span> <span class="pl-s">"It failed."</span> <span class="pl-kos">}</span></pre></div>
<p>vs</p>
<div class="highlight highlight-source-ruby"><pre>      <span class="pl-en">redirect_to</span> <span class="pl-c1">@thing</span><span class="pl-kos">,</span> <span class="pl-pds">:alert</span> <span class="pl-c1">=></span> <span class="pl-s">"It failed."</span></pre></div>
<p>:alert and :notice become somewhat conventional in gems/actionpack-6.0.4.2/lib/action_controller/metal/flash.rb line 11, though other flashes are supports on line</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/2743">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMDK5LSBG6XBSVHD2DR6S4VXANCNFSM4PSGRMRA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLNQXJ7FGKBW7NJXF53R6S4VXA5CNFSM4PSGRMRKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4KAEG2FA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/2743",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2743",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>