Commit graph

17 commits

Author SHA1 Message Date
Tiago Yamamoto
d3f1d0e36d docs: add b2b gaps roadmap and test matrix 2026-01-01 15:20:48 -03:00
Tiago Yamamoto
eb5c59c1e2 fix(backoffice): repair build errors, update prisma schema and services 2025-12-29 19:07:31 -03:00
Tiago Yamamoto
d435bbe057 fix: Fix fraud.service.ts return type 2025-12-27 10:09:18 -03:00
Tiago Yamamoto
36d6fa4ae0 feat: Implement Phase 4 features
Backend (Go):
- FCM Push Notifications (fcm.go, push_handler.go)
- Credit Lines (credit_line.go, credit_handler.go)
- Payment Config (admin_handler.go, seller_payment_handler.go)
- Team Management (team_handler.go)

Backoffice (NestJS):
- Dashboard module (KPIs, revenue charts)
- Audit module (tracking changes)
- Disputes module (CRUD, resolution)
- Reports module (CSV export)
- Performance module (seller scores)
- Fraud module (detection, alerts)

Frontend (Marketplace):
- ThemeContext for Dark Mode
- HelpCenter page with FAQ
- OrderDetails with timeline
- Team management page
- Persistent cart (Zustand)
2025-12-27 10:07:05 -03:00
Tiago Yamamoto
b41f1f6a52 feat(phase2): implement Trust, Safety & Financials
- Backend: Add Financial logic (Ledger, Withdrawals) and KYC Endpoints
- Backoffice: Update Prisma Schema and add KYC Review Module
- Frontend: Add Company Profile, Wallet View, and Reviews/Ratings UI
- Frontend: Enhance Admin Companies Page for KYC Review Queue
2025-12-27 01:56:32 -03:00
Tiago Yamamoto
6b23d05383 refactor(backoffice): remove redundant routes and add settings module for credentials 2025-12-27 01:10:25 -03:00
Tiago Yamamoto
7b3b909296 feat(backoffice): add root route with api info and correct swagger link 2025-12-27 01:03:01 -03:00
Tiago Yamamoto
ee26512f5a fix(backoffice): add debian-openssl-3.0.x binary target for prisma 2025-12-27 00:59:25 -03:00
Tiago Yamamoto
93360c61ca fix: switch backoffice builder to debian (bookworm) to match distroless runtime (fix bcrypt musl/glibc error) 2025-12-27 00:50:55 -03:00
Tiago Yamamoto
ed1b3c2e53 fix: robust Dockerfile for Backoffice with pnpm prod-deps 2025-12-27 00:45:33 -03:00
Tiago Yamamoto
64d13581df feat: enable CORS in backoffice with configurable origins 2025-12-27 00:42:57 -03:00
Tiago Yamamoto
93da628362 chore: optimize Dockerfiles (distroless) and align JWT config
- Optimized Backoffice Dockerfile: node:22-alpine -> gcr.io/distroless/nodejs22-debian12
- Optimized BFF Dockerfile: python:3.12-slim -> gcr.io/distroless/python3-debian12
- Updated Backoffice Auth to use JWT_SECRET for local verification
- Updated .env.example with correct env vars
2025-12-27 00:36:26 -03:00
Tiago Yamamoto
8f1e893142 feat: major implementation - seeder, payments, docs
Seeder API:
- 110 pharmacies across 5 cities (Goiânia 72, Anápolis 22, Nerópolis 10, Senador Canedo 5, Aparecida 1)
- 3-300 products per pharmacy
- Dynamic city/state in company records

Payment Gateways:
- stripe.go: Stripe integration with PaymentIntent
- mock.go: Mock gateway with auto-approve for testing
- PaymentResult and RefundResult domain types

Documentation:
- docs/BACKEND.md: Architecture, invisible fee, endpoints
- docs/SEEDER_API.md: City distribution, product counts
- docs/MARKETPLACE.md: Frontend structure, stores, utils
- docs/BACKOFFICE.md: Admin features, encrypted settings
2025-12-26 23:39:49 -03:00
Tiago Yamamoto
851dd4f265 chore: optimize Dockerfiles with multi-stage builds and caching
- Backend (Go): Use scratch image (~5MB), add build cache for modules
- Backoffice (NestJS): Add pnpm cache, alpine image, fix Prisma client copy
- BFF (Python): Add multi-stage with virtualenv, pip cache, optimized env vars
- All: Add non-root users for security
2025-12-18 17:28:52 -03:00
Tiago Yamamoto
0e5c93ec6c feat: add automated db tests and update env examples 2025-12-18 08:13:19 -03:00
Tiago Yamamoto
fc4e3df02d feat: implement CORS and externalize payments config 2025-12-18 08:07:45 -03:00
Tiago Yamamoto
42f72f5f43 docs: adiciona documentação completa do projeto SaveInMed
- Cria README.md na raiz com visão global e diagrama de arquitetura
- Adiciona/atualiza README.md em todos os componentes:
  - backend (API Go)
  - backoffice (NestJS)
  - marketplace (React/Vite)
  - saveinmed-bff (Python/FastAPI)
  - saveinmed-frontend (Next.js)
  - website (Fresh/Deno)
- Atualiza .gitignore em todos os componentes com regras abrangentes
- Cria .gitignore na raiz do projeto
- Renomeia pastas para melhor organização:
  - backend-go → backend
  - backend-nest → backoffice
  - marketplace-front → marketplace
- Documenta arquitetura, tecnologias, setup e fluxo de desenvolvimento
2025-12-17 17:07:30 -03:00