Add Toast partial view and JS controller #448
Reference in New Issue
Block a user
Delete Branch "mog/toast"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #447
/claim #447
This PR adds a shared partial view
_toast.html.erb. This partial view can be used to render a notification, like described in #447. The toast's timer and disappearing logic is driven by thetoast_controller.jsStimulus controller.A notification can be triggered by rendering the toast view. Examples (from Figma):
Opinionated implementation choices:
#FDFDFDwhen hovered.Pull request closed