diff --git a/SPEC.md b/SPEC.md index 48cb35f..2fc6d56 100644 --- a/SPEC.md +++ b/SPEC.md @@ -283,6 +283,13 @@ the minimum in practice, and is easy to reason about. one row of 12 when wider) with the chosen name beside the label; date and payer side by side ("Several people" is the last payer option); photo, note and repeat stay folded behind small buttons; Save is pinned to the bottom. +- Touch gestures on the group page (shortcuts; every action also has a + button): pull up past the end of the Expenses or Balances tab to add an + expense (a "Pull up to add expense" pill rises from behind the tab bar and + reads "Release to add" once far enough; at the bottom so the browser's + pull-to-refresh still works), and swipe left/right to move between the + Expenses, Balances, Stats and Activity tabs. Swipes starting within 24px + of the screen edge are left to the OS back gesture. - **One photo per expense** (receipt), see 9. - Category, date, note. - Comments thread on each expense. @@ -451,10 +458,17 @@ which group ids exist. "who am I" isn't set), the group's total spent, and round quick actions: Add · Payment · Settle up · Share. Tabs: Expenses · Balances (settle up) · Stats · Activity. A floating "+" appears only once the quick actions have - scrolled off screen. + scrolled off screen. Touch gestures: pull up at the end of the page to + add, swipe sideways to change tab (see 7.2). 3. **Expense editor** (sheet on mobile, dialog on desktop). 4. **Expense detail**: photo, split breakdown, comments, history. -5. **Group settings**. +5. **Group settings**, kept short: Share (copy link, native share, QR), + Group (icon, name, main currency and default category side by side; Save + appears only when something changed), Members ("You are" picker on top; + rename/archive as icon buttons; add member as the last row), + Notifications (one switch; hidden where push isn't available), Repeating + expenses (only when there are any), Export, Danger zone (delete asks for + the group name only after it is tapped). 6. **App settings**: language, theme, notifications. ### 10.3 Language diff --git a/apps/web/src/components/GroupGestures.svelte b/apps/web/src/components/GroupGestures.svelte new file mode 100644 index 0000000..57ebce3 --- /dev/null +++ b/apps/web/src/components/GroupGestures.svelte @@ -0,0 +1,215 @@ + + +
+ + diff --git a/apps/web/src/components/GroupPage.svelte b/apps/web/src/components/GroupPage.svelte index 4115412..7170c2d 100644 --- a/apps/web/src/components/GroupPage.svelte +++ b/apps/web/src/components/GroupPage.svelte @@ -1,5 +1,5 @@