Skip to content

Refactor/state management - #20

Merged
ostefani merged 5 commits into
mainfrom
refactor/state-management
Nov 18, 2026
Merged

ostefani merged 5 commits into
mainfrom
refactor/state-management

Conversation

@ostefani

@ostefani ostefani commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner
  • Replace store-based resources with runes, fixing the briefing crash and preventing stale fetches from updating the view after selection changes or unmount.
  • Migrate device and history pagination, and extract the bounded decision audit window while preserving cursor and retry behavior.
  • Centralize SSE state and watchers around one App-owned connection, preserving native reconnect and removing the legacy window event.
  • Add client state checks to CI. All 100 state checks, 34 SSR cases, Go viewer tests, and the embedded asset drift check passed. The manual browser walkthrough remains pending.

  - replace resource store bags with reactive getters and preserve
    visible snapshots when a refresh fails
  - scope briefing fetches to the selected ID to fix the client crash
    and prevent late responses from showing the previous briefing
  - reuse the resource for incident members while preserving cached
    rows on collapse and clearing them during a live refresh
  - add client-compiled regression checks and rebuild the embedded UI
  - migrate device and history paging while preserving row caps,
    deduplication, retry behavior, and reset ordering
  - extract decision history into a bounded audit window with
    50-row pages and four back pages
  - reject stale page responses after the cursor changes, a decision
    mutates history, or the view unmounts
  - verify request ordering and audit window behavior, and rebuild
    the embedded UI
  - share one App-owned event stream through context and remove the
    legacy window incident event
  - preserve health refreshes, device paging position, and incident
    updates on open, incident, and resync frames
  - preserve native EventSource replay and reject callbacks from
    retired connections
  - verify reconnect and watcher cleanup, use shared error formatting,
    and rebuild the embedded UI
  - run client-compiled state checks as part of make ui-check
  - verify that a briefing fetch cannot apply after unmount
  - document rune state ownership and the manual release checks
@ostefani
ostefani merged commit 0feda91 into main Nov 18, 2026
6 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant