Tiago Yamamoto
|
b64f7de160
|
Merge pull request #58 from rede5/codex/increase-backend-test-coverage-by-25%
Increase coverage for product CSV import tests
|
2026-01-02 09:24:30 -03:00 |
|
Tiago Yamamoto
|
4a18f76bd1
|
test: cover product import
|
2026-01-02 09:23:18 -03:00 |
|
Tiago Yamamoto
|
bd56db3cab
|
Merge pull request #57 from rede5/codex/aumentar-a-cobertura-de-testes-em-12-por-cento
Add financial service unit tests and extend MockRepository for financial data
|
2026-01-02 09:17:39 -03:00 |
|
Tiago Yamamoto
|
8eb9126bcc
|
Add financial service unit tests
|
2026-01-02 09:17:17 -03:00 |
|
Tiago Yamamoto
|
80225e814f
|
Merge pull request #56 from rede5/codex/aumentar-cobertura-de-testes-em-40%
test: expand backend coverage for notifications and credit line
|
2026-01-01 16:02:02 -03:00 |
|
Tiago Yamamoto
|
9fb4f3e12e
|
test: expand backend coverage
|
2026-01-01 16:01:45 -03:00 |
|
Tiago Yamamoto
|
38b3342425
|
Merge pull request #55 from rede5/codex/increase-test-coverage-by-20%-in-backend-and-14%-in-frontend
Add tests for backend middleware and marketplace product cards
|
2026-01-01 15:49:37 -03:00 |
|
Tiago Yamamoto
|
f913f6b3d4
|
Add backend middleware and frontend card tests
|
2026-01-01 15:49:17 -03:00 |
|
Tiago Yamamoto
|
f8148c428e
|
Merge pull request #54 from rede5/codex/add-10-percent-more-tests
Add tests for config helper functions
|
2026-01-01 15:43:50 -03:00 |
|
Tiago Yamamoto
|
8588d07388
|
Add config helper tests
|
2026-01-01 15:43:33 -03:00 |
|
Tiago Yamamoto
|
6ed08fbbe7
|
Merge pull request #53 from rede5/codex/add-tests-to-increase-coverage-by-13-percent
Add unit tests for Auth and Theme contexts
|
2026-01-01 15:40:15 -03:00 |
|
Tiago Yamamoto
|
b8599b4d08
|
Add tests for auth and theme contexts
|
2026-01-01 15:39:53 -03:00 |
|
Tiago Yamamoto
|
cb9ccc9792
|
Merge pull request #52 from rede5/codex/find-task-and-roadmap-documentation
docs: add B2B gaps, roadmap, and test matrix
|
2026-01-01 15:22:35 -03:00 |
|
Tiago Yamamoto
|
d3f1d0e36d
|
docs: add b2b gaps roadmap and test matrix
|
2026-01-01 15:20:48 -03:00 |
|
Tiago Yamamoto
|
a51dfd14af
|
Merge pull request #51 from rede5/codex/amplify-tests-by-28-percent
Add backend shipping/distance tests and marketplace financialService tests
|
2026-01-01 15:07:32 -03:00 |
|
Tiago Yamamoto
|
c48666bf60
|
Add backend and frontend test coverage
|
2026-01-01 15:06:55 -03:00 |
|
Tiago Yamamoto
|
2ff6034e76
|
Merge pull request #50 from rede5/codex/ampliar-testes-em-10-por-cento
test: expand config package tests (BuyerFeeRate, BackendHost, SwaggerSchemes)
|
2026-01-01 11:46:43 -03:00 |
|
Tiago Yamamoto
|
f7967490e7
|
test: expand config coverage
|
2026-01-01 11:46:06 -03:00 |
|
Tiago Yamamoto
|
93c6853d08
|
Update Dockerfiles and add website Dockerfile
|
2026-01-01 10:58:10 -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
|
5c59e7b5a1
|
docs: add DEVOPS guide and optimize Dockerfiles
- Add DEVOPS.md with complete deployment guide for apolo server
- Add DATABASE.md (unified schema documentation)
- Fix backend Dockerfile: Go 1.24 -> 1.23 (current stable)
- Add marketplace Dockerfile with pnpm + static-web-server
- Migrate marketplace from npm to pnpm
- Remove duplicate database-schema.md and DATABASE_SCHEMA.md
|
2025-12-29 17:00:42 -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
|
bbe6ec447e
|
feat(backend): implement financial features (KYC, ledger, withdrawals)
|
2025-12-27 01:34:29 -03:00 |
|
Tiago Yamamoto
|
6de471ce3e
|
feat(backend): implement notification system (logger mock)
|
2025-12-27 01:24:43 -03:00 |
|
Tiago Yamamoto
|
b63242b8fd
|
feat(backend): implement stripe and asaas webhook handlers
|
2025-12-27 01:21:25 -03:00 |
|
Tiago Yamamoto
|
132fef816c
|
feat(backend): implement order state machine with validation
|
2025-12-27 01:18:00 -03:00 |
|
Tiago Yamamoto
|
89036d7b39
|
docs: add detailed mermaid diagrams for db, backend and marketplace
|
2025-12-27 01:13:11 -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
|
94675c2169
|
docs: update architecture diagram with Asaas, Stripe and Backoffice connections
|
2025-12-27 01:05:56 -03:00 |
|
Tiago Yamamoto
|
95131d8c51
|
fix(docs): close mermaid code block properly
|
2025-12-27 01:03:44 -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
|
469c473c1e
|
fix(docs): restore missing header for architecture section
|
2025-12-27 01:00:37 -03:00 |
|
Tiago Yamamoto
|
1bc89a991c
|
fix(docs): restore missing graph TD line in architecture diagram
|
2025-12-27 01:00:13 -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
|
53385670a3
|
feat: consolidate admin/seller dashboard, remove bff, fix backoffice docker, update docs
|
2025-12-27 00:58:06 -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
|
00c18ee704
|
docs: remove references to BFF service
|
2025-12-27 00:50:06 -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
|
70d89d1c28
|
docs: update BACKOFFICE.md with distroless and jwt details
|
2025-12-27 00:36:49 -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
|
d1d2f3f338
|
chore: remove unused parseShippingMethodType function
|
2025-12-27 00:31:54 -03:00 |
|
Tiago Yamamoto
|
7105549faf
|
test: add handler tests (+9.6% coverage: 36.9% → 46.5%)
Added 26 new handler tests:
- SearchProducts: MissingLatLng, InvalidLat/Lng, Success, WithFilters
- Auth: RegisterCustomer, RegisterTenant, ForgotPassword, ResetPassword, VerifyEmail, Logout
- Pagination: ListProducts, ListCompanies, ListOrders
- Shipping: CalculateShipping, GetShippingSettings
- Reviews: CreateReview, GetCompanyRating
- Dashboard: GetSellerDashboard
- Payments: CreatePaymentPreference, HandlePaymentWebhook
- Shipments: CreateShipment, GetShipmentByOrderID
Handler coverage: 36.9% → 46.5% (+9.6%)
Seeder already has 'Aparecida de Goiânia' (verified)
|
2025-12-27 00:29:03 -03:00 |
|
Tiago Yamamoto
|
ebd6d903ec
|
test: add comprehensive Asaas gateway tests (+45% payments coverage)
Added 17 new tests for Asaas payment gateway:
- TestNewAsaasGateway, TestAsaasBaseURL_Sandbox/Production
- TestAsaasCreatePreference, TestAsaasCreatePixPayment
- TestAsaasCreateBoletoPayment, TestAsaasConfirmPayment
- TestAsaasRefundPayment, TestAsaasCreateSubaccount
- Context cancellation tests for all methods
Coverage results:
- Payments: 50% → 95.3% (+45%)
- Middleware: 90.8%
- Config: 85.7%
- Server: 69.1%
- Handler: 36.9%
|
2025-12-27 00:22:52 -03:00 |
|
Tiago Yamamoto
|
3c49df55e4
|
feat: complete payment gateway implementation (Asaas, Stripe, MercadoPago)
Payment Gateways:
- asaas.go: Pix (QR code), Boleto, Credit Card with split
- Seller subaccount creation for split payments
- 6 new domain types: PixPaymentResult, BoletoPaymentResult, SellerPaymentAccount, Customer, PaymentGatewayConfig
Documentation:
- docs/PAYMENT_GATEWAYS.md: Complete comparison (MercadoPago vs Stripe vs Asaas)
- Admin routes for gateway config
- Seller onboarding routes
- Environment variables reference
Coverage: 50% payments
|
2025-12-27 00:11:48 -03:00 |
|
Tiago Yamamoto
|
c53cd5a4dd
|
test: add Stripe and Mock gateway tests (+79% payments coverage)
Added 12 new tests for payment gateways:
- TestNewStripeGateway, TestStripeCreatePreference, TestStripeCreatePaymentIntent
- TestNewMockGateway, TestMockCreatePreference, TestMockConfirmPayment, TestMockRefundPayment
- Context cancellation tests for all gateways
Coverage increases:
- Payments: 11.8% → 91.4% (+79.6%)
- Handler: 32.6% → 36.9%
- Middleware: 90.8%
- Config: 85.7%
- Server: 69.1%
Frontend: 95 tests passing
|
2025-12-26 23:42:38 -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
|
12e2503244
|
feat: implement invisible 12% buyer fee
Business model:
- Seller registers R$10,00 → Seller sees R$10,00 → Seller receives R$10,00
- Buyer searches → sees R$11,20 (+12%) → pays R$11,20
- Marketplace keeps R$1,20 (12%)
Changes:
- config.go: Add BuyerFeeRate (default 0.12)
- handler.go: Add buyerFeeRate field to Handler struct
- product_handler.go: SearchProducts inflates prices for buyers
- server.go: Pass cfg.BuyerFeeRate to handler.New()
- handler_test.go: Fix 3 New() calls with fee rate
Env var: BUYER_FEE_RATE (default: 0.12)
|
2025-12-26 23:23:18 -03:00 |
|