Translate OnlyOffice error dialogs into actionable host-UI errors #154

Open
opened 2026-04-26 08:19:04 +00:00 by zaelgohary · 0 comments
Member

When the editor fails (host mismatch in cache URL, encoding issue, JWT mismatch, ...) OnlyOffice shows raw "Download failed" / "Unknown error" / "Error" dialogs that mean nothing to a user. The host application has the context to translate these.

Acceptance

  • A small DOM watcher (or postMessage listener if OnlyOffice exposes one) inside the iframe wrapper detects the error dialog appearing.
  • Replace it with a host-rendered banner that:
    • Names the file and the doc type.
    • Shows a short, plain-English diagnosis ("the editor service couldn't reach the file — your admin should check that hero_office_server is running").
    • Offers a Retry button that closes the iframe and re-creates the editor session.
  • Underlying OnlyOffice error stays available behind a "Show technical details" toggle for support diagnostics.
When the editor fails (host mismatch in cache URL, encoding issue, JWT mismatch, ...) OnlyOffice shows raw "Download failed" / "Unknown error" / "Error" dialogs that mean nothing to a user. The host application has the context to translate these. ## Acceptance - A small DOM watcher (or postMessage listener if OnlyOffice exposes one) inside the iframe wrapper detects the error dialog appearing. - Replace it with a host-rendered banner that: - Names the file and the doc type. - Shows a short, plain-English diagnosis ("the editor service couldn't reach the file — your admin should check that hero_office_server is running"). - Offers a Retry button that closes the iframe and re-creates the editor session. - Underlying OnlyOffice error stays available behind a "Show technical details" toggle for support diagnostics.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_archipelagos#154
No description provided.