Skip to content

feat: allow bidirectional card flipping and rating from either face (#128)#191

Open
djanderson26 wants to merge 5 commits into
mainfrom
feat/allow-bidirectional-rating
Open

feat: allow bidirectional card flipping and rating from either face (#128)#191
djanderson26 wants to merge 5 commits into
mainfrom
feat/allow-bidirectional-rating

Conversation

@djanderson26
Copy link
Copy Markdown
Collaborator

Changes

  • FlipCard now accepts taps when already flipped, enabling bidirectional toggling
  • _flipCard() toggles state instead of always setting to true
  • SwipeableCard always enabled on mobile for swipe-to-rate from either face
  • Rating shortcuts (1-4 and Space) work from front or back face
  • Rating buttons always visible and clickable on desktop
  • Users can now freely flip between front/back faces and rate from either side, removing the previous lock-to-back restriction.

Closes #128

… face (#128)

- Update FlipCard to accept taps when already flipped
- Change _flipCard() to toggle state instead of only enabling
- Enable swipe-to-rate from both front and back faces (mobile)
- Allow rating keyboard shortcuts (1-4) from either face
- Make rating buttons always visible and clickable on desktop

Users can now freely flip between front/back and rate from any face,
improving the study session UX by removing the lock-to-back restriction.
@djanderson26 djanderson26 requested a review from Pairadux as a code owner April 18, 2026 23:10
djanderson26 and others added 3 commits April 21, 2026 17:13
…er face (#128)

- Add _hasSeenAnswer state variable to track if answer has been revealed
- Guard all rating inputs (keyboard, swipe, buttons) with _hasSeenAnswer flag
- Reset flag on next card and when undoing
- Enables rating from both front and back faces, but only after initial flip

Fixes behavior where rating was possible before revealing the answer.
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.

study: allow flipping back and rating from either card face

1 participant