Commit Graph

8 Commits

Author SHA1 Message Date
Jose Selesan
aa170de8d1 feat(web): show pending items on the installed app icon
Keep the Badging API count equal to the primary list's pending items, update it from optimistic changes and the list's SSE stream (shared across pages), and re-sync when the app returns to the foreground.

On iOS the badge needs notification permission, so Settings offers to enable it; Android does not support numeric web app badges.
2026-10-29 14:20:21 -03:00
Jose Selesan
7ed4d27844 feat(auth): add passkey sign-in and management
Sign in with Face ID, Touch ID, Windows Hello or a security key, keeping
email + password as the primary method.

- API: BetterAuth passkey plugin deriving rpID/origin from WEB_APP_URL
  (the browser origin), with residentKey "required" because sign-in is
  username-less. New Passkey model mapped to the passkeys table.
- Web: conditional UI in the email field plus an explicit "Entrar con
  passkey" button; cancelled ceremonies are ignored.
- Settings: create, rename and delete passkeys with TanStack Query.
- Pin @better-auth/passkey to 1.7.7: its peers lock better-call, so
  newer versions break the API.
2026-10-29 11:37:38 -03:00
Jose Selesan
d5feb65d62 feat(web): show the build's commit and date in settings
Lets you tell whether an installed PWA picked up a new release. The
commit is read from .git at build time (the Docker build stage has no
git binary), so .dockerignore now lets HEAD and the refs through.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 20:00:33 -03:00
Jose Selesan
debf3b2728 feat(web): UI quick wins for items, navigation and settings
- Toggling an item only disables that row, so several items can be
  marked in a row; failures roll back just that item and show a toast,
  and the list refetches once the last toggle settles.
- Sidebar, bottom nav and header share one set of sections
  (Inicio / Listas / Ajustes); the bottom nav drops the duplicated
  "Cuenta" link and the header drops the non-functional search button.
- Settings: the name is saved through BetterAuth, the email is shown
  read-only, and the fake notification switches are replaced by a real
  theme picker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 12:52:08 -03:00
Jose Selesan
370e3022c8 feat: make the web app installable and rework the app shell
Add a Vite PWA (`vite-plugin-pwa`): manifest, icons and an `autoUpdate`
service worker, plus an install prompt so the app can be added to the
home screen.

Rework the shell for mobile: mount the bottom navigation bar and the
install prompt in the authenticated layout, hide the sidebar trigger
below `md`, and add a sign-out card to Settings. Drop the placeholder
Tasks page together with its unused shadcn table and the
`@tanstack/react-table` dependency, and remove the in-app router/query
dev tools.
2026-10-16 15:44:20 -03:00
Jose Selesan
6aa86a3b68 feat: add collaborative shopping lists with items and invitations
Some checks failed
CI / Verify (push) Has been cancelled
API: lists, items and invitations modules (list, create, get, update,
set-primary, items create/list, invitation create/accept/list-pending),
BetterAuth session helper, list membership, mailer and Prisma schema plus
migrations.

Web: lists overview, list detail (items) and list management (settings)
views, item and invitation forms/hooks, sign-up and invitation accept pages.

Shared: shopping list DTOs.

Tooling: ignore the generated TanStack Router cache (apps/web/.tanstack).
2026-10-16 10:12:11 -03:00
Jose Selesan
bd519e7082 chore: replace oxlint with biome for linting 2026-10-15 15:30:22 -03:00
Jose Selesan
2b1d2152c4 chore: scaffold turbo monorepo with hono api and react admin web 2026-10-15 15:24:34 -03:00