Skip to content

fix(dashboard): cancel the compression tab's saved-badge timer on unmount - #15350

Merged
diegosouzapw merged 1 commit into
release/v3.8.52from
fix/compression-tab-status-timer
Oct 2, 2026
Merged

diegosouzapw merged 1 commit into
release/v3.8.52from
fix/compression-tab-status-timer

Conversation

@diegosouzapw

Copy link
Copy Markdown
Owner

The setTimeout that clears the "saved" badge in CompressionSettingsTab (#14723) was never cancelled. In CI it fired after the jsdom environment was torn down: ReferenceError: window is not defined from react-dom, reported as a vitest unhandled error that fails the UI job although all 431 files pass (seen on #15325, attempts 1 and 2).

The timer is now kept in a ref, replaced on the next save and cleared on unmount. New test in compression-settings-tab-partial-save.test.tsx: fails on the old component, passes now (8/8 locally).

…ount

The 2s timer that clears the 'saved' badge was never cancelled, so it fired into a torn-down
jsdom tree in CI ('window is not defined' as a vitest unhandled error, failing the UI job on
otherwise green runs).
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

CI Coverage Report

  • Coverage job: success
  • PR test policy: success

Coverage artifact was not available for this run.

@diegosouzapw
diegosouzapw merged commit 9cd5f18 into release/v3.8.52 Oct 2, 2026
46 of 51 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