From 9c4362afa3ef0f8d5827928fae60adc360d5e91f Mon Sep 17 00:00:00 2001 From: Marc Delagrammatikas Date: Wed, 12 Jun 2024 22:19:18 -0700 Subject: [PATCH] add notification about suggest button working again --- lib/pears_web/components/notification.ex | 8 +++++--- lib/pears_web/live/pairing_board_live.html.heex | 5 +++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/pears_web/components/notification.ex b/lib/pears_web/components/notification.ex index 522abfcd..22c30556 100644 --- a/lib/pears_web/components/notification.ex +++ b/lib/pears_web/components/notification.ex @@ -29,12 +29,14 @@ defmodule PearsWeb.Notification do
- 🐞 + 🎉
-

Bug Alert

+

Smash that Suggest button

- 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 + here + to see it in action.

diff --git a/lib/pears_web/live/pairing_board_live.html.heex b/lib/pears_web/live/pairing_board_live.html.heex index d42a51e9..baca707f 100644 --- a/lib/pears_web/live/pairing_board_live.html.heex +++ b/lib/pears_web/live/pairing_board_live.html.heex @@ -132,5 +132,10 @@
+ <.live_component + :if={FeatureFlags.enabled?(:show_notification)} + id="notification" + module={PearsWeb.Notification} + />