feat: add case reorder and delete in Manage tab#56
Merged
Ark0N merged 8 commits intoArk0N:masterfrom Apr 3, 2026
Merged
Conversation
added 8 commits
March 30, 2026 16:44
Mobile users cannot press Shift+Tab on virtual keyboards. Add a ⇧Tab button that sends the escape sequence (\x1b[Z) to the PTY, enabling mode switching on mobile devices. Also fix accessory bar overflow on narrow screens by making it horizontally scrollable with hidden scrollbar.
…on guard Three fixes from the WIP flicker branch that were lost during master merges: 1. Move viewport clear (\x1b[3J\x1b[H\x1b[2J) inside the dimension-change guard so it only fires when cols/rows actually change. Previously every resize event cleared the screen even at identical dimensions, causing visible flicker with no subsequent Ink redraw to repaint. 2. Sync _lastResizeDims in sendResize() so restoreTerminalSize() doesn't trigger a redundant viewport clear on the next throttledResize tick. 3. Add didScroll tracking to touch events — tap (no scroll) now refocuses xterm's hidden textarea, fixing mobile keyboard input routing after tapping the terminal area.
- Add Tab (forward), Esc, and Option+Enter (newline) buttons - Reorder buttons: ↑ ↓ 📋 Tab ⇧Tab ⌥Enter Esc /init /clear /compact dismiss - Unify dismiss button style with arrow buttons (was oversized with custom class) - Remove unused .accessory-btn-dismiss CSS rules
Support cursor left/right movement on mobile, using the same blue accessory-btn-arrow style as the existing up/down arrows.
Add a "Manage" tab to the create-case modal with up/down reorder buttons and delete for each case. Linked cases are unlinked (folder preserved); CASES_DIR cases are permanently deleted. Backend: - DELETE /api/cases/:name — unlink or delete - PUT /api/cases/order — persist ordering to settings.json - GET /api/cases now respects saved caseOrder Frontend: - Third "Manage" tab in createCaseModal with case list - Delete button in mobile case picker bottom sheet - SSE events: case:deleted, case:order-changed
Owner
|
Thanks for your work, I will check everything soon :-) |
Owner
|
Thanks @TeigenZhang! Clean feature — fills a real UX gap. Merged. Minor note: the hint says "Drag or use arrows to reorder" but there's no drag-and-drop, only arrows. Might want to update that copy in a follow-up. |
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
~/.codeman/settings.jsonviaPUT /api/cases/orderChanges
Backend (3 files):
DELETE /api/cases/:name— unlink linked cases or delete CASES_DIR casesPUT /api/cases/order— save case ordering to settings.jsonGET /api/casesnow sorts by persistedcaseOrdercase:deleted,case:order-changedCaseOrderSchemaFrontend (4 files):
createCaseModalwith case list (name, path, ▲/▼/✕ buttons)renderCaseManageList(),moveCaseUp/Down(),deleteCase(),saveCaseOrder().case-manage-*componentsTest plan
tsc --noEmitandnpm run lintpass