dorfteich/apps/web/src/import
Claude Fable 5 b8546eb249 Vault import: always show the label section, create labels inline
The label multiselect was gated on the pond already having labels — but
before a first import that is the common case, so the section silently
vanished and no import-wide label could be chosen. Render the fieldset
unconditionally (with a hint when empty) and add an inline create
field: POST the new label directly to get its id back, refresh the
shared label query, and tick it right away. Same pond_admin permission
as the dialog itself.

The e2e pack now creates its label through the dialog instead of the
API, covering exactly the empty-pond path that slipped through.

Fixes #121

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fb2VzvcoBPHkjh8bZ6PzQn
2026-07-15 10:58:50 +02:00
..
ImportControl.tsx Add document import UI in the sidebar (#64) 2026-07-10 09:38:31 +02:00
use-import.ts Add document import UI in the sidebar (#64) 2026-07-10 09:38:31 +02:00
VaultImportSection.tsx Vault import: always show the label section, create labels inline 2026-07-15 10:58:50 +02:00