wiki/c-work/4-done/2026-06-workspace-context-sidebar.md
2026-06-11 15:44:54 +02:00

1.6 KiB

AI Workspace — Kontext-Sidebar + FloatingPortal

Ziel

Kontext-Panel im AI-Workspace benutzbar machen (volle Hoehe, Explorer-Style wie Datei-Explorer/Cursor-Sidebar) und Dropdown-Clipping systemweit via FloatingPortal loesen — ohne z-index-Workarounds.

Umgesetzt

Kontext-Sidebar (WorkspaceContextSidebar.tsx)

  • Feste Breite 320px, volle Stage-Hoehe (nicht PanelLayout-Prozent-Split)
  • Icon-Toolbar: Dateien · Quellen · Aktivitaet · Vorschau · Collapse (Chevron)
  • URL: ?ctxTab=files|sources|activity|preview (Legacy datafiles)
  • Oeffnen via Top-Bar „Kontext“: Sidebar immer expandiert
  • Desktop Persistenz: localStorage workspace-ctx-open-{instanceId}
  • Neuer Chat ohne Name: Top-Bar zeigt ...

Mobile

  • Prompt-centric: Chat fuellt Stage
  • Kontext als Bottom-Sheet (66vh), Grab/↑ auf Vollbild
  • Im Sheet allowCollapse={false}

FloatingPortal

Alle Dropdown-Komponenten auf Portal umgestellt (Liste in b-reference/ui-nyla/layout.md).

PanelLayout

  • Chevron-Collapse sichtbar
  • Overflow nur am Root, nicht in .pane/.paneBody

Kanonische Doku

Nicht-Ziele / bewusst offen

  • Generisches Resize fuer Workspace-Kontext-Sidebar (nur Collapse, keine Drag-Breite)
  • FormGeneratorList/DeleteActionButton: inline Bestaetigung, kein Dropdown