ui: auto-refresh the proactive log and STK menu state
The proactive command list only re-rendered on tab/pill switches, so new fetched commands (background STATUS polling, menu traffic) stayed invisible while the Phone view was open. - /api/status now exposes proactive_seq (_PROACTIVE_ENTRY_ID, monotonic and not reset with the log), so the existing 2s status poll detects changes with no extra request; pysimCardStateUpdate() re-renders the log when the sequence changed and the Phone/Phone view is visible - the 5s backend timer no longer fetches the log (it was discarded) and now uses the already-fetched stk-status: when active/pending changes while the Phone tab is visible, stkCheckMenu() refreshes the menu button without a tab switch - pysimProactiveLogRender() keeps its scroll position and only shows Loading... on a first/empty paint - tests: proactive seq + STK signature helpers and poll-driven render behaviour in card_state.test.js; SW cache v123 -> v124.
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
const CACHE = 'otaman-v123';
|
||||
const CACHE = 'otaman-v124';
|
||||
const URLS = [
|
||||
'index.html',
|
||||
'help.html',
|
||||
|
||||
Reference in New Issue
Block a user