the Home section, built against the site's own admin API
Hero, intro and an ordered gallery — the shape the old htmx admin had, as a panel here. Every write returns the WHOLE payload and this never patches its own state from what it sent. That matters more than it looks: the server clears the hero crop when the hero changes, because a rectangle describing a region of a different picture would crop the new one somewhere arbitrary. A client keeping its own copy would go on showing a framing the server had already discarded. Ordering sends every id rather than one item's position, which is what makes it impossible to end up with two things claiming the same place. Thumbnails load through this plugin's proxy rather than straight from the dev server, so they arrive with the session instead of requiring the browser to reach a port on the host. It edits DEVELOPMENT, because production is a directory of static files with no API to write to. An edit lands on dev immediately and becomes public when somebody presses Build. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -79,7 +79,7 @@ export const SECTIONS: Section[] = [
|
||||
icon: Home,
|
||||
hint: 'The hero, the intro, and the gallery',
|
||||
path: '/fofos-admin/home',
|
||||
built: false,
|
||||
built: true,
|
||||
requires: 'connection',
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user