Skip to content

fix: TimeSeries overviewWidth ignored due to PersistentState restore (#9818) - #9827

Open
johntomcat7408-cmyk wants to merge 1 commit into
HumanSignal:developfrom
johntomcat7408-cmyk:fix/timeseries-overviewwidth-persistence
Open

fix: TimeSeries overviewWidth ignored due to PersistentState restore (#9818)#9827
johntomcat7408-cmyk wants to merge 1 commit into
HumanSignal:developfrom
johntomcat7408-cmyk:fix/timeseries-overviewwidth-persistence

Conversation

@johntomcat7408-cmyk

Copy link
Copy Markdown

What is the purpose of the change

overviewWidth has no effect (#9818). PersistentStateMixin restores the stored
brushRange when the {task} fingerprint matches, and updateValue then skips
the config default. The playground sample task id is always 1, so the stored view
always wins there, and a config change never invalidates it.

Fix: add tag and overviewwidth to the fingerprint so a config change
invalidates the stored view; skip store/restore when a fingerprint value is
undefined (no task). Same task + same config still restores the last view.

Brief change log

  • TimeSeries.jsx: fingerprint now includes tag and overviewwidth.
  • PersistentState.js: skip store/restore on undefined fingerprint values.
  • TimeSeries.test.js: 4 unit tests for the above.

Verifying this change

Reproduced in a mobx-state-tree harness: before the fix overviewWidth="100%"
left brushRange at the stored 25% range; after it the new default applies on
config change, same task + config restores the last view, nothing is stored
without a task id. Video (own key, empty fingerprint) is unaffected.

Fixes #9818.

@netlify

netlify Bot commented Jul 17, 2026

Copy link
Copy Markdown

👷 Deploy request for label-studio-docs-new-theme pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit f50ae3a

@netlify

netlify Bot commented Jul 17, 2026

Copy link
Copy Markdown

👷 Deploy request for heartex-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit f50ae3a

@netlify

netlify Bot commented Jul 17, 2026

Copy link
Copy Markdown

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit f50ae3a
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/6a5a4a2003a07400083bb909
😎 Deploy Preview https://deploy-preview-9827--label-studio-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 17, 2026

Copy link
Copy Markdown

Deploy Preview for label-studio-playground ready!

Name Link
🔨 Latest commit f50ae3a
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/6a5a4a20bce4140008da88c8
😎 Deploy Preview https://deploy-preview-9827--label-studio-playground.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Time series overviewWidth not responsive

2 participants