Skip to content

Commit

Permalink
add notification about suggest button working again
Browse files Browse the repository at this point in the history
  • Loading branch information
marcdel committed Jun 13, 2024
1 parent 7bb3e39 commit 9c4362a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/pears_web/components/notification.ex
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ defmodule PearsWeb.Notification do
<div class="p-4">
<div class="flex items-start">
<div class="flex-shrink-0">
🐞
🎉
</div>
<div class="ml-3 w-0 flex-1 pt-0.5">
<p class="text-sm font-medium text-gray-900">Bug Alert</p>
<p class="text-sm font-medium text-gray-900">Smash that Suggest button</p>
<p class="mt-1 text-sm text-gray-500">
Hitting enter in the Add Pear and Add Track modals is broken. For now you'll have to click the button like an animal.
That thing is actually useful now! It's been broken for a minute but is working again. Click
<a class="text-blue-500" href="https://streamable.com/ia9bat">here</a>
to see it in action.
</p>
</div>
<div class="ml-4 flex flex-shrink-0">
Expand Down
5 changes: 5 additions & 0 deletions lib/pears_web/live/pairing_board_live.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,10 @@
</g>
</svg>
</div>
<.live_component
:if={FeatureFlags.enabled?(:show_notification)}
id="notification"
module={PearsWeb.Notification}
/>
</div>
</div>

0 comments on commit 9c4362a

Please sign in to comment.