Skip to content

fix(cms): app editor — forms, arrays, site schema, and global sections - #4012

Merged
guitavano merged 8 commits into
mainfrom
fix/cms-app-editor
Jun 19, 2026
Merged

fix(cms): app editor — forms, arrays, site schema, and global sections#4012
guitavano merged 8 commits into
mainfrom
fix/cms-app-editor

Conversation

@guitavano

@guitavano guitavano commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Improves the CMS Content tab app editor and Site settings form:

  • App catalog: lists installed apps from store + manifest + decofile (including custom/local apps); aligns fallback icons with logo rows.
  • Array fields: drag-to-reorder, breadcrumb drill-down into items, NFC-safe label matching, and secret/password fields for app credentials.
  • Schema resolution: prefers config-array branches in anyOf (e.g. app flag lists), increases allOf traversal depth so Site app exposes Global Sections, Caching, etc., and resolves Tanstack app schemas from base64 keys.
  • Global Sections: "Add section" opens the same section gallery modal as the Sections tab; creates a saved block and appends it to the global array.

Test plan

  • bun test for app-catalog, resolve-schema, schema-form-breadcrumb, section-array-field
  • Content → Apps → app-tags: click flag array item → only item props visible; top-level fields hidden
  • Content → Site: Global Sections, Caching configuration, and other base fields visible
  • Content → Site → Global Sections → Add section: gallery opens (preview dev server required)
  • Content → Apps: custom app icons align with installed apps that have logos

guitavano and others added 6 commits June 18, 2026 18:21
Merge app catalog from store, manifest.blocks.apps, and decofile without
manifestHasApp gate; resolve app schemas with btoa-safe base64 lookup and
legacy resolveType aliases; fix Buffer crash in the browser.

Co-authored-by: Cursor <cursoragent@cursor.com>
Render website/loaders/secret blocks in app forms, enable drag-to-reorder
on schema array fields, and map {{{name}}} array item titles to titleBy.

Co-authored-by: Cursor <cursoragent@cursor.com>
Index-based sortable ids broke dnd-kit reordering in app forms (e.g. site
Routes Map). Match section-list stable entry ids + DragOverlay.

Co-authored-by: Cursor <cursoragent@cursor.com>
PointerSensor on a nested button prevented reorder in schema arrays.
Match SectionList: listeners on the row, stopPropagation on menu only.

Co-authored-by: Cursor <cursoragent@cursor.com>
Match section list: cursor-pointer on hover, grabbing only while dragging.

Co-authored-by: Cursor <cursoragent@cursor.com>
Enable breadcrumb navigation into array items, resolve flag-list anyOf
schemas as arrays, and traverse deeper allOf chains so the Site app
shows global/caching fields. Custom app icons align with logo rows, and
Global Sections uses the same Add section gallery as the Sections tab.

Co-authored-by: Cursor <cursoragent@cursor.com>
@guitavano guitavano changed the title fix(cms): app editor — secrets, array reorder, Tanstack app catalog fix(cms): app editor — forms, arrays, site schema, and global sections Jun 19, 2026
guitavano and others added 2 commits June 19, 2026 10:01
Correct breadcrumb navigation, avoid SchemaForm remounts on drill-down,
hoist the section picker modal, share section creation logic, and flush
site saves after adding global sections.

Co-authored-by: Cursor <cursoragent@cursor.com>
Replace invalid `{ anyOf: [] }` fixture with `{}` so LiveMeta satisfies
the manifest blocks type in decocms check.

Co-authored-by: Cursor <cursoragent@cursor.com>
@guitavano
guitavano merged commit 696222b into main Jun 19, 2026
14 checks passed
@guitavano
guitavano deleted the fix/cms-app-editor branch June 19, 2026 13:22
decocms Bot pushed a commit that referenced this pull request Jun 19, 2026
PR: #4012 fix(cms): app editor — forms, arrays, site schema, and global sections
Bump type: patch

- decocms (apps/mesh/package.json): 3.36.2 -> 3.36.3

Deploy-Scope: web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant