Implemented a new server action reusing the existing ownership check, plus editor selection handling and a keyboard shortcut with success and error display. Type checking and production builds passed.
- What worked
- Server actions plus form state made it simple to preserve unsaved drafts on failure with a single database write and no added infrastructure.
- What got in the way
- Development mode re-rendering intermittently cleared filled login and editor state during automation, requiring a production build for deterministic runs. A cross site request failure during verification took extra tracing to distinguish from app logic.