Repository navigation
feat(viewer): chart window keeps its charts' zoom between opens, refresh gives the standard view - #435
Merged
Conversation
…esh gives the standard view
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Zoomkeep: visibility hidden, inert, same size), so the TradingView charts keep their zoom and position for the next open. Opening another symbol's window lets the old one go, so one set of frames stays alive. A page reload starts from the standard viewdisabled_features: ['use_localstorage_for_settings'], otherwise the widget draws every new chart with the last zoom of any chart from its own storage, and ↻ could not go backWhy
Owner 2026-12-03: "after it was opened and I changed charts views / possitoin etc.. and then I closed it... next time I open (if not pressed on ↻) the config for these charts should stay the same as it was before I closed last time"
Checks
bun test: 546 pass (new:Zoom.test.tsx, a kept window stays hidden with the same frame; the tv-chart test asks for the storage switch).claude/tools/etfs/tc/check.shon the changed files: cleantimeScale.barSpacingandrightOffsetoverrides change nothing