Commit graph

6 commits

Author SHA1 Message Date
Naeem Dosh
9a886ac835 SMB UI overlay: copy full network path, not just the file name
Regression from the filename-label change: the clipboard copied the
label (semantic_identifier = file name) because the chat citation object
does not always carry `link`. Read the full path from
metadata.logical_path first (always present on SMB documents), then fall
back to link, then the file name. Applies to both the chat citation and
the licensed Search view.
2026-09-24 14:11:48 +05:00
Naeem Dosh
8c6c6c4016 SMB connector: per-source index document + filename citation labels
Two client-requested changes:

1. Table of contents per source. On each sync the connector writes one
   index document listing every file on the share, grouped by folder, so
   the assistant is aware of the full document set even when a search
   returns only some files. It re-upserts only when the file set changes,
   is excluded from the orphan-delete reconcile (shares the source prefix
   but is not a file), and is removed if SMB_WRITE_INDEX is turned off.

2. Shorter citation labels. semantic_identifier is now the file name, not
   the full path, so the chat/search citation shows "Angebot.pdf" instead
   of a long truncated Z:\... path. The full network path stays in `link`
   and metadata; the UI overlay copies it to the clipboard on click, in
   both the chat view and the licensed Search view. A DOC_FORMAT_VERSION
   bump re-upserts already-synced files once so existing docs get the new
   label without waiting for a content change.

Verified with a mock-client simulation: 17 checks covering filename
labels, full-path copy, index create/update/delete, reconcile whitelist,
add/remove sync, and the one-time format-version re-upsert.
2026-09-23 18:51:34 +05:00
Naeem Dosh
5c951c3742 SMB UI overlay: fix path-copy in the licensed Search view
The Phase 2 overlay patched the shared openDocument(), which the chat
view uses. The licensed (EE) Search view has its own click handler in
web/src/ee/sections/SearchCard.tsx that never calls openDocument, so
ingestion_api (SMB) documents still opened the broken preview pane.

Add the same ingestion_api branch to SearchCard.handleClick: copy the
logical network path to the clipboard instead of opening a dead preview.
Regenerate smb-ui.patch (now 3 files); applies clean to v4.7.2 and the
three files type-check clean.
2026-09-21 21:47:28 +05:00
Naeem Dosh
7297f18d15 Upgrade to Onyx v4.7.2; drop temporary i18n overlay
- Pin upstream to v4.7.2 and use its official next-intl i18n (German
  included); disable the temporary react-i18next backport.
- Extend the string codemod to rebrand Onyx->AIDO inside the official
  next-intl message catalogs (web/src/i18n/messages/*.json).
- Re-sync the SMB UI overlay patch onto v4.7.2 (path-copy for cited SMB
  documents + the ingestion_api "Initial Indexing" status fix).
- Re-add notification-hide-for-non-admins and de/en language limiting as
  string-based targeted patches in apply-branding.mjs, so they survive
  future version bumps (no more brittle patch files for these).
- DHI base-image swap is now a no-op: v4.7.2 defaults to public node
  images (DHI is a CI-only build-arg override).
2026-09-16 17:02:28 +05:00
Naeem Dosh
f3ab7f4cee SMB connector: fix stuck 'Initial Indexing', configurable name prefix + timeout
Four items from client feedback:

1. Stuck 'Initial Indexing' status. Root cause (by design in Onyx):
   docprocessing/utils.py never runs a classic index attempt for INGESTION_API
   connectors — documents are pushed via the API, not polled — so
   last_finished_status stays null and the badge is stuck even though the docs
   are indexed and searchable (also why it's safe: no risk of re-index deleting
   the pushed docs). Two-part fix:
   - Connector now sets each cc_pair ACTIVE after provisioning (set_cc_pair_active),
     which fixes the connector detail page + 'Active Connectors' count.
   - Frontend overlay (branding/smb/smb-ui.patch): the Ingestion table shows the
     real cc_pair_status for ingestion_api connectors instead of forcing
     'Initial Indexing'. Verified live: new cc_pair comes up ACTIVE.

2. Connector name now configurable: ONYX_CONNECTOR_NAME_PREFIX (default 'AIDO SMB').
3. HTTP timeout now configurable: ONYX_HTTP_TIMEOUT (default 60), for large embeds.
4. (Phase 2 already delivered in ab64692 — the preview/path overlay.)

Verified live against running Onyx: provisioning sets ACTIVE, custom prefix
'Livtec Docs - Sales' applied, timeout honoured, ä-filename still indexed. Full
overlay apply green, no conflict markers, connector modules parse.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-10 23:14:28 +05:00
Naeem Dosh
ab646927ed SMB Phase 2: suppress broken preview for SMB docs, copy logical path
Frontend overlay (folds into the white-label apply step). Documents synced from
SMB shares (source=ingestion_api) have no browsable file, so Onyx's preview click
was a dead end. openDocument now, for ingestion_api docs, copies the logical
network path (semantic_identifier, e.g. \\company\share\file) to the clipboard
with a toast instead of attempting a broken preview. Single change at the shared
click chokepoint, so it covers the document sidebar + citations.

- branding/smb/smb-ui.patch: the utils.ts change (applies clean to v4.5.2 and on
  top of the i18n patch; order-independent).
- apply-branding.mjs: new step 0b applies it (gated by smbUi.enabled, idempotent
  via a marker), before the codemod.
- branding.config.json: smbUi block.

Verified: full apply green (i18n + SMB + branding), idempotent re-apply, no
conflict markers. Compile build in progress.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-08 23:40:43 +05:00