cesium / atomic

⚛️ De-engineered bifurcarted intranet
MIT License
39 stars 8 forks source link

feat: add timer to notifications #415

Closed joaodiaslobo closed 11 months ago

joaodiaslobo commented 12 months ago

Fixes #404

notification

reviewpad[bot] commented 12 months ago

AI-Generated Summary: This pull request introduces a timer for flash notifications in the AtomicWeb application. It includes a new component, AtomicWeb.Components.Notification, dedicated to handling notifications which are automatically dismissed after 5 seconds. Modifications are made to the Tailwind CSS configuration to include animation for this new progress bar ('progress' animation). The layout files app.html.heex and live.html.heex are updated to use this new component, with previous inline logic moved into the notification component. Key improvements include a progress bar shown during the duration of the flash message and a significant code cleanup for flash message display logic.