Commit graph

8 commits

Author SHA1 Message Date
3d2f87c967 Pull up to add, swipe between tabs; shorter group settings
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
2026-11-06 23:59:44 +00:00
ce1b207906 Pull down to add an expense
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
2026-11-06 21:27:53 +00:00
5f40882cd5 Expense editor: compact one-screen layout, balanced category tiles
The add sheet was ~1,400px tall on a 390×844 phone and the 12 category
chips wrapped into ragged rows. Now it fits one screen with three members:

- currency is a pill beside the amount (native select laid over it)
- categories are 12 equal tinted icon tiles, 6 × 2 (12 × 1 when wider),
  with the chosen name next to the label
- date and payer share a row; "Several people" is the last payer option
  instead of a separate checkbox
- photo, note and repeat are folded behind small buttons
- Save is pinned to the bottom; Cancel dropped (the X closes)
- sheet header is opaque and sheets get scroll-padding so focused
  fields aren't hidden under the header or the Save bar

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gVKYyo9BHLHPW4qr4x
2026-11-06 21:10:17 +00:00
b3b57c156e Group page redesign and visual bug fixes
Layout, from the approved mock:
- Group header on Expenses/Balances: my balance as the headline number
  (Money component de-emphasises currency and decimals), total spent, and
  round quick actions Add / Payment / Settle up / Share. The floating +
  shows only once those scroll off screen.
- Expense rows on two lines (title | amount, payer | my part) with round
  icons tinted per category; sentence-case section headings.
- Balances: larger avatars, paired avatars on settle-up rows, tinted button.

Bugs found in a screenshot pass (phone 320/390, desktop 1280; dark, black,
light; English and Czech):
- A long title or member name widened the group page past the screen and
  phones zoomed out (grid tracks without minmax(0, ...)); same in Stats.
- Long titles were clipped mid-word with no ellipsis.
- Category emoji nearly invisible on its grey circle in the light theme.
- Stats period labels wrapped (en) or ran off screen (cs); shortened.
- Icons next to wrapping text were squashed (lock on Home/App settings).
- Dialogs opened with a focus ring on the close button after a tap.
- New expenses always defaulted to Food & drink; now the group's default
  category (settable in group settings), else Other.

e2e: the Balances check now targets the Settle up heading, which the new
quick action shares its text with.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gVKYyo9BHLHPW4qr4x
2026-11-06 20:36:33 +00:00
769b76857a Neutral dark, black and light themes with a modern look
Replace the green-tinted palette with neutral near-black (Dark), true black
(Black, new, opt-in) and light grey (Light); green is the accent only. System
(default) follows the OS between Dark and Light. All text colours keep
>= 4.5:1 contrast on every surface.

Stylesheet-only restyle to match the approved mock: hairline card borders
(--line, separate from control --border), 20px corners, pill buttons and
segmented controls, round icon buttons and FAB, floating pill tab bar.
Browser theme-color follows the effective theme.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gVKYyo9BHLHPW4qr4x
2026-11-06 19:55:42 +00:00
62c19192a7 Add a supplementary rate feed for currencies the ECB lacks (e.g. ALL)
The server also fetches ExchangeRate-API's free EUR-based endpoint
(RATES_EXTRA_URL, empty = off), stored apart from ECB rates; ECB always wins
for a currency both publish. /api/rates returns sources for supplementary
rates, expenses record them as xr:<date>, and the editor shows the required
attribution link. Snapshots older than a week before the requested date are
not used.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gVKYyo9BHLHPW4qr4x
2026-11-06 18:13:31 +00:00
6b0c80bb50 Offer only ISO 4217 currencies in circulation in the picker
Browsers' Intl.supportedValuesOf('currency') includes long-withdrawn codes
(ATS, DEM, ...). Use a hand-maintained ACTIVE_CURRENCIES list in core instead,
which also drops recently replaced ones (BGN, HRK, ANG, ZWL, SLL, CUC) and
non-cash units (XDR, XSU). A withdrawn currency already in use stays selectable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gVKYyo9BHLHPW4qr4x
2026-11-06 18:13:31 +00:00
8fbbb4933e Add Svelte web client and service worker
Mobile-first PWA: groups via key-in-fragment links, encrypted outbox and
sync over SSE, all split modes, currencies with ECB rate prefill, photos,
comments, history and rewind, stats, recurring expenses, CSV and backup,
EN/CS, dark/light theme, Web Push decrypted in the service worker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF
2026-10-09 19:59:16 +00:00