Skip to content
This repository was archived by the owner on Jul 27, 2025. It is now read-only.

Conversation

jclusso
Copy link
Contributor

@jclusso jclusso commented Feb 13, 2024

Resolves #447
/claim #447

Some key things to note:

  • Adds notifications UI
  • This implementation supports both flash on redirects (ex: redirect_to(root_path, alert: "Something went wrong") as well as flash on turbo stream responses (ex: turbo_stream.flash(alert: "Something went wrong"))
  • Replaces flash helper in auth views
maybe_notification_ui-compressed.mov

Copy link

algora-pbc bot commented Feb 13, 2024

💵 To receive payouts, sign up on Algora, link your Github account and connect with Stripe/Alipay.

Resolves #447
/claim #447

Some key things to note:

- Adds notifications UI
- This implementation supports both flash on redirects (ex: `redirect_to(root_path, alert: "Something went wrong")` as well as flash on turbo stream responses (ex: `turbo_stream.flash(alert: "Something went wrong")`)
- Replaces flash helper in auth views
Comment on lines +207 to +211
keyframes: {
'stroke-fill': {
to: { 'stroke-dashoffset': 0 },
},
},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Credit to @JoshAntBrown since I stole this from #449. I'm not crazy about having to add something to the tailwind config, so if there is a better way to do this, let me know.

@mogery
Copy link

mogery commented Feb 13, 2024

Awesome, thorough code! 👏🏻

def flash_message(flash)
messages = flash.map do |type, message|
turbo_stream_action_tag(:flash_message, type: type, message: message)
end.join.html_safe

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Shpigford Shpigford closed this Feb 13, 2024
@jclusso jclusso deleted the notification_ui branch February 13, 2024 17:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build "notification" UI

4 participants