Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(ui): replace long-press picker with explicit New note / New commit buttons#67

Merged
wesbillman merged 2 commits intomainfrom
better-item-creation
Feb 12, 2026
Merged

feat(ui): replace long-press picker with explicit New note / New commit buttons#67
wesbillman merged 2 commits intomainfrom
better-item-creation

Conversation

@wesbillman
Copy link
Collaborator

Summary

Replace the single + button (which required a long-press to choose between note and commit) with two explicit buttons, and simplify the modal header accordingly.

Changes

BranchCard

  • Add two labeled buttons with icons (StickyNote, GitCommitHorizontal) in the card footer
  • Remove long-press timer logic and picker dropdown
  • Remove unused Plus icon import
  • Simplify svelte:window handler (no more picker click-outside / keydown)
  • Clean up related state variables (longPressTimer, showPicker, pickerRef, didLongPress)

NewSessionModal

  • Replace the commit/note segmented-control toggle with a static header title that reflects the mode passed by the caller
  • Remove toggleMode function and associated styles (.mode-toggle, .mode-option, .header-content)
  • Add .header-title styles

Motivation

The long-press interaction was subtle and easy to miss — most users didn't realize they could create notes. Making both options immediately visible removes that friction.

Net diff

 2 files changed, 53 insertions(+), 201 deletions(-)

…ommit' buttons

Replace the single '+' button (which required a long-press to pick between
note and commit) with two explicit buttons in the card footer. This makes
the note vs. commit choice immediately visible and removes the subtle
long-press interaction.

Changes:
- Add two labeled buttons with icons (StickyNote, GitCommitHorizontal)
- Remove long-press timer logic and picker dropdown
- Remove unused Plus icon import
- Simplify svelte:window handler (no more picker click-outside/keydown)
- Clean up related state variables (longPressTimer, showPicker, pickerRef, didLongPress)
Remove the commit/note segmented-control toggle from the modal header
and replace it with a static 'New commit' or 'New note' title that
reflects the mode passed by the caller. Since the previous commit added
separate buttons for note and commit, the in-modal toggle is redundant.

Changes:
- Replace mode-toggle button with a static header-title showing the
  appropriate icon (GitCommitHorizontal / StickyNote) and label
- Remove toggleMode function
- Remove .mode-toggle, .mode-option, and .header-content styles
- Add .header-title styles
- Update component doc comment to reflect non-togglable mode
@wesbillman wesbillman merged commit 5f07bec into main Feb 12, 2026
3 checks passed
@wesbillman wesbillman deleted the better-item-creation branch February 12, 2026 19:13
taylorkmho added a commit that referenced this pull request Feb 12, 2026
* origin/main:
  feat: async worktree creation (#71)
  fix: Skip main worktree on project import and remove main badge UI (#70)
  feat(ui): replace long-press picker with explicit New note / New commit buttons (#67)
  fix: remember ordered list of recent agents instead of single last-used (#65)
  fix: capitalize 'Staged' in macOS application menu (#64)
  fix: dismiss new branch dialog immediately for remote branches (#57)
  feat: add Amp (Sourcegraph) as a supported ACP agent (#55)
  feat: restore subfolder autocomplete in new project dialog (#56)
  Consolidate ACP implementations into acp-client crate (#52)

# Conflicts:
#	staged/src/lib/BranchCard.svelte
#	staged/src/lib/NewSessionModal.svelte
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