add admin UX polish: nav grouping, inline settings, real preview data
All checks were successful
deploy / deploy (push) Successful in 1m33s

- sidebar nav grouped under Shop/Content/Settings section headers with
  subtle uppercase labels (#105)
- custom page settings now show inline in a collapsible panel within the
  editor instead of navigating away to a separate page (#107)
- admin editor preview loads real products and categories from the DB,
  falling back to PreviewData only on fresh installs (#108)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jamey
2026-02-28 20:17:03 +00:00
parent 32cd642110
commit 0a7982dfe8
4 changed files with 271 additions and 106 deletions

View File

@@ -987,7 +987,7 @@ defmodule BerrypodWeb.Admin.PagesTest do
test "shows settings button for custom pages", %{conn: conn} do
{:ok, view, _html} = live(conn, ~p"/admin/pages/size-guide")
assert has_element?(view, "a[href='/admin/pages/size-guide/settings']", "Settings")
assert has_element?(view, "button", "Settings")
end
test "does not show reset to defaults for custom pages", %{conn: conn} do