Gestures (pull up to add, swipe tabs) and shorter group settings #9

Merged
reudy merged 2 commits from feat/add-gesture into main 2026-11-07 01:15:54 +01:00
Member

Touch gestures on the group page, plus a shorter group settings screen.

Gestures (GroupGestures.svelte)

  • Pull up to add: at the end of the Expenses or Balances tab, pulling up raises a "⌃ Pull up to add expense" pill from behind the tab bar. Past ~72px (with resistance) it turns green and reads "+ Release to add", with a short vibration where supported. Letting go opens the add sheet; letting go earlier springs back. It's at the bottom rather than the top so the browser's pull-to-refresh keeps working. On a short page that doesn't scroll, any long upward drag counts.
  • Swipe between tabs: left/right moves through Expenses → Balances → Stats → Activity. The list follows the finger, rubber-bands at the first and last tab, and the new tab slides in (no animation with reduced motion). It needs 25% of the screen width or a quick flick.
  • Ignored: touches within 24px of the left/right edge (the OS back gesture), touches in inputs/selects, touches in anything that scrolls sideways itself, and anything while a sheet or the identity picker is open.
  • These are shortcuts only: the Add buttons and the tab bar are unchanged, and the pill is aria-hidden.

Group settings, more concise

Same features, less space:

  • Share: one row (Copy link, Share icon, QR); shorter intro text.
  • Group: main currency and default category side by side. Save only appears when something changed. Hints trimmed.
  • Members: the "You are" picker is the first row. Rename/archive are icon buttons, and Add member is the last row.
  • Notifications: one switch, hidden where push isn't available. Repeating expenses: hidden when there are none.
  • Danger zone: two rows; the delete confirmation (type the group name) only opens after tapping Delete.

Locale strings are updated in en and cs (default_category_hint removed; type_name_to_confirm, qr_code and group added). SPEC §7.2 and §10.2 are updated.

Tested

  • Scripted CDP touch drags at 390×844 against a throwaway server:
    • pull up at the bottom (short page and after scrolling a 9-expense list) opens the sheet;
    • pull up at the top of a long page just scrolls;
    • swipes go Expenses → Balances → Stats → Activity, stay on Activity at the end, and go back with a right swipe;
    • an edge swipe and a mostly-vertical drag do nothing.
  • Settings screenshots: Dark en 390, Light cs 390, 320×640, 1280 desktop. No horizontal overflow, no console errors.
  • npm test (core 27/27, server 15/15), npm run check 0/0, npm run build && npm run test:e2e 2/2.
  • Not tested on a physical phone.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HA82gVKYyo9BHLHPW4qr4x

Touch gestures on the group page, plus a shorter group settings screen. ## Gestures (`GroupGestures.svelte`) - **Pull up to add:** at the end of the Expenses or Balances tab, pulling up raises a "⌃ Pull up to add expense" pill from behind the tab bar. Past ~72px (with resistance) it turns green and reads "+ Release to add", with a short vibration where supported. Letting go opens the add sheet; letting go earlier springs back. It's at the bottom rather than the top so the browser's pull-to-refresh keeps working. On a short page that doesn't scroll, any long upward drag counts. - **Swipe between tabs:** left/right moves through Expenses → Balances → Stats → Activity. The list follows the finger, rubber-bands at the first and last tab, and the new tab slides in (no animation with reduced motion). It needs 25% of the screen width or a quick flick. - **Ignored:** touches within 24px of the left/right edge (the OS back gesture), touches in inputs/selects, touches in anything that scrolls sideways itself, and anything while a sheet or the identity picker is open. - These are shortcuts only: the Add buttons and the tab bar are unchanged, and the pill is `aria-hidden`. ## Group settings, more concise Same features, less space: - **Share:** one row (Copy link, Share icon, QR); shorter intro text. - **Group:** main currency and default category side by side. Save only appears when something changed. Hints trimmed. - **Members:** the "You are" picker is the first row. Rename/archive are icon buttons, and Add member is the last row. - **Notifications:** one switch, hidden where push isn't available. **Repeating expenses:** hidden when there are none. - **Danger zone:** two rows; the delete confirmation (type the group name) only opens after tapping Delete. Locale strings are updated in en and cs (`default_category_hint` removed; `type_name_to_confirm`, `qr_code` and `group` added). SPEC §7.2 and §10.2 are updated. ## Tested - Scripted CDP touch drags at 390×844 against a throwaway server: - pull up at the bottom (short page and after scrolling a 9-expense list) opens the sheet; - pull up at the top of a long page just scrolls; - swipes go Expenses → Balances → Stats → Activity, stay on Activity at the end, and go back with a right swipe; - an edge swipe and a mostly-vertical drag do nothing. - Settings screenshots: Dark en 390, Light cs 390, 320×640, 1280 desktop. No horizontal overflow, no console errors. - `npm test` (core 27/27, server 15/15), `npm run check` 0/0, `npm run build && npm run test:e2e` 2/2. - Not tested on a physical phone. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01HA82gVKYyo9BHLHPW4qr4x
agent added 1 commit 2026-11-06 22:27:55 +01:00
On touch screens, dragging the Expenses or Balances tab down from the top
slides a "Pull to add expense" pill out from under the header; releasing
once it reads "Release to add" opens the add sheet. Sideways swipes,
upward scrolls and touches on form controls are left alone, and the
browser's pull-to-refresh is suppressed only while a pull is in progress.
The visible Add buttons stay; the pill is aria-hidden.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gVKYyo9BHLHPW4qr4x
agent added 1 commit 2026-11-07 00:59:46 +01:00
Gestures (GroupGestures.svelte replaces PullToAdd.svelte):
- Pull-to-add moves to the bottom: pulling up past the end of the
  Expenses or Balances tab raises a pill from behind the tab bar. The
  top is left to the browser's pull-to-refresh.
- Swiping left/right switches between Expenses, Balances, Stats and
  Activity; the list follows the finger and the new tab slides in.
  Touches within 24px of the screen edge (OS back gesture), in form
  controls or in sideways-scrolling elements are ignored.

Group settings, same features in less space:
- Share: one row (Copy link, Share icon, QR); shorter intro.
- Group: currency and default category side by side; Save appears
  only when something changed; hints trimmed.
- Members: "You are" picker merged in; rename/archive as icon buttons;
  add member is the last row.
- Notifications: a single switch. Repeating expenses: hidden when none.
- Danger zone: two rows; the delete confirmation opens on tap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gVKYyo9BHLHPW4qr4x
agent changed title from Pull down to add an expense to Gestures (pull up to add, swipe tabs) and shorter group settings 2026-11-07 00:59:57 +01:00
reudy merged commit 61f4e42846 into main 2026-11-07 01:15:54 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: reudy-net/oweme#9
No description provided.