Commit graph

5 commits

Author SHA1 Message Date
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