From 031f99e626f52ea7baac9155b0cbe6e4fcfbfb31 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Sun, 18 Oct 2026 21:26:24 +0200 Subject: feat: poll server data so shared pages stay near-live Refetch the current page every 15s while the tab is visible, gated by a pure refresh policy: edit pages, hidden or offline tabs and in-flight navigations are left alone. Replaces refresh-on-refocus with auto-refresh. --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index b047498..19b641e 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,15 @@ chores). ## Features -- **Refocus refresh** — returning to the app after 10 seconds away refetches - the current page's data; edit pages are left untouched. +- **Auto refresh** — the current page's data is refetched every 15 seconds + while the tab is visible, and on returning to the app after at least 10 + seconds away; edit pages, hidden or offline tabs and in-flight navigations + are left untouched. No server push: polling. - **Groceries** — two concepts: the **catalog** (every item ever added) and the **list** (unchecked items — what to buy next). Quick add with autocomplete, bulk category updates while planning, aisle-grouped view - while shopping. Shared across devices, but live sync is not implemented — - refresh to see your partner's changes. + while shopping. Shared across devices — every tab polls the server, so your + partner's changes land within ~15 seconds. - **Product references** — for items like "coffee" or "pasta": one or more reference brands with a price per unit (€/kg or €/L) and a quality score (0–100), comparable from the item while in the store. One reference can be @@ -79,7 +81,6 @@ mise run deploy ## TODO -- Live updates from server - Auto-categorize new items (LLM-assisted) - https://automerge.org/docs/tutorial/ - Shared > Modal actions -- cgit v1.3