Skip to content

fix: refresh Host dashboard immediately after account changes - #1837

Draft
Jacky-Pham wants to merge 1 commit into
Jacky/strr-account-selection-state-20260915from
Jacky/strr-dashboard-account-refresh-20260915
Draft

Jacky-Pham wants to merge 1 commit into
Jacky/strr-account-selection-state-20260915from
Jacky/strr-dashboard-account-refresh-20260915

Conversation

@Jacky-Pham

@Jacky-Pham Jacky-Pham commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Changing accounts on the new Host dashboard can leave the previous account's rows visible and postpone the newest account's list requests until an earlier request finishes. Both tables currently use Nuxt's option-watch refresh queue, which serializes a trailing refresh behind the active one.

Keep the table instances mounted and explicitly refresh when account, page or search state changes. Clear data when the account ID changes, and register the watcher before awaiting initial data. This starts the current account's request without waiting for the older request and prevents old rows/results from being displayed under the new account. Existing request debouncing and same-account pagination/search behavior are retained.

Nine integration cases use the actual page, tables, core account store, Nuxt asynchronous-data handling and persistence helpers with synthetic API responses. The original component source has three failures and six passing controls. Cases include initial-load account changes, overlapping requests, immediate clearing of old rows, normal refresh, search/page reset, and recovery after either table request fails. HTTP headers and authenticated browser navigation are separate checks.

Validation on review head 2806a0974793b078c95feb449e222d523f8cd916:

  • Clean local lint and all 433 Host unit tests pass, including the nine new cases.
  • Host CI: lint, 433 tests and build pass.
  • Combined CI, QA head c27ad97a79643d51cc0cc80d8e9bcc650e8ef94f: all five lint/test/build jobs pass, with 1,158 tests (Base 41, Host 491, Platform 57, Strata 80, Examiner 489).
  • Strict diagnostic sets are unchanged in both profiles. Combined totals remain 47 default / 32 configured; these overlapping profiles must not be added. Strict checking is not yet clean.

Stacked on #1836. The separate legacy Host and Strata list dashboards and live authenticated navigation remain additional verification work.

@sonarqubecloud

Copy link
Copy Markdown

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