Skip to content

Fix data table styling and fob dismiss button#50

Merged
Demonstrandum merged 4 commits into
masterfrom
cursor/superimposed-plots-interaction-5d68
Feb 18, 2026
Merged

Fix data table styling and fob dismiss button#50
Demonstrandum merged 4 commits into
masterfrom
cursor/superimposed-plots-interaction-5d68

Conversation

@Demonstrandum

Copy link
Copy Markdown
Owner
  • Move data table and expand button inside .superimposed-card div so they inherit the card's background color, border, and padding
  • Wire up onStepSelectorToggled in the container to clear the local time selection, so the (x) button on the fob actually dismisses it and hides the data table

Motivation for features / changes

Technical description of changes

Screenshots of UI changes (or N/A)

Detailed steps to verify changes work correctly (as executed by you)

Alternate designs / implementations considered (or N/A)

@Demonstrandum Demonstrandum linked an issue Feb 18, 2026 that may be closed by this pull request
- Move data table and expand button inside .superimposed-card div so
  they inherit the card's background color, border, and padding
- Wire up onStepSelectorToggled in the container to clear the local
  time selection, so the (x) button on the fob actually dismisses it
  and hides the data table

Co-authored-by: Samuel <samuel@knutsen.co>
@cursor cursor Bot force-pushed the cursor/superimposed-plots-interaction-5d68 branch from 60c2c83 to a0bf9ba Compare February 18, 2026 14:58
@github-actions

github-actions Bot commented Feb 18, 2026

Copy link
Copy Markdown

Preview Deployment

Status ✅ Running
Live Preview https://Demonstrandum-tensorbored-pr-50.hf.space
Space https://huggingface.co/spaces/Demonstrandum/tensorbored-pr-50
Details
  • Wheel: tensorbored_nightly-2.21.0a20260218-py3-none-any.whl
  • Commit: a14db32
  • Build status: success

cursoragent and others added 3 commits February 18, 2026 15:59
The (x) button on the fob was resetting to end-of-plot instead of
hiding, because clearing localTimeSelection to undefined triggered
the fallback that creates a default selection at maxStep.

Use null to mean 'user dismissed the fob' (returns undefined to hide
it) vs undefined meaning 'not yet interacted, show default'.

Co-authored-by: Samuel <samuel@knutsen.co>
Add a generic PersistResizeDirective that uses ResizeObserver to detect
when a user resizes an element (via CSS resize: vertical) and stores
the height in localStorage under '_tb_resize_heights.v1'. On init, the
stored height is restored.

Applied to both scalar cards and superimposed cards:
- Chart containers keyed by 'scalar-chart:<tag>' / 'superimposed-chart:<id>'
- Data table containers keyed by 'scalar-table:<tag>' / 'superimposed-table:<id>'

Heights survive page refreshes.

Co-authored-by: Samuel <samuel@knutsen.co>
Add explicit type assertion on JSON.parse() to satisfy tsetse rule
and strict type checking.

Co-authored-by: Samuel <samuel@knutsen.co>
@Demonstrandum Demonstrandum merged commit 5f84f0d into master Feb 18, 2026
13 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.

Add a little grabby corner to resize the super-imposed plots

2 participants