Commit graph

28 commits

Author SHA1 Message Date
61f4e42846 Merge pull request 'Gestures (pull up to add, swipe tabs) and shorter group settings' (#9) from feat/add-gesture into main
Reviewed-on: #9
2026-11-07 01:15:54 +01:00
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
a10ec3c3b3 Merge pull request 'Expense editor: one-screen layout and balanced category tiles' (#8) from feat/editor-layout into main
Reviewed-on: #8
2026-11-06 22:12:06 +01: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
271d3e8a66 Merge pull request 'Group page redesign, per-group default category, visual bug fixes' (#7) from feat/redesign into main
Reviewed-on: #7
2026-11-06 21:42:53 +01:00
88024b4702 Merge pull request 'Neutral Dark, Black and Light themes with a modern look' (#6) from feat/themes into main
Reviewed-on: #6
2026-11-06 21:42:44 +01: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
c12fd64f09 Core: per-group default category (group.updated defaultCategory)
SPEC listed defaultCategory on group.updated but nothing implemented it.
Replay accepts one of CATEGORIES and ignores the whole event otherwise,
validating before any field is applied.

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
da35509ecd Merge pull request 'Rates for currencies the ECB lacks (ALL); only list currencies in circulation' (#5) from fix/currency-rates into main
Reviewed-on: #5
2026-11-06 19:39:19 +01: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
1c691cd54f Merge pull request 'Make the app port configurable (PORT)' (#4) from feat/configurable-port into main
Reviewed-on: #4
2026-10-10 00:50:04 +02:00
0217d62bf0 Make the app's port configurable with PORT (default 8080)
compose.yaml passes ${PORT:-8080} to the app, its healthcheck and the
standalone Caddy (APP_PORT in the Caddyfile). Docs note that the panel's
domain must target the same port.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF
2026-10-09 22:49:54 +00:00
9cd4c82118 Merge pull request 'Panel-friendly deploy: compose at the root, settings via env vars' (#3) from chore/compose-at-root into main
Reviewed-on: #3
2026-10-10 00:45:45 +02:00
04d952872d Make the deploy panel-friendly: zero-config compose, env vars with defaults
- compose.yaml runs only the app by default; Caddy moved to the
  'standalone' profile (the panel brings its own Caddy and routes).
- No env_file: every setting is ${VAR:-default} in compose.yaml, so it
  can be set from the panel's Environment tab (or .env standalone).
- VAPID keys are generated on first start and kept in the data volume;
  the push subject defaults to https://<site domain>. gen-vapid.ts removed.
- PUSH_DISABLED=1 turns push off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF
2026-10-09 22:24:22 +00:00
1382e53359 Move compose.yaml and .env.example to the repo root
Deploy is now `podman compose up -d` from the root. Add .containerignore
so node_modules, local data and .env stay out of the build context, and
mount only .env (not the whole tree) when generating VAPID keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF
2026-10-09 20:45:28 +00:00
41b3487a5a Merge pull request 'Implement OweMe v1' (#2) from feat/v1-app into main
Reviewed-on: #2
2026-10-09 22:28:30 +02:00
8c4e37ce4b Add podman compose deployment, dev script and docs
Containerfile + compose (app + Caddy with automatic HTTPS), env-driven
domain/limits/ports, VAPID key generation that never prints the key.
SPEC updated to match the implementation (Node stdlib server, Svelte SPA,
revert by event id, backup contents, push options).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF
2026-10-09 19:59:17 +00:00
a78d855886 Add Playwright end-to-end tests
Two devices (EN + CS) sharing a group through sync, photos, rates, rewind,
offline and settle-up; plus push delivery to the service worker via CDP.
Can target a running deployment with E2E_BASE_URL.

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
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
f67add3660 Server: count only newly stored events toward the group quota
Re-uploading existing events (retries, backup restore) is idempotent and
must not eat into MAX_GROUP_BYTES.

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
8dd25b93b0 Add server: encrypted event log API, blobs, SSE, ECB rates, Web Push
Node 24 standard library only (node:http, node:sqlite, node:crypto).
Push uses VAPID + RFC 8291 encryption with an allowlist of push services.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF
2026-10-09 19:33:28 +00:00
c2043b86bc Add core package: money math, event replay, settle-up, recurring, stats, CSV
Deterministic integer/BigInt arithmetic so every client computes identical
balances; replay validates events and supports rewind via snapshots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF
2026-10-09 19:30:09 +00:00
747e49f46a Spec: drop import, lock base currency, env-configurable domain and limits
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF
2026-10-09 19:19:21 +00:00
2e3604f70c Add v1 product and technical specification
Covers access model (key-in-fragment links), encrypted event log,
deterministic money math, currencies, photos, history/rewind,
i18n, theming, server API, threat model and podman compose deploy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF
2026-10-09 19:13:35 +00:00
bbdbb3454d Initial commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF
2026-10-09 19:13:34 +00:00