Andrey Antukh c1044ac522 Add protection for stale cache of js assets loading issues (#8638)
*  Use update-when for update dashboard state

This make updates more consistent and reduces possible eventual
consistency issues in out of order events execution.

* 🐛 Detect stale JS modules at boot and force reload

When the browser serves cached JS files from a previous deployment
alongside a fresh index.html, code-split modules reference keyword
constants that do not exist in the stale shared.js, causing TypeError
crashes.

This adds a compile-time version tag (via goog-define / closure-defines)
that is baked into the JS bundle. At boot, it is compared against the
runtime version tag from index.html (which is always fresh due to
no-cache headers). If they differ, the app forces a hard page reload
before initializing, ensuring all JS modules come from the same build.

* 📎 Ensure consistent version across builds on github e2e test workflow

---------

Signed-off-by: Andrey Antukh <niwi@niwi.nz>
2026-03-30 19:46:51 +02:00
..
2026-01-07 16:28:05 +01:00
2026-01-27 15:07:18 +01:00
2025-05-06 13:39:15 +02:00
2023-12-28 09:49:47 +01:00
2022-09-20 23:23:22 +02:00
2025-08-01 11:20:01 +02:00
2024-01-08 09:32:50 +01:00
2025-11-05 17:16:06 +01:00
2026-02-09 14:18:31 +01:00
2022-09-20 23:23:22 +02:00
2022-09-20 23:23:22 +02:00
2025-12-01 09:30:21 +01:00
2025-12-01 09:30:21 +01:00
2023-07-13 17:05:25 +02:00
2022-09-20 23:23:22 +02:00
2021-11-15 09:51:34 -05:00
2025-08-01 11:20:01 +02:00
2022-09-20 23:23:22 +02:00
2024-03-14 09:53:07 +01:00
2025-09-05 13:54:19 +02:00
2024-01-08 09:32:50 +01:00
2023-01-13 16:55:00 +01:00
2025-06-06 15:25:49 +02:00
2024-01-08 09:32:50 +01:00