Repository navigation
feat(home): picker Cancel button + drag-to-reorder slots - #60
Merged
Merged
Conversation
- The slot picker (Select app) gains a Cancel button to the left of Add link (negative button), consistent with the gesture pickers. - Slots are now draggable: a long press picks the row up (haptic), moving the finger reorders it live against the neighbouring rows, releasing drops it and persists the new order into the slot preferences. A long press released without moving still opens the app picker, and a quick tap still launches the assigned app. The usage Last App row is not draggable. - Test infra: the ShadowActivity started-intents queue now resets per scenario (a scenario that launches an app made later no-app-launched assertions in the same feature fail), and the slot drag helper drives real touch events through the long-press timeout.
thypon
added a commit
that referenced
this pull request
Nov 12, 2026
Device feedback after #60: natural finger wobble past the touch slop cancelled the pending long-press, making the picker unreachable; and the drag re-parented the row at every slot crossing, so it moved definitively one spot at a time and dropped mid-gesture. The long press now fires regardless of drift (only UP, CANCEL or a second pointer cancels it). While held, the picked row tracks the finger one to one and the other rows slide out of the way with a 150 ms translation animation (instant when animations are off) — the stack order and the backing data stay untouched. Dropping settles the row at the hover position: only then is it re-parented, retagged and persisted, with the residual half-row distance animated away instead of snapping. BDD: drifting-finger long-press scenario, pick-up/follows-finger/drop scenario; new world helpers longPressSlotWithDrift, pickUpSlot, dropSlot and pickedSlotFollowsFinger.
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.
What
1. Cancel on the app picker. The long-press slot picker ("Select app") now shows a Cancel button to the left of Add link (negative button position), consistent with the gesture pickers.
2. Drag to reorder slots. A long press on a main-view slot picks it up (haptic); moving the finger reorders it live against the neighbouring rows; releasing drops it and persists the new order into the slot preferences (
<i>/p<i>rewritten for all rows).BDD (red→green)
The app picker offers a cancel button— Cancel present, left of Add link, pressing it launches nothing.Long-press dragging a slot reorders the apps— drag slot 0 past slot 1 → visible order and stored assignments swap.A dragged slot order survives a relaunch— persistence across activity recreation.Test infra fix
ShadowActivityrecords started intents for the whole feature sandbox; a scenario that launches an app made laterno app was launchedassertions fail.cleanScenarioStatenow clears the queue (clearNextStartedActivities).Testing
./gradlew checkBUILD SUCCESSFUL (unit + BDD + 80% JaCoCo gate + lint), fresh build directory.Commits are unsigned (signing key passphrase-locked).