Meu Cesto

Versão em execução · v1.0.26

Novidades

v1.0.26

Changed

  • Changed synchronized discount fields to calculate on blur instead of every keystroke, and grouped discount inputs in a collapsible discount section.

Fixed

  • Fixed product price forms using raw decimal values in Portuguese inputs, so discount calculations work consistently in the product catalogue and basket.

v1.0.25

Added

  • Added parent pricing units for catalogue units so small package units such as grams and millilitres can display product prices per kilogram or litre.

Changed

  • Updated the default unit seed data to map `g` to `kg` and `ml` to `l`, and updated product list price-per-unit calculations to use those parent units.

v1.0.24

Added

  • Added synchronized discount inputs for current price, original price, discount amount, and discount percentage in basket item and product price forms.

v1.0.23

Changed

  • Made receipt import review more compact with click-to-edit line fields, centered product dialogs, and an explicit product matching flow for linking OCR lines to existing catalogue products.

v1.0.22

Changed

  • Split receipt uploads into explicit camera and image-library choices when `RECEIPT_ALLOW_LIBRARY_UPLOADS` is enabled, while keeping camera-only capture as the default deployment behavior.

v1.0.21

Added

  • Added an optional per-line product workflow during receipt import review, letting users create catalogue product details from an extracted line while still keeping simple history-only lines possible.

v1.0.20

Added

  • Added `RECEIPT_ALLOW_LIBRARY_UPLOADS` so deployments can opt into choosing existing receipt images instead of forcing camera capture only.

v1.0.19

Changed

  • Reworked receipt-import review so extracted lines can be selected with checkboxes, bulk selected or deselected, and edited for name, quantity, unit price, total, and barcode before saving.

v1.0.18

Changed

  • Moved the AI extraction and review controls above the receipt preview for pending receipt imports so first-time imports show the next action immediately.

v1.0.17

Added

  • Added a safe delete action for empty receipt-import history entries, removing associated private receipt images before deleting the empty import.

v1.0.16

Changed

  • Clarified receipt-first history imports so uploaded receipts are described as pending extraction and unmatched extracted lines are shown as new receipt lines instead of missing basket matches.

v1.0.15

Changed

  • Improved the AI receipt review layout so extracted items use readable review cards, clearer keep/ignore actions, progress feedback, and wider receipt-import space on desktop.

v1.0.14

Fixed

  • Increased the default AI receipt extraction timeout from 20 to 90 seconds so full receipt images can finish processing before the request is classified as uncertain.
  • Added an explicit Vercel duration allowance for receipt extraction and clarified that timed-out receipts remain saved and can be retried.

Added

  • Added the configurable `AI_PROVIDER_TIMEOUT_MS` environment setting for hosted AI processing.

v1.0.13

Added

  • Added a receipt-first history flow for purchases made outside the app, with direct camera/file upload from the history page.
  • Added reviewed AI import for receipt purchases so accepted lines, detected prices, quantities, purchase date, and known store are saved to history only after user confirmation.

Changed

  • Marked receipt-created history entries separately so normal finalized baskets remain immutable while controlled receipt imports can be completed once.

v1.0.12

Fixed

  • Improved the mobile bottom navigation so inactive items show icons only and the active page keeps its text label.

v1.0.11

Fixed

  • Refreshed and remounted the product catalogue after adding a product so newly created products appear without a manual page refresh.

v1.0.10

Fixed

  • Kept new brands created from the shopping cart product detail flow unverified for later catalogue review, even when the shopper is an admin or moderator.

v1.0.9

Fixed

  • Fixed create-product-and-add-to-cart by disambiguating cart item RPC parameters from table columns.
  • Kept product detail modal edits stable while submitting, closed the modal after successful add, and cleared the cart form only after the item is actually added.
  • Added server-side diagnostics for shopping mutations so hosted RPC failures include the failing function and database details in logs.

v1.0.8

Fixed

  • Fixed shopping list item add, edit, and remove RPCs by disambiguating list and item parameters from table columns in Supabase functions.
  • Added server-side diagnostics for list mutations so hosted RPC failures include the failing function and database details in logs.

v1.0.7

Added

  • Added camera barcode scanning and barcode lookup to shopping lists so scanned products can populate list item names.

Fixed

  • Improved list item adding feedback by showing pending state, resetting the form after success, and rotating mutation IDs between successful submissions.

v1.0.6

Added

  • Added in-scanner settings for fast or precise barcode reading, browser-native detection, and high-resolution camera capture, with preferences saved per browser.

Fixed

  • Improved real-package barcode recognition by running supported browser-native barcode detection alongside the ZXing fallback in precise mode.

v1.0.5

Fixed

  • Fixed camera scanning on desktop and Android by avoiding ZXing's broken `TRY_HARDER` canvas rotation path while retaining focused high-resolution EAN and UPC recognition.

v1.0.4

Fixed

  • Improved camera barcode recognition with retail format prioritization, harder scanning, higher-resolution rear-camera capture, continuous focus when supported, optional flashlight control, visible scanning guidance, translated camera errors, and reliable stream cleanup.

v1.0.3

Added

  • Added an idempotent reference data import script for common Portuguese supermarket stores, grocery categories and subcategories, and common supermarket brands.

v1.0.2

Fixed

  • Improved hosted signup diagnostics by mapping duplicate-email and Supabase Auth hook failures to explicit translated errors and logging server-side Supabase signup details.
  • Added production-safe diagnostics for protected profile recovery and shopping page RPC failures.
  • Added production-safe diagnostics for product and admin page RPC failures and response parsing.
  • Fixed Next.js server action modules so initial client action state is exported from a non-server module.
  • Fixed hosted idempotency receipt handling by removing ambiguous `mutation_id` references in `begin_mutation`.
  • Fixed hosted product search and admin invite responses by qualifying the trigram operator and returning boolean invite ownership for bootstrap rows.

v1.0.1

Added

  • Added persisted edit and removal controls for offline-created cart items, including translated pending, deletion, conflict, and retry states.
  • Added queue tests covering dependency ordering, temporary-to-server ID mapping, and authoritative revision propagation across insert, update, and delete replay.

Fixed

  • Fixed offline cart update and delete replay so dependent changes wait for local inserts, retain strict ordering, reuse mapped server revisions, reject changes behind failed or deleted dependencies, keep the optimistic row attached to the active failure, and make reviewed expired mutations retryable.
  • Stabilized the six-page production accessibility scan with a dedicated timeout for parallel desktop and mobile browser runs.

v1.0.0

Added

  • Added the Portuguese-first Meu Cesto collaborative shopping application with English support.
  • Added invite-only authentication, role administration, password recovery, and profile privacy controls.
  • Added active carts, planning lists, product catalog, store price history, discounts, barcode lookup, and atomic checkout.
  • Added owner-controlled sharing by email and expiring token, private Realtime invalidation, and authorized combined history.
  • Added private receipt storage, optional Anthropic and OpenAI extraction proposals, data export, and account deletion retention workflows.
  • Added a replay-safe offline mutation queue, static-only PWA caching, accessibility support, and responsive mobile/desktop navigation.
  • Added a canonical Supabase schema, synchronized migration, generated database types, security tests, and hosted deployment tooling.
  • Added deterministic application version generation, public changelog, release verification, and exact dependency/runtime pins.

Security

  • Added hardened security-definer RPCs, restrictive grants and row-level security, hashed join tokens, idempotent mutations, persistent rate limits, and private receipt access.
  • Added strict trusted-origin, environment, external-response, upload, money, and Realtime payload validation.
Voltar ao início de sessão