berrypod/lib/berrypod_web/components
jamey 04ce28ca29
All checks were successful
deploy / deploy (push) Successful in 1m16s
fix page settings section and blocks not showing in editor
Two bugs fixed:

1. Page Settings section wasn't appearing for system pages because
   Defaults.for_slug didn't return all required fields (type,
   meta_description, published, etc). Also changed page_renderer
   to use bracket notation for safer field access.

2. Blocks weren't loading when navigating directly to ?edit=page
   because the PageEditorHook's handle_params ran before Shop.Page
   assigned @page. Added pending page mode mechanism: hook sets a
   flag when edit mode is requested but @page is nil, then Shop.Page
   calls maybe_enter_pending_page_mode after @page is assigned.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-29 20:30:36 +01:00
..
layouts add nav editors to Site tab with live preview 2026-03-28 22:19:48 +00:00
shop_components fix page settings section and blocks not showing in editor 2026-03-29 20:30:36 +01:00
block_editor_components.ex replace orphaned tailwind classes with project CSS 2026-03-04 17:12:21 +00:00
block_thumbnails.ex add block previews, picker thumbnails and newsletter settings 2026-02-28 20:34:52 +00:00
core_components.ex scroll flash messages into view on mount 2026-03-13 13:34:32 +00:00
layouts.ex replace admin rail with unified bottom sheet editor 2026-03-07 09:30:07 +00:00
page_templates.ex wire order pages and theme preview to page renderer, remove old templates 2026-02-26 19:32:50 +00:00
shop_components.ex merge page settings into Page tab and remove Settings tab 2026-03-28 23:54:04 +00:00