Skip to content

feat: add velocity/acceleration visibility toggles to preferences - #30

Merged
veillette merged 2 commits into
mainfrom
claude/add-graph-visibility-toggle-5G44e
Feb 22, 2026
Merged

feat: add velocity/acceleration visibility toggles to preferences#30
veillette merged 2 commits into
mainfrom
claude/add-graph-visibility-toggle-5G44e

Conversation

@veillette

Copy link
Copy Markdown
Collaborator

Adds two checkboxes in the Preferences dialog that let users control
which kinematic quantity groups appear in the graph axis selectors:

  • "Show Velocity" — toggles vx, vy, speed (default: on)
  • "Show Acceleration" — toggles ax, ay, |a| (default: on)

When a group is turned off, those quantities disappear from both the
X-axis and Y-axis combo boxes. If the currently selected axis was one
of the hidden quantities, the selection resets to the first available
property automatically.

Implementation details:

  • TrackLabPreferencesModel: two new BooleanProperty fields
  • TrackLabPreferencesNode: two new Checkbox rows (EN + FR strings)
  • kinematics-plottable-properties: refactored to return a
    KinematicsPlottableGroups object (time / position / velocity /
    acceleration) so filtering by category is explicit and stable
  • GraphControlsPanel: stores combo-box references; new
    rebuildComboBoxes() swaps them in-place in the title HBox
  • ConfigurableGraph: stores controlsPanel ref; new
    setAvailableProperties() resets invalid axis selections then
    delegates to rebuildComboBoxes()
  • KinematicsGraphNode: accepts preferencesModel, links to preference
    changes and calls graph.setAvailableProperties() reactively
  • SimScreenView: forwards trackLabPreferences to KinematicsGraphNode

https://claude.ai/code/session_01YaV1vpxbx3is233G6cR71x

Adds two checkboxes in the Preferences dialog that let users control
which kinematic quantity groups appear in the graph axis selectors:

- "Show Velocity" — toggles vx, vy, speed (default: on)
- "Show Acceleration" — toggles ax, ay, |a| (default: on)

When a group is turned off, those quantities disappear from both the
X-axis and Y-axis combo boxes. If the currently selected axis was one
of the hidden quantities, the selection resets to the first available
property automatically.

Implementation details:
- TrackLabPreferencesModel: two new BooleanProperty fields
- TrackLabPreferencesNode: two new Checkbox rows (EN + FR strings)
- kinematics-plottable-properties: refactored to return a
  KinematicsPlottableGroups object (time / position / velocity /
  acceleration) so filtering by category is explicit and stable
- GraphControlsPanel: stores combo-box references; new
  rebuildComboBoxes() swaps them in-place in the title HBox
- ConfigurableGraph: stores controlsPanel ref; new
  setAvailableProperties() resets invalid axis selections then
  delegates to rebuildComboBoxes()
- KinematicsGraphNode: accepts preferencesModel, links to preference
  changes and calls graph.setAvailableProperties() reactively
- SimScreenView: forwards trackLabPreferences to KinematicsGraphNode

https://claude.ai/code/session_01YaV1vpxbx3is233G6cR71x
Acceleration quantities (ax, ay, |a|) are now hidden from the graph
axis selectors by default. Users can opt in via Preferences.

https://claude.ai/code/session_01YaV1vpxbx3is233G6cR71x
@veillette
veillette merged commit f4a8d60 into main Feb 22, 2026
1 check passed
@veillette
veillette deleted the claude/add-graph-visibility-toggle-5G44e branch February 22, 2026 19:39
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.

2 participants