feat(guides): Phase 2 — step editor, edit mode, collection management

Guide detail page:
- Edit mode toggle (✏ Bearbeiten / ✓ Fertig)
- StepEditorModal: 5 step types, title, markdown content, checkable toggle
- Per-step controls in edit mode: edit, delete, reorder ↑↓ (on hover)
- Section management: add / delete sections in edit mode
- Unsectioned + sectioned steps both editable
- Empty state with CTA to enter edit mode
- Guide delete with confirmation dialog
- Run history shows mode icon (📜 scroll / 🎯 focus)

Collections page:
- CollectionEditModal: emoji, color, path vs library type
- Create collection from empty state and header button
- Edit/delete existing collections

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-31 21:23:47 +02:00
parent 8e496ff417
commit 1a999f8cca
5 changed files with 688 additions and 111 deletions

View file

@ -151,7 +151,15 @@ apps/guides/apps/web/src/routes/
- [x] GuideEditModal
- [x] Registrierung in mana-apps.ts + app-icons.ts
### Phase 2 — Web-Import & Sharing
### Phase 2 — Content-Editing ✅ Abgeschlossen
- [x] StepEditorModal (Typ, Titel, Content, Checkable-Toggle)
- [x] Guide-Detail Edit-Mode (Steps hinzufügen, bearbeiten, löschen, sortieren ↑↓)
- [x] Abschnitt-Verwaltung im Edit-Mode (hinzufügen, löschen)
- [x] Guide löschen (mit Bestätigungs-Dialog)
- [x] CollectionEditModal (Emoji, Farbe, Typ path/library)
- [x] Collections erstellen/bearbeiten aus Collections-View
### Phase 3 — Web-Import & Sharing
- [ ] Hono/Bun-Server (apps/guides/apps/server/)
- [ ] Web-Import: URL → Guide via mana-search
- [ ] Guide-Export: JSON / Markdown