aido-onyx/branding/smb
livdebus d4cb8dcb99 fix(smb): ingest as File source so docs appear in default chat; update UI patch
The Ingestion API docs require creating a connector with source=file and
pushing documents with from_ingestion_api=true so they are indexed under a
recognizable DocumentSource that Onyx's chat UI can filter and search.

Previously we used source=ingestion_api / input_type=poll. Documents were
indexed (visible in the admin panel) but were not searchable in Onyx's
default chat because ingestion_api is absent from the chat filter UI.

Connector changes:
- onyx_client.py: create connector as source=file, input_type=load_state,
  connector_specific_config.file_locations=[] (avoids LocalFileConnector
  health-check errors since we push via API, not disk crawl)
- sync.py: set source=file and from_ingestion_api=true on every document
  and index payload so Onyx treats them as API-ingested File docs

UI overlay changes (branding/smb/smb-ui.patch):
- Replace document.source_type === ValidSources.IngestionApi with
  document.metadata?.smb_source
- This keeps the broken-preview suppression and logical-path clipboard
  copy working for SMB docs, while leaving normal File uploads untouched

Result: SMB documents now surface in default chat under the File filter,
the connector stays "Up to Date" without dummy-file errors, and the
Phase 2 click-to-copy behavior continues to work.
2026-09-24 20:34:31 +02:00
..
smb-ui.patch fix(smb): ingest as File source so docs appear in default chat; update UI patch 2026-09-24 20:34:31 +02:00