mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
During a #6492 data recovery, users should never see a bare connection error. Two layers now cover the whole window on every FerretDB v1 launch path (snap, bundled release, Docker): - In-app spinner (already present): the server clears the RECOVERY_IN_PROGRESS marker only after a real health probe, so the full-screen overlay behaves identically everywhere. - Static bridge page (new, cross-platform): for the brief window while a just-restored FerretDB comes back up and before Meteor can serve the client, the launch scripts serve a tiny standalone "recovering your data" page (HTTP 503) on the web port. The snap reuses wekan-maintenance-page.mjs with a recovery wording; release/Docker serve the portable recovery-bridge.mjs. The bridge is time-bounded (WEKAN_RECOVERY_BRIDGE_SECONDS, default 20s) so it can never block WeKan from starting, hands straight over to the in-app spinner, and is skipped if its page file or the marker is absent. The launch scripts do NOT delete the marker; only the server does, after verifying the database serves reads. Tests enforce the bridge is bounded, is guarded by the page file, and that no script deletes the marker. Thanks to bluetopaz1204, mueschel and xet7 ! Fixes #6492,