From 1159b9cba6d3490f49a915d797b6438d020120c7 Mon Sep 17 00:00:00 2001 From: Mischa Date: Sun, 21 Jun 2026 21:07:50 +0200 Subject: [PATCH] feat: add mobile swipe triage UI with HammerJS and undo stack On viewports < 768px, show a Tinder-style card UI instead of the photo grid. Cards show one untagged photo at a time with swipe gestures (right=journal, left=skip, up=story), colour overlays during drag, tap buttons as alternatives, a progress bar, and a 10-deep undo stack. Desktop grid is unchanged, wrapped in #desktop-view. Co-Authored-By: Claude Sonnet 4.6 --- .../travel-memories/app/templates/phase2.html | 376 ++++++++++++++++-- 1 file changed, 349 insertions(+), 27 deletions(-) diff --git a/services/travel-memories/app/templates/phase2.html b/services/travel-memories/app/templates/phase2.html index b4f0f23..819e30b 100644 --- a/services/travel-memories/app/templates/phase2.html +++ b/services/travel-memories/app/templates/phase2.html @@ -13,6 +13,9 @@ {{ state.photos | selectattr('tag', 'ne', 'untagged') | list | length }} / {{ state.photos | length }} tagged + + + +
+
+
+ + + {# Card stack #} +
+ {# Card is injected by JS #} + +
+ + {# Action buttons #} +
+ + +
- {% endfor %} + {% endblock %} {% block extra_scripts %} + {% endblock %}