mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
8dd8635b87
On the phone plugins panel, "Update all" fired every pending update at the same time. Only one row can show as busy, so the other rows stayed clickable while their own install was running, and the list reloaded once per plugin as each update finished. The desktop runs the updates one after another, and the hook's own comment calls the parallel way wrong. Cause: usePluginsAdmin kept the phone's parallel loop behind the updateAllInParallel option, which only the phone set. Fix: the option is gone; updateAll always waits for each update before starting the next, on both shells. Red test: FE-ADMIN-PLUGINS-HOOK-009 (usePluginsAdmin.test.ts) failed with "AssertionError: expected [ [ 'a', undefined ], …(1) ] to deeply equal [ [ 'a', undefined ] ]". Changed assertions in src/components/Admin/plugins/usePluginsAdmin.test.ts: - FE-ADMIN-PLUGINS-HOOK-009 (renamed from "with updateAllInParallel every update starts at once, without a version" to "Update all starts only the first update, without a version"): pluginUpdate calls were [['a', undefined], ['b', undefined]], now [['a', undefined]]. It and the mounted() helper no longer pass the removed option. - FE-ADMIN-PLUGINS-HOOK-008: only its name lost "by default".