Skip to content

fix(platform): show document sources and sync failures as icons - #3386

Merged
yannickmonney merged 3 commits into
mainfrom
fix/documents-source-icons
Sep 15, 2026
Merged

yannickmonney merged 3 commits into
mainfrom
fix/documents-source-icons

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

What

The Documents Source column spelled its source out, so German labels such as "OneDrive (synchronisiert)" wrapped onto two lines and ran into RAG status. Google Drive alone showed a bare logo that never said whether it synced, a failed sync was a wide red text badge, and the document preview kept its own map of three providers that printed the internal slug for everything else (google_drive, agent, knowledge).

  • Source cell = icons. The vendor logo (OneDrive, SharePoint, Google Drive), trailed by a smaller glyph: circling arrows for a sync import, the same arrows struck through for a one-time import. Uploads, agent files, knowledge entries, API imports and WebDAV get their own glyph; a REST caller's own provenance keeps its words. The words stay as the tooltip and the accessible name (role="img").
  • Failed sync = icon too. A red warning sign (Sync failed) or a red unplugged plug (Reconnect needed) replaces the sync arrows. It is a button named by its dialog title, its tooltip opens on hover and on keyboard focus, and it opens the same reason/reconnect dialog as before.
  • One provenance map. useDocumentSource feeds both the Source cell and the preview sidebar, which now shows the mark plus the words instead of a raw slug.
  • Copy. New sourceType labels (not synced, agent, knowledge entry, API) in en/de/fr; the preview-only source keys are gone. The documents guide (EN/DE/FR) explains the marks; documents-list.webp retaken.
  • Manual layer. KNOW-F16 describes the failure mark, new KNOW-F19 covers the column, with its pin and automation row.
  • The SharePoint mark drops an SVG <title> that doubled the tooltip.

Proof

  • use-document-source.test.tsx covers every provenance; use-documents-table-config.test.tsx covers names, glyphs, axe, the failure button's tooltip on focus and its dialog. The new cell tests fail against the old implementation.
  • Platform typecheck + lint, i18n parity/orphan/usage, lint:manual, check-guide (knowledge suite) and the docs suite are green locally.
  • Observed in a seeded local stack in English and German, light and dark, at the table's minimum width; a fresh session hovering every mark, opening the failure dialog and navigating a folder logged no console errors.

The Source column spelled its source out, so "OneDrive (synchronisiert)"
wrapped onto two lines and ran into RAG status, while a Google Drive row
showed a bare logo that never said whether it synced.

Each cell is now the vendor logo (an upload arrow for an upload, the
connectors catalog's plug for WebDAV) trailed by a smaller glyph: circling
arrows for a sync import, the same arrows struck through for a one-time
import. The words stay as the tooltip and the accessible name; the new
"(not synced)" labels ship in en, de and fr, and the documents guide
explains the marks. A failed sync keeps its badge. The SharePoint mark
drops its <title>, which doubled the tooltip.
A failed sync still replaced the source marks with a red text badge, and
the document preview kept its own map of three providers that printed the
internal slug for the rest ("google_drive", "agent", "knowledge").

A failed sync is now the vendor logo with a red warning sign (or an
unplugged plug when the account must be reconnected): a button named by
its dialog title whose tooltip says what is wrong, on hover and on focus.
The Source cell and the preview sidebar read one provenance map, which
also names agent files, knowledge entries and API imports in en, de and
fr; a REST caller's own provenance keeps its words. Docs and the manual
suite describe the marks.
@yannickmonney
yannickmonney merged commit 3cde850 into main Sep 15, 2026
49 checks passed
@yannickmonney
yannickmonney deleted the fix/documents-source-icons branch September 15, 2026 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant