Skip to content

bug(platform): document version history that fails to load is a dead end: no next step and no Try again #4577

Closed

Description

@yannickmonney

Summary

When a document's version history fails to load, the dialog shows only "Couldn't load version history" (de "Versionsverlauf konnte nicht geladen werden", fr "Impossible de charger l’historique des versions"). It has no next step and no Try again. The only way to retry is to close the dialog and open it again, and nothing says so.

services/platform/app/features/documents/components/document-history-dialog.tsx:179–182:

) : versionsQuery.isError || !versionsQuery.data ? (
  <Text variant="muted" className="py-4 text-center text-sm">
    {t('history.loadFailed')}
  </Text>

The component has no refetch or retry path. Other failed reads offer Try again with a refetch: the Home lists, account teams and passkeys, the model endpoints page, governance competences, trash and the data-subject request drawer. Open PR #4301 adds the same for a failed website pages read.

Expected and observed

  • Expected: the failed state says what to do and offers Try again, which calls versionsQuery.refetch(), as the other failed reads do. Focus should stay usable while the retry runs.
  • Observed: a dead-end message.

Severity

Low (UX-CLARITY, REL-MANUAL on knowledge.documents): a transient failure while comparing versions leaves no recovery path inside the dialog.

Acceptance checks

  1. A jsdom test fails the versions request, asserts a Try again control, then succeeds on retry and lists the versions.
  2. Any new or changed strings ship in en, de and fr. de-CH needs an override only if the German text contains "ß".

Limits

  • Static: source and catalogs at main ba3f848a535d928637161be4053f150bd4d15f4c. The dialog wasn't opened live.
  • Left out on purpose: the Google Drive and OneDrive pickers also toast a terse "Couldn't load items" after their retries, but that behavior is deliberate and tested (cloud-import-dialogs.listing-failure.test.tsx), and opening the folder again retries it.
  • Dedupe: none of the 274 open items covers the version history dialog.

Found by TALE-358 Review A (product and experience: UX-CLARITY), occurrence 2026-10-08 20:15 Europe/Zurich, run fa7f7525-c949-4678-aa65-e8b384fc4b1f, during the oldest-due knowledge.* UX-CLARITY slice.

Activity

  1. yannickmonney commented on Oct 12, 2026

    @yannickmonney
    ContributorAuthor

    Addendum (Review A, TALE-358, 2026-10-12 20:15 Zurich occurrence): the History deep link fails the same way. main c94f1fd84, services/platform/app/features/projects/components/project-files-tab.tsx.

    • ?historyExternalItemId= (the one-shot link, used for example by Case Setup automations) resolves the document with useDocumentByExternalItemId (:368-371).
    • Once the lookup stops loading, any outcome without data, a failed read included, raises documents:history.notFound: "That file has no version history yet." (:458-462).
    • The effect then strips the search parameter (:465-475), so the link is consumed. Reloading the page can't retry it, and the person is told something false about their file.

    Expected: only a successful lookup that finds nothing says "no version history". A failed lookup says it couldn't load and keeps the parameter, or offers Try again, until the read succeeds.

    Regression: a files-tab test whose lookup rejects. No "no version history yet" toast, and the deep link survives. On c94f1fd84 the toast shows and the parameter is removed.

    This is static reading, verified at the cited lines. I didn't run it.

  2. added
    agent-ready
    on Oct 29, 2026
  3. added a commit that references this issue on Oct 30, 2026
    88afcfd
  4. added a commit that references this issue on Oct 30, 2026
    c58a850
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readybug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions