feat(ux/5a): Layout-Vorschau + Layout-Wahl bei Seitenanlage (Schema-Drift-Fix)#21
Merged
Merged
Conversation
Seiten-Layout jetzt mit visueller Vorschau waehlbar - im EditPageDialog und bereits im Neue-Seite-Dialog. Zentrale pageLayouts.ts als Single Source of Truth (unit-getestet) + SVG-LayoutPreview. Schema-Abgleich mit portal (d-fc-page-default.vue): nur null/Standard, 2_COL_RIGHT_WIDER und 2_COL_RIGHT_FILL werden gerendert. Die zuvor angebotenen 2_COL_LEFT_WIDER/1_COL waren Drift (portal -> unknown type) und sind entfernt. Abwesendes Layout = Standard; nicht unterstuetzte Alt-Werte bleiben als deaktivierter Hinweis sichtbar. pattern_type-Auswahl verworfen (portal verzweigt nicht ueber Page-pattern_type).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Seiten-Layouts werden jetzt mit visueller Vorschau ausgewählt — und der Editor bietet nur noch Layouts an, die portal tatsächlich rendert.
Kernlogik
pageLayouts.tsals Single Source of Truth für die unterstützten Layouts (unit-getestet) + schematische SVG-LayoutPreview.d-fc-page-default.vue): gerendert werden nurnull/Standard,2_COL_RIGHT_WIDER,2_COL_RIGHT_FILL. Der Editor bot zusätzlich2_COL_LEFT_WIDER/1_COLan — Schema-Drift (portal → „unknown type"), jetzt entfernt.EditPageDialogund schon im Neue-Seite-Dialog wählbar (vorher nur Titel, Layout hart verdrahtet).undefinedgemappt (kein erzwungenes2_COL_RIGHT_FILLmehr beim Öffnen alter Seiten).pattern_type-Auswahl bewusst verworfen: portal verzweigt nicht über den Page-pattern_type(alle Top-Level-Seiten laufen durchd-fc-page-default) → ein Selektor wäre wirkungslos und driftgefährdet.Hinweis zu Seiteneffekten
EditPageDialogdefaultet das Layout jetzt treu auf den gespeicherten Wert (absent → Standard) statt auf2_COL_RIGHT_FILL. Dadurch werden Seiten ohne Layout beim Öffnen+Speichern nicht mehr still auf2_COL_RIGHT_FILLumgeschrieben.Test
layout-Feld.1_COL) öffnen: erscheint als deaktivierter „⚠ Nicht unterstützt"-Eintrag; Wechsel auf ein unterstütztes Layout möglich.npm testgrün (128),npm run buildohne TS-Fehler.Labels
Feature
🤖 https://claude.ai/code/session_01D2Pc4cAexeqUFrM1YonaJL
Generated by Claude Code