feat: add session rename with swipe-left action (#290)#737
Open
ascott wants to merge 1 commit intoslopus:mainfrom
Open
feat: add session rename with swipe-left action (#290)#737ascott wants to merge 1 commit intoslopus:mainfrom
ascott wants to merge 1 commit intoslopus:mainfrom
Conversation
991036f to
7f879da
Compare
Add ability to rename active sessions by swiping left and tapping the Rename button alongside the existing Archive button. Custom names are stored locally via MMKV and persist across app restarts and sync updates. - Add customName field to Session type with MMKV persistence - Add updateSessionCustomName store action with whitespace normalization - Add getSessionName/getSessionDefaultName/getSessionCustomName utils - Add Rename button to swipe-left actions on active sessions - Add maxLength support to Modal.prompt - Clean up custom names on session delete - Add translations for all 11 languages - Add 49 tests covering utils, persistence, and store actions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7f879da to
9740608
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the ability to rename active sessions from the sessions list. Users swipe left on an active session to reveal a Rename button alongside the existing Archive button. Custom names are stored locally via MMKV and persist across app restarts and sync updates.
maxLengthsupport toModal.prompt(enforced on iOS via custom modal)Implementation
draft/permissionModepattern — stored in Zustand state, persisted to MMKV, restored on app launch, preserved duringapplySessionsmergegetSessionName()returnscustomName || summaryText || lastPathSegment || "Unknown"Test plan
yarn test --run)Screen recording
Screen.Recording.2026-02-23.at.4.16.51.PM.mov
Closes #290