feat: add Woerterbuch category + column add/delete in grid editor

- New document category "Woerterbuch" (frontend type + backend validation)
- Column delete: hover column header → red "x" button (with confirmation)
- Column add: hover column header → "+" button inserts after that column
- Both operations support undo/redo, update cell IDs and summary
- Available in both GridEditor and StepGridReview (Kombi last step)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-03-23 16:27:12 +01:00
parent 7a6eadde8b
commit 4e668660a7
6 changed files with 174 additions and 4 deletions

View File

@@ -32,6 +32,8 @@ export function GridEditor({ sessionId, onNext }: GridEditorProps) {
canUndo,
canRedo,
getAdjacentCell,
deleteColumn,
addColumn,
} = useGridEditor(sessionId)
const [showOverlay, setShowOverlay] = useState(false)
@@ -219,6 +221,8 @@ export function GridEditor({ sessionId, onNext }: GridEditorProps) {
onToggleColumnBold={toggleColumnBold}
onToggleRowHeader={toggleRowHeader}
onNavigate={handleNavigate}
onDeleteColumn={deleteColumn}
onAddColumn={addColumn}
/>
</div>
) : (