Skip to content

feat(editor): add slide shortcut - #86

Merged
byrongamatos merged 1 commit into
mainfrom
feat/editor-slide-shortcut
Jul 6, 2026
Merged

feat(editor): add slide shortcut#86
byrongamatos merged 1 commit into
mainfrom
feat/editor-slide-shortcut

Conversation

@ChrisBeWithYou

@ChrisBeWithYou ChrisBeWithYou commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a note-mode S shortcut for the pitched slide editor
  • keep Tempo Map S routed to the sync-point split/lock command while Tempo Map mode is active
  • cover the new key labels and active-mode precedence in shortcut tests

Validation

  • node --check screen.js
  • node tests\eof_shortcuts.test.js
  • node tests\tempo_map_timesig.test.js
  • node tests\tempo_sync_inspector.test.js
  • node tests\tempo_map_bpm.test.js
  • node tests\tempo_map_guidance.test.js
  • node tests\measure_readout.test.js
  • git diff --cached --check
  • staged public-term guardrail scan

Summary by CodeRabbit

  • New Features
    • Added a new shortcut for editing a note’s slide from the editor.
    • The S key now opens the slide prompt for the currently selected note in both shortcut modes.
  • Bug Fixes
    • Improved keyboard shortcut handling so the slide-edit action is available consistently across profiles.
    • If no note is selected, the app now prompts you to select one before continuing.

@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 70724148-2b54-4141-a066-1794b5194edd

📥 Commits

Reviewing files that changed from the base of the PR and between 636938b and 3c5c39e.

📒 Files selected for processing (2)
  • screen.js
  • tests/eof_shortcuts.test.js

📝 Walkthrough

Walkthrough

Adds a new slideEditor shortcut command bound to key S in the editor's shortcut registry, extends EOF and feedback key resolvers to map s to this command, implements a command runner case invoking promptSlide for the selected note, and adds corresponding test assertions.

Changes

slideEditor Shortcut

Layer / File(s) Summary
Shortcut registration, resolution, and execution
screen.js
Adds a slideEditor command (Notes group, key S) to the shortcut registry, extends EOF and feedback key resolvers to map s to slideEditor, and adds a command runner case that calls promptSlide for the selected note or prompts for selection if none exists.
Test coverage for slideEditor shortcut
tests/eof_shortcuts.test.js
Adds assertions verifying slideEditor appears with key label 'S' in eof and feedback shortcut rows, and that 's' maps to slideEditor in feedback and Tempo Map active-mode tests.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant KeyResolver
  participant CommandRunner
  participant promptSlide

  User->>KeyResolver: press 's'
  KeyResolver->>KeyResolver: resolve to slideEditor command id
  KeyResolver->>CommandRunner: dispatch slideEditor
  alt note selected
    CommandRunner->>promptSlide: open slide prompt for selected note
  else no note selected
    CommandRunner->>CommandRunner: set status prompting selection
  end
Loading

Possibly related PRs

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/editor-slide-shortcut

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ast-grep (0.44.1)
screen.js

ast-grep timed out on this file


Comment @coderabbitai help to get the list of available commands.

@byrongamatos
byrongamatos force-pushed the feat/editor-slap-shortcut branch from 13dcbfb to 5710677 Compare July 6, 2026 08:58
@byrongamatos
byrongamatos force-pushed the feat/editor-slide-shortcut branch from 889ee6a to 90e04d9 Compare July 6, 2026 08:58
@byrongamatos
byrongamatos force-pushed the feat/editor-slap-shortcut branch from 5710677 to 50e1568 Compare July 6, 2026 09:16
@byrongamatos
byrongamatos force-pushed the feat/editor-slide-shortcut branch from 90e04d9 to 22376aa Compare July 6, 2026 09:16
@byrongamatos
byrongamatos force-pushed the feat/editor-slap-shortcut branch from 50e1568 to 89b1004 Compare July 6, 2026 09:18
@byrongamatos
byrongamatos changed the base branch from feat/editor-slap-shortcut to main July 6, 2026 09:20
@byrongamatos
byrongamatos force-pushed the feat/editor-slide-shortcut branch from 22376aa to 3c5c39e Compare July 6, 2026 09:20
@byrongamatos
byrongamatos merged commit d180c73 into main Jul 6, 2026
1 check was pending
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