Skip to content

feat(triage): Tinder-style swipe transition for review cards - #16

Merged
jvsena42 merged 1 commit into
mainfrom
feat/card-swipe-transition
Jun 20, 2026
Merged

feat(triage): Tinder-style swipe transition for review cards#16
jvsena42 merged 1 commit into
mainfrom
feat/card-swipe-transition

Conversation

@jvsena42

Copy link
Copy Markdown
Owner

What

Adds a Tinder-style swipe interaction to the Triage Queue (Review cards) screen.

  • Swipe to decide. Drag the top card right to approve (Keep) or left to disapprove (Discard). Crossing the threshold (~25% of screen width) flings the card off and commits the decision; below the threshold it springs back.
  • Live feedback badges. A solid green check / solid red X badge fades and scales in with drag progress and rides along with the card, so the pending decision is clear mid-gesture.
  • Card stack. The next card peeks behind the top one and grows into place as the top card is dragged away.
  • Buttons unchanged in behavior. The discard / edit / keep action buttons drive the same fly-off transition.
  • Accessibility. All animations respect the OS reduce-motion setting (via rememberReduceMotion()).

Badge colors mirror the action buttons (srsGood/foregroundOnAccent for keep, srsAgain/foregroundOnAccent for discard).

Scope

Single file: composeApp/.../ui/importflow/TriageScreen.kt. No ViewModel or navigation changes — the gesture and buttons call the existing onKeep/onDiscard.

Testing

  • ./gradlew :composeApp:compileDebugKotlin
  • ./gradlew detektAll

🤖 Generated with Claude Code

Drag the top triage card right to approve (Keep) or left to disapprove
(Discard); crossing the threshold flings the card off and commits the
decision, while below it the card springs back. A peek card behind grows
into place as the top card moves.

Live approve/disapprove feedback badges (solid green check / solid red X)
fade and scale in with drag progress and ride along with the card, mirror-
ing the action buttons' colors. The buttons drive the same fly-off
transition. All animations respect the OS reduce-motion setting.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jvsena42
jvsena42 merged commit 558760a into main Jun 20, 2026
2 checks passed
@jvsena42
jvsena42 deleted the feat/card-swipe-transition branch June 20, 2026 12:22
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.

1 participant