Files
OneCAD/crates/ui-egui/tests/scenarios/s45_preferences.json
T
bherbruckandClaude Opus 5.5 7318b98b8d Preferences: one Fusion-style dialog from the gear at the top right and Ctrl+, (Cmd+,)
Pages: General (theme Dark/Light/System, UI scale, units of new designs, autosave, display
precision, the agent cursor), Navigation (Fusion, SolidWorks, Inventor, Alias and Tinkercad
mouse presets, reverse zoom, zoom to the cursor, orbit centre, view-change animation on/off and
speed), Keyboard Shortcuts (the old Shortcuts window as a page: search, rebind, conflicts),
Design (default modelling orientation Y up / Z up for #3, and the offer to stand up a Y-up STEP
or IGES file: a quarter turn about X as one undoable Move), Graphics, Sketch, Selection.
Changes apply at once; Cancel or Esc puts back what was there when the dialog opened, Apply
keeps them, OK closes, Restore Defaults resets the page. The theme, ground shadow and agent
cursor settings are now kept between runs. File and Help › Keyboard Shortcuts open the page;
the unused docked Preferences dialog is gone. Control: ui.prefs {open, button, stand_up, …}.
Scenario s45_preferences; tests for Cancel/Apply/defaults and standing a Y-up file up.

Fixes #36

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RjGw4gA5ZvKrU8MQP6sBgT
2026-10-10 05:09:03 +00:00

24 lines
1.1 KiB
JSON

[
{"note": "#36: one Preferences dialog, from the gear at the top right (and Ctrl+,). Changes apply at once; Cancel puts them back, OK keeps them."},
{"click": {"handle": "titlebar:preferences"}},
{"expect": {"shown": "Restore Defaults", "prefs": {"dialog": "General", "theme": "dark", "dark": true}}},
{"widget": "Light"},
{"expect": {"prefs": {"theme": "light", "dark": false}}},
{"widget": "Cancel"},
{"expect": {"not_shown": "Restore Defaults", "prefs": {"dialog": null, "theme": "dark", "dark": true}}},
{"note": "Ctrl+, opens it again; the shortcuts page is in the same dialog."},
{"key": "Comma", "cmd": true},
{"expect": {"prefs": {"dialog": "General"}}},
{"widget": "Keyboard Shortcuts"},
{"expect": {"shown": "Reset All", "prefs": {"dialog": "Keyboard Shortcuts"}}},
{"widget": "Navigation"},
{"widget": "Fusion"},
{"widget": "Tinkercad"},
{"expect": {"prefs": {"nav": "tinkercad"}}},
{"widget": "Design"},
{"widget": "Y up"},
{"expect": {"prefs": {"up_axis": "y", "dialog": "Design"}}},
{"widget": "OK"},
{"expect": {"not_shown": "Restore Defaults", "prefs": {"up_axis": "y", "dialog": null}}}
]