- 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).
51 lines
2.5 KiB
Diff
51 lines
2.5 KiB
Diff
diff --git a/web/src/app/admin/indexing/status/CCPairIndexingStatusTable.tsx b/web/src/app/admin/indexing/status/CCPairIndexingStatusTable.tsx
|
|
index 0f61ede9..2dcb8e7e 100644
|
|
--- a/web/src/app/admin/indexing/status/CCPairIndexingStatusTable.tsx
|
|
+++ b/web/src/app/admin/indexing/status/CCPairIndexingStatusTable.tsx
|
|
@@ -179,7 +179,13 @@ function ConnectorRow({
|
|
<TableCell>
|
|
<CCPairStatus
|
|
ccPairStatus={
|
|
- ccPairsIndexingStatus.last_finished_status !== null
|
|
+ // AIDO: ingestion-API connectors (e.g. the SMB sync) are never run
|
|
+ // through Onyx's classic indexer — documents are pushed via the API —
|
|
+ // so last_finished_status stays null and the badge would otherwise be
|
|
+ // stuck on "Initial Indexing" even though the docs are indexed. Show
|
|
+ // the real connector status for them instead.
|
|
+ ccPairsIndexingStatus.last_finished_status !== null ||
|
|
+ ccPairsIndexingStatus.source === ValidSources.IngestionApi
|
|
? ccPairsIndexingStatus.cc_pair_status
|
|
: ccPairsIndexingStatus.last_status == "not_started"
|
|
? ConnectorCredentialPairStatus.SCHEDULED
|
|
diff --git a/web/src/lib/search/utils.ts b/web/src/lib/search/utils.ts
|
|
index ce7eab36..2711f0b6 100644
|
|
--- a/web/src/lib/search/utils.ts
|
|
+++ b/web/src/lib/search/utils.ts
|
|
@@ -1,5 +1,6 @@
|
|
import { ValidSources } from "@/lib/types";
|
|
import { MinimalOnyxDocument, OnyxDocument } from "@/lib/search/interfaces";
|
|
+import { toast } from "@opal/layouts";
|
|
|
|
// If we have a link, open it in a new tab (including if it's a file)
|
|
// If above fails and we have a file, update the presenting document
|
|
@@ -7,6 +8,20 @@ export const openDocument = (
|
|
document: OnyxDocument,
|
|
updatePresentingDocument?: (document: MinimalOnyxDocument) => void
|
|
) => {
|
|
+ // AIDO: documents synced from SMB/network shares (ingestion API) have no
|
|
+ // browsable link and no stored file to preview — a normal preview click would
|
|
+ // just fail. Instead, surface the logical path by copying it to the clipboard
|
|
+ // so the user can open the file directly on the share.
|
|
+ if (document.source_type === ValidSources.IngestionApi) {
|
|
+ const path = document.semantic_identifier || document.document_id;
|
|
+ if (path) {
|
|
+ void navigator.clipboard
|
|
+ ?.writeText(path)
|
|
+ .then(() => toast.success(path))
|
|
+ .catch(() => undefined);
|
|
+ }
|
|
+ return;
|
|
+ }
|
|
if (document.link) {
|
|
window.open(document.link, "_blank");
|
|
} else if (
|