migrate admin forms to inline feedback
All checks were successful
deploy / deploy (push) Successful in 1m26s
All checks were successful
deploy / deploy (push) Successful in 1m26s
Replace put_flash calls with inline feedback for form saves: - Email settings: "Now send a test email" after saving - Settings: from address and signing secret saves - Page editor: save button shows "Saved" checkmark Inline feedback appears next to save buttons and auto-clears after 3 seconds. Banners (put_flash) remain for page-level outcomes like deletions, state changes, and async operations. Task 3 of notification overhaul. Theme editor skipped as it auto-saves. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -208,7 +208,7 @@ defmodule BerrypodWeb.Admin.PagesTest do
|
||||
|
||||
render_click(view, "save")
|
||||
|
||||
assert render(view) =~ "Page saved"
|
||||
assert has_element?(view, ".admin-inline-feedback-saved")
|
||||
|
||||
saved = Pages.get_page("home")
|
||||
assert length(saved.blocks) == 3
|
||||
|
||||
Reference in New Issue
Block a user