Skip to content

feat(viewer): zoom button on each chart shows only that chart, shrink brings the others back - #436

Merged
daggerok merged 1 commit into
mainfrom
feat/chart-focus
Dec 3, 2026
Merged

daggerok merged 1 commit into
mainfrom
feat/chart-focus

Conversation

@daggerok

@daggerok daggerok commented Dec 3, 2026

Copy link
Copy Markdown
Owner

What

  • Each chart of the chart window has ⤢ in its top right corner, over its price scale: it leaves only that chart, its interval pill alone on (Daily ⤢ -> only Daily)
  • The charts shown before are kept (fundamentalsBefore); on the single chart ⤡ brings them back. A choice made on the pills meanwhile wins (no ⤡ then)
  • The chart keeps its React key, so its zoom stays through ⤢ and ⤡
  • Rules focusChart and unfocusChart in app/tv-chart.ts, tested; ShrinkIcon in icons.tsx; Russian words added

Why

Owner 2026-12-03: "we also want to have a zoom button for each chart ... when we click on one for any of the charts, we should have to see it as like so if I clicked for right daily one"

Checks

  • bun test: 547 pass (new: focus and back rules)
  • .claude/tools/etfs/tc/check.sh on the changed files: clean
  • Chrome on localhost:1237 with made-up positions (PG): Monthly Weekly Daily, ⤢ on Daily -> Daily alone, its pill alone on, the same frame (not reloaded); ⤡ -> Monthly Weekly Daily again, Daily still the same frame

@daggerok
daggerok merged commit 9983da6 into main Dec 3, 2026
1 check passed
@daggerok
daggerok deleted the feat/chart-focus branch December 3, 2026 16:26
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