Skip to content

fix: keep unsaved automation edits; Dock page leads with what works - #136

Merged
jiunbae merged 1 commit into
mainfrom
fix/automation-draft
Oct 27, 2026
Merged

jiunbae merged 1 commit into
mainfrom
fix/automation-draft

Conversation

@jiunbae

@jiunbae jiunbae commented Oct 27, 2026

Copy link
Copy Markdown
Member

Two UX fixes from the peer review.

Automation editor

  • The draft lived in @State, so leaving the Automation page and coming back discarded unsaved edits. It now lives in AutomationController.draft, and an "Unsaved changes" mark appears beside the buttons. Korean translation included.
  • The Enable switch used to apply and save the editor draft, although the page says only Save applies edits. Enabling now runs the saved script.
  • Save is disabled with no changes, except while running, where it doubles as Reload.
  • New test: testUnsavedDraftOutlivesTheEditorAndClearsWhenItMatchesTheSavedScript.

Dock page

  • With the BarShelf Dock off, the page shows profiles, the Apple Dock layout and switching first. Those work with the dock off. The BarShelf Dock's appearance and items follow.

Testing: swift test passes and sync-strings --check is ok.

🤖 Generated with Claude Code

The automation editor's draft lived in view state, so leaving the
Automation page and coming back replaced unsaved edits with the saved
script. It now lives in AutomationController, with an Unsaved changes
mark beside the buttons. Enabling the extension runs the saved script —
it used to apply and save whatever was in the editor, though the page
says only Save applies edits. Save stays available while running, where
it doubles as Reload.

With the BarShelf Dock off, the Dock page shows profiles, the Apple Dock
layout and switching first; the BarShelf Dock's appearance and items
follow for when it is turned on.

Found in a design/UX review with a codex peer.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@jiunbae
jiunbae merged commit a6f87f9 into main Oct 27, 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