Commit graph

240 commits

Author SHA1 Message Date
Tiago Yamamoto
406d7b9949 Add profile link and hover dropdown 2025-12-23 08:25:50 -03:00
Tiago Yamamoto
58da0ebcf4
Merge pull request #38 from rede5/codex/criar-dropdown-solicitado
Add profile dropdown to marketplace header
2025-12-23 08:13:53 -03:00
Tiago Yamamoto
20980d8a80 Add profile dropdown to marketplace header 2025-12-23 08:12:54 -03:00
Tiago Yamamoto
a5f386b38e
Merge pull request #37 from rede5/codex/add-profile-dropdown-to-top-right
Add profile dropdown to marketplace header
2025-12-23 08:06:16 -03:00
Tiago Yamamoto
95913578e9 Add profile dropdown to marketplace header 2025-12-23 08:05:51 -03:00
Tiago Yamamoto
6719ec6298
Merge pull request #36 from rede5/codex/fix-errors-in-background.js
Gate marketplace logs behind logger utility
2025-12-22 17:52:31 -03:00
Tiago Yamamoto
54d0de2844 Gate marketplace logs behind logger 2025-12-22 17:52:05 -03:00
Tiago Yamamoto
64f72db26f
Merge pull request #35 from rede5/codex/add-user-and-company-profile-dropdown
Header: add notification bell, move cart left and profile/company links; add anchors in Profile page
2025-12-22 17:39:55 -03:00
Tiago Yamamoto
bd63f39d88 Atualiza header com perfil e notificações 2025-12-22 17:39:42 -03:00
Tiago Yamamoto
6517839c9b
Merge pull request #34 from rede5/codex/fix-405-method-not-allowed-error
Use PATCH for company update to match API route
2025-12-22 17:32:32 -03:00
Tiago Yamamoto
31df281cde Fix company edit request method 2025-12-22 17:32:18 -03:00
Tiago Yamamoto
6477eeb756 fix(marketplace): handle paginated API response in Orders and Inventory pages 2025-12-22 16:39:30 -03:00
Tiago Yamamoto
965cedca05 fix(marketplace): add centralized formatCurrency/formatCents utilities to prevent toFixed errors 2025-12-22 16:31:39 -03:00
Tiago Yamamoto
b7ed676153
Merge pull request #33 from rede5/codex/fix-typeerror-in-api-response-handling
Fix dashboard data guards and numeric parsing
2025-12-22 16:06:56 -03:00
Tiago Yamamoto
79bc2e2275 Fix dashboard data guards 2025-12-22 16:06:40 -03:00
Tiago Yamamoto
a873d29160
Merge pull request #32 from rede5/codex/fix-typeerror-in-login-flow
Fix catalog price formatting
2025-12-22 16:01:10 -03:00
Tiago Yamamoto
adaf2fb49c Fix catalog price formatting 2025-12-22 16:00:52 -03:00
Tiago Yamamoto
abf636ab65 fix(backend): handle NULL shipping fields in orders queries with COALESCE 2025-12-22 15:50:02 -03:00
Tiago Yamamoto
5c004422f2 feat(marketplace): fix R$ NaN and add owner navigation links 2025-12-22 15:42:58 -03:00
Tiago Yamamoto
9fc9b211bf fix(backend): add db tags to TopProduct struct for sqlx mapping 2025-12-22 15:38:56 -03:00
Tiago Yamamoto
6df111abfa chore(backend): add lib/pq dependency for PostgreSQL array support 2025-12-22 15:32:47 -03:00
Tiago Yamamoto
2a602ab09e fix(backend): use pq.Array for PostgreSQL array syntax in dashboard queries 2025-12-22 15:27:30 -03:00
Tiago Yamamoto
940e6561f4 feat(marketplace): add password visibility toggle with eye icon on login page 2025-12-22 15:10:29 -03:00
Tiago Yamamoto
9e0601179e fix(marketplace): install dependencies and resolve vite/client type error 2025-12-22 14:55:12 -03:00
Tiago Yamamoto
e31009fe2b Update seeder env example 2025-12-22 12:05:25 -03:00
Tiago Yamamoto
09b446db89 Add open CORS handling to seeder API 2025-12-22 11:38:52 -03:00
Tiago Yamamoto
55d727f176
Merge pull request #31 from rede5/codex/refactor-api-seeder-for-environment-support
seeder-api: add .env.example, embedded Swagger and optimized Dockerfile
2025-12-22 11:31:33 -03:00
Tiago Yamamoto
52e2706d3e Add env example, swagger, and Dockerfile for seeder api 2025-12-22 11:31:18 -03:00
Tiago Yamamoto
2bfda1fc5e
Merge pull request #30 from rede5/codex/verificar-dados-dinamicos
Fix admin dashboard stats fetching in marketplace
2025-12-22 11:22:19 -03:00
Tiago Yamamoto
c288767057 Fix admin dashboard stats loading 2025-12-22 11:21:56 -03:00
Tiago Yamamoto
03a14b628b fix: seeder tables and marketplace api proxy configuration 2025-12-22 11:14:14 -03:00
Tiago Yamamoto
30b8395639 fix: add missing tables and correct order insertion logic in lean seeder 2025-12-22 11:11:00 -03:00
Tiago Yamamoto
061930a604
Merge pull request #29 from rede5/codex/fix-404-error-for-shipments-and-reviews
Add admin list endpoints for reviews and shipments
2025-12-22 10:25:35 -03:00
Tiago Yamamoto
b0b96d469c Add review and shipment admin listing endpoints 2025-12-22 10:15:27 -03:00
Tiago Yamamoto
35495b4728 fix(backend): properly load .env file manually in config.go 2025-12-22 09:47:17 -03:00
Tiago Yamamoto
08d98aaeca fix: improve login error handling for invalid credentials 2025-12-22 09:31:33 -03:00
Tiago Yamamoto
4ccfa629cc feat: add admin reviews, logistics, profile pages and update seeder 2025-12-22 09:08:42 -03:00
Tiago Yamamoto
4f6c96daf0 feat: improve admin products with store column and seeder with orders/cart
- Add Loja (store) column to ProductsPage showing which company owns product
- Optimize ProductsPage to update local state instead of reloading list
- Add orders (5-10 random) and cart items to lean seeder for testing
- Fix expires_at date format to ISO 8601 for backend compatibility
- Improve delete error message for products with related orders
2025-12-22 08:29:22 -03:00
Tiago Yamamoto
6c0b4c4cd6 fix(marketplace): fix product date format and improve UX
- Convert expires_at to ISO 8601 format for backend compatibility
- Update local state instead of reloading list on edit/create/delete
- Improve delete error message for products with related orders
2025-12-22 08:21:42 -03:00
Tiago Yamamoto
00685f7b26 fix(marketplace): fix duplicate /api in URLs and add adminService tests
- Fix adminService URLs from /api/v1 to /v1 (base URL already includes /api)
- Add adminService.test.ts with 17 unit tests for all CRUD operations
- Update productService.test.ts and auth.test.ts for new apiClient format
- All 31 frontend tests passing
2025-12-22 08:04:27 -03:00
Tiago Yamamoto
460303e90e feat(marketplace): add console logging to adminService for debugging 2025-12-22 07:51:42 -03:00
Tiago Yamamoto
59919cb875 feat(marketplace): implement admin dashboard with full CRUD operations
- Add Header component with top navigation menu
- Create DashboardLayout with nested routing under /dashboard
- Implement Users, Companies, Products, Orders CRUD pages
- Add adminService with all API operations
- Update apiClient to return data directly with patch support
- Fix TypeScript errors in existing pages
- Update seeder README with detailed user credentials table
- Fix fmt.Sprintf format verb in seeder.go
2025-12-22 07:22:01 -03:00
Tiago Yamamoto
ebfc72969c feat(seeder): implemented 4 pharmacies with staff in lean mode 2025-12-22 01:42:21 -03:00
Tiago Yamamoto
d44a8873b9 docs(seeder): update documentation, fix go.mod and ignore binary 2025-12-22 01:38:41 -03:00
Tiago Yamamoto
e624d642aa feat: RBAC implementation and Seeder refactor 2025-12-22 01:30:55 -03:00
Tiago Yamamoto
6e2b6a8e89 debug(marketplace): add component mount log to trigger deploy 2025-12-22 01:17:19 -03:00
Tiago Yamamoto
9740ba2e9b chore(marketplace): configure env vars for API and Map 2025-12-22 01:15:37 -03:00
Tiago Yamamoto
c0903f06ab debug(marketplace): add console.log to authService 2025-12-22 01:09:26 -03:00
Tiago Yamamoto
77c93346e5 debug(marketplace): add console.log to login for debugging 2025-12-22 01:05:31 -03:00
Tiago Yamamoto
9ad6d87590 fix(backend): add missing Username field to admin seeding 2025-12-22 00:45:30 -03:00