Skip to content

Move To / coordinates dialogs: drop the title rule, name the real workspace, M on MCS - #9

Merged
shuckc merged 3 commits into
mainfrom
move-to-dialog
Nov 9, 2026
Merged

shuckc merged 3 commits into
mainfrom
move-to-dialog

Conversation

@shuckc

@shuckc shuckc commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Three small fixes to the move-related dialogs.

Changes

  • Drop the rule under the title of the Move To dialog. The list now starts directly below the title like the other dialogs, and the dialog is one row shorter.
  • Name the active coordinate system in the dialog titles. The "Move To" and "Move to position" titles built their label as WCS{slot}, a leftover from when slots were just WCS1–WCS10. 34477c2 introduced the real names (User (RML-1), EXOFS, WCS1 (G54)…) but only switched the header over, so slot 1 showed as "WCS1" and G54 (slot 3) as "WCS3". Both titles now use wcs_label() like the header.
  • M on MCS in the coordinates dialog now moves to machine 0,0,0,0. The handler returned early for MCS ("MCS origin is always (0,0,0,0) — no-op / already there"), since the first version of the dialog. The MCS origin is the machine zero, but the tool is not necessarily there, so the move is real. MCS already had (0,0,0,0) loaded, so removing the special case sends the normal bracketed absolute move (SET 0x04f7, 1800 mm/min). The overwrite keys still refuse MCS. Like the other stored-origin moves, X, Y and Z travel together.

Test plan

  • pytest -q: 160 passed, 1 skipped
  • tests/test_wcs_titles.py drives both dialogs through a fake curses window for slots 0–8 and checks the exact title text (9 of its 10 Move To cases fail without the fix)
  • tests/test_wcs_dialog_move.py: M on MCS sends the move to machine zero, is bracketed like other moves, M on a stored origin still moves to it, and the overwrite keys still refuse MCS (the two MCS move tests fail without the fix)
  • ruff check on both new test files
  • Try M on MCS on the real machine, and look at the dialogs on a real terminal

🤖 Generated with Claude Code

shuckc and others added 2 commits November 9, 2026 10:19
The list now starts directly below the title like the other dialogs, and the dialog is one
row shorter.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The Move To and Move to position dialogs built their label as "WCS{slot}", a leftover from
when slots were just WCS1-WCS10. 34477c2 introduced the slot names (User (RML-1), EXOFS,
WCS1 (G54)...) but only switched the header over, so slot 1 showed as "WCS1" rather than
"User (RML-1)" and G54 (slot 3) as "WCS3". Both titles now use wcs_label() like the header.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The handler returned early for MCS ("MCS origin is always (0,0,0,0) — no-op / already there"),
since the first version of the dialog. The MCS origin is the machine zero, but the tool is not
necessarily there, so the move is real. MCS already has (0,0,0,0) loaded in index 0, so removing
the special case sends the normal absolute move. The overwrite keys still refuse MCS.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@shuckc shuckc changed the title Move To dialog: drop the title rule, name the real workspace Move To dialog: drop the title rule, fix workspace name Nov 9, 2026
@shuckc
shuckc changed the base branch from z-probe to main November 9, 2026 10:34
@shuckc shuckc changed the title Move To dialog: drop the title rule, fix workspace name Move To / coordinates dialogs: drop the title rule, name the real workspace, M on MCS Nov 9, 2026
@shuckc
shuckc merged commit 02f0838 into main Nov 9, 2026
1 check 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.

1 participant