Skip to content

fix(viewer): preserve dashboard scroll and show API errors#1008

Merged
wbugitlab1 merged 6 commits into
mainfrom
issue/507-viewer-dashboard-errors
Jun 18, 2026
Merged

fix(viewer): preserve dashboard scroll and show API errors#1008
wbugitlab1 merged 6 commits into
mainfrom
issue/507-viewer-dashboard-errors

Conversation

@wbugitlab1

Copy link
Copy Markdown
Owner

Summary:

  • Preserve dashboard scroll position across manual, debounced polling, and websocket-triggered refresh paths.
  • Add bottom-right viewer toasts for API HTTP errors, network failures, and browser-side request timeouts.
  • Keep error output safe by writing toast content through DOM text nodes and add VM coverage for escaped hostile text.

Verification:

  • corepack pnpm exec vitest run test/viewer-session-id.test.ts
  • corepack pnpm exec vitest run test/viewer-session-id.test.ts test/viewer-security.test.ts test/viewer-graph-cooldown.test.ts
  • corepack pnpm exec vitest run test/viewer-session-id.test.ts test/viewer-security.test.ts test/viewer-graph-cooldown.test.ts test/viewer-token-savings.test.ts
  • corepack pnpm test
  • corepack pnpm run build
  • corepack pnpm run lint
  • semgrep scan --config p/default --error --metrics=off .
  • gitleaks protect --staged --redact

Fixes #507

@wbugitlab1 wbugitlab1 merged commit 95bfeaa into main Jun 18, 2026
2 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.

[upstream PR 694] f<!-- -->ix(viewer): preserve dashboard scroll and show API errors

1 participant