Commit Graph
49 Commits
Author SHA1 Message Date
Evandro Fonseca Junior fc7243e5f8 Merge pull request #1 from evandrodevbr/codex/review-2026-09-30-049051
fix: normalize nutrition units and retain zero-valued nutrients
2026-09-30 23:02:14 -03:00
Evandro Fonseca Junior fa07ba8910 fix: normalize nutrition units and retain zero-valued nutrients 2026-09-30 17:13:27 -03:00
Evandro Fonseca Junior f037001339 docs: reescrever README com versões reais e setup verificado
- versões corrigidas conforme package.json e lockfile: Next.js 15 (era 14.2.18),
  React 19 (era 18.3.1), Prisma 6 (era 5.22.0), TypeScript 5.9, Tailwind 3.4.19
- badge de issues, badge de feature e links de clone deixam de apontar para o
  repositório antigo lista-compras
- setup testado na prática: "pnpm db:push" no lugar de "pnpm db:migrate" (o
  repositório não tem migrations, o comando não criava tabela alguma) e
  arquivo ".env" no lugar de ".env.local" (a CLI do Prisma só lê .env)
- README reescrito no padrão do perfil: sobre, como funciona, stack, requisitos,
  início rápido, uso, API com os parâmetros que existem de fato, produção,
  deploy, estrutura, verificação medida e limitações conhecidas
- removidas alegações não sustentadas: 218 produtos no cache (são 232),
  First Load JS de ~87 kB (medido: 102 kB), disponibilidade 24/7 e "12 opções
  de ordenação" como se todas funcionassem
- descreve o estado real: sem testes automatizados e sem CI, busca textual
  dependente do endpoint legado do Open Food Facts (503 na verificação),
  filtros avançados que não chegam à API e ordenação que cobre quatro critérios
2026-09-14 08:26:26 -03:00
Evandro Fonseca Junior 7d4efce025 chore: remover arquivos acidentais do repositório
- null: continha apenas uma mensagem de erro do PowerShell sobre um arquivo
  de configuração local inexistente
- design-handoff.tar.gz: continha apenas o texto "not found." (8 bytes)

Nenhum dos dois é referenciado no código, na documentação ou nos scripts de
build e deploy.
2026-09-14 08:26:26 -03:00
Evandro Fonseca Junior 15ddbfbde9 fix(setup): corrigir nome do pacote e adicionar .env.example
- package.json: name passa de "resenhaitapoa2" para "nutriscan"
- .env.example: arquivo citado no README mas ausente do repositório.
  Documenta DATABASE_URL (obrigatória para o Prisma), o modo cache-only e a
  origem do proxy de analytics
2026-09-14 08:26:22 -03:00
evandrodevbr ef0e6d4eca chore: ignore local environment files 2026-07-18 20:11:47 -03:00
evandrodevbr f71cd167b3 feat: complete NutriScan redesign 2026-07-16 16:31:50 -03:00
evandrodevbr c1fe4af997 fix: align Prisma SQLite deployment 2026-07-16 15:10:39 -03:00
evandrodevbr a0d640a2c8 fix: pin pnpm for Node 18 deployments 2026-07-16 15:01:19 -03:00
Evandro Fonseca Junior 50ffed4fee fix(error tracking): streamline Rybbit integration by removing unnecessary type assertions
- Updated ErrorBoundary and ErrorTracking components to directly access the Rybbit object without type assertions.
- Enhanced error tracking by ensuring stack traces and component stacks are only included if available.
- Improved the HeroSection component by replacing the standard img tag with Next.js Image component for better performance and optimization.
2026-01-20 21:36:20 -03:00
Evandro Fonseca Junior 4e14cc79ff fix(analytics): update site ID for Rybbit Analytics script
- Changed data-site-id from "undefined" to "2" in the analytics script for proper tracking functionality.
2026-01-20 20:18:19 -03:00
Evandro Fonseca Junior 0eeb63bbde feat(analytics): integrate Rybbit Analytics with error tracking and session replay
- Added rewrites in next.config.mjs for Rybbit Analytics to bypass adblockers.
- Implemented ErrorBoundary and ErrorTracking components in layout.tsx for enhanced error handling.
- Included a script for analytics tracking in the root layout.
- Updated NutritionGrid in product page to handle potential undefined nutrition data.
2026-01-20 20:13:29 -03:00
Evandro Fonseca Junior c99c82c837 refactor(product page, api): improve error handling and enhance type safety
- Refactored error handling in the product page to simplify catch block.
- Updated type definitions in openFoodFactsApi for better type safety.
- Introduced utility functions for search type detection and barcode validation.
2026-01-20 12:10:56 -03:00
Evandro Fonseca Junior f98c648311 feat(footer, header, landing): enhance UI components and improve navigation
- Updated Footer component with new links and dynamic year display.
- Refactored Header component to improve mobile navigation and theme toggling.
- Enhanced DonationSection and Features components with improved layout and animations.
- Updated HowItWorks and Impact sections for better user engagement and clarity.
- Improved product page layout and error handling in API interactions.
- General UI refinements across various components for a cohesive user experience.
2026-01-12 19:55:50 -03:00
Evandro Fonseca Junior b0f95704e1 chore(dependencies): update Next.js and ESLint configuration
- Upgraded Next.js from 14.2.18 to 14.2.35 for improved performance and features.
- Updated ESLint configuration package from 14.2.18 to 14.2.35 to align with Next.js version.
- Added pnpm overrides for glob, js-yaml, and brace-expansion to ensure compatibility with newer versions.
2026-01-05 00:16:41 -03:00
Evandro Fonseca Junior 4afec0ddd8 refactor: update header links from anchors to paths
Changed href attributes in header.tsx from '#sobre' to '/sobre' for consistent routing and improved navigation.
2025-10-11 15:47:39 -03:00
Evandro Fonseca Junior d9b99c9340 chore(workspace): add root package to workspace and update built dependencies
Updated pnpm-workspace.yaml to include the root directory in packages and refined onlyBuiltDependencies with consistent double quotes and added prisma for proper build handling.
2025-10-09 08:30:03 -03:00
Evandro Fonseca Junior 68ed76a563 docs(README): Translate to Portuguese and enhance with project details
- Added NutriScan logo and updated badge versions for accuracy
- Translated entire README from English to Portuguese for localization
- Introduced new sections: mission, differentials, statistics, and visual demonstration
- Restructured table of contents and expanded project description for better user engagement and clarity
2025-10-09 08:26:15 -03:00
Evandro Fonseca Junior 888dee8b62 chore: update product cache metadata
Updated lastUpdated timestamps and incremented updateCount for multiple product entries in products-cache.json to reflect recent synchronization or refresh.
2025-10-09 07:32:48 -03:00
Evandro Fonseca Junior bfb58ef16e feat(search): implement paginated API fetching for large page sizes
- Removed upper limit on page_size validation to support requests >100
- Added automatic pagination logic to fetch from Open Food Facts API in chunks of 1000
- Accumulates products across multiple API pages until desired count is reached
- Updated error messages and product data fields for consistency
2025-10-09 07:16:26 -03:00
Evandro Fonseca Junior c173fec668 feat(api): implement product caching mechanism
- Add NODE_ENV=production to .env for environment configuration
- Enhance product API route with JSON cache manager for local storage and retrieval
- Introduce cache-only mode and detailed logging for better performance and offline support
- Update UI to display cache status and storage statistics
2025-10-09 04:30:46 -03:00
Evandro Fonseca Junior bddf19e5c8 feat(layout): Add floating donate button to root layout for easy user donations 2025-10-09 02:26:18 -03:00
Evandro Fonseca Junior a80da6e12d refactor: rebrand project to NutriScan with personal use license
Updated LICENSE from MIT to a restrictive personal use license, limiting usage to local, non-commercial purposes only. Revamped README.md to reflect the new project name "NutriScan", integrated Open Food Facts API badge, and shifted focus from shopping list management to a nutrition scanning application, enhancing project identity and compliance.
2025-10-09 02:09:54 -03:00
Evandro Fonseca Junior e4ed666074 feat(results-page): enhance search with caching, pagination, and UI tweaks
- Add dynamic rendering and Node.js runtime config to location API for better performance
- Improve ProductCardSkeleton with dark mode styling for consistent theming
- Simplify Hero search placeholder to focus on product name input
- Integrate caching, pagination, and cache clearing in results page for optimized search experience and user control
2025-10-09 01:53:42 -03:00
Evandro Fonseca Junior 166abeb64e refactor(CardList): replace ProductCard with ListaProductCard
Updated CardList component to use ListaProductCard instead of ProductCard for rendering products, improving component specificity for list views. Also adjusted indentation for consistency.
2025-10-09 01:28:33 -03:00
Evandro Fonseca Junior 9a4e4c762e feat(ui): enhance footer with NutriScan branding and fix database path
- Redesigned Footer.tsx with comprehensive layout including brand section, navigation links, social media icons, and contact info to improve user engagement and brand visibility
- Updated DATABASE_URL in .env to correct Prisma database path for proper configuration and connectivity
- Updated dependencies to support new UI components and ensure compatibility with enhanced features
2025-10-09 00:14:30 -03:00
Evandro Fonseca Junior 8d6cbeb0bb Update package.json 2024-12-09 13:26:41 -03:00
Evandro dc08bd180c fix: 2024-11-28 13:30:34 -03:00
Evandro 7cff099ba3 fix: 2024-11-28 13:23:01 -03:00
Evandro 7bd2517506 fix: 2024-11-28 13:21:55 -03:00
Evandro 1313c7450e fix: 2024-11-28 13:20:52 -03:00
Evandro 0045f376ed fix: 2024-11-28 13:20:07 -03:00
Evandro 9dc3de8b2f fix: 2024-11-28 13:19:22 -03:00
Evandro 34d1a0a25a fix: 2024-11-28 13:18:38 -03:00
Evandro 3288ae37df fix: 2024-11-28 13:18:02 -03:00
Evandro 6c65d7f044 feat: 2024-11-28 13:17:14 -03:00
Evandro 3341f538ac fix: 2024-11-28 13:15:49 -03:00
Evandro 44efca1c10 fix: 2024-11-28 13:11:28 -03:00
Evandro f25017a4da fix 2024-11-28 13:09:02 -03:00
Evandro 14762fa43c Merge branch 'main' of https://github.com/evandrodevbr/lista-compras 2024-11-28 13:06:55 -03:00
Evandro 6a68b533b0 fix: 2024-11-28 13:06:51 -03:00
Evandro Fonseca Junior 310f5a4af1 Update README.md 2024-11-28 13:01:17 -03:00
Evandro 14d1e6e810 Merge branch 'main' of https://github.com/evandrodevbr/lista-compras 2024-11-28 13:00:41 -03:00
Evandro b3eceeb78d feat: 🐛 2024-11-28 13:00:26 -03:00
Evandro Fonseca Junior 71faf52f92 Update README.md 2024-11-28 12:44:27 -03:00
Evandro Fonseca Junior 259cedbe39 Update README.md 2024-11-28 12:40:53 -03:00
Evandro 1dd2dffed8 feat: merge initial project structure 2024-11-28 12:40:04 -03:00
Evandro e775435c9f feat: 🚀 2024-11-28 12:37:47 -03:00
Evandro Fonseca Junior b8f4eefdef Initial commit 2024-11-28 12:07:35 -03:00