Commit Graph

15 Commits

Author SHA1 Message Date
Daniel Bedeleanu
cf528ac161 fix: use plain axios for getUsers (public endpoint, avoid JWT interceptor) 2026-04-11 14:39:34 +03:00
Daniel Bedeleanu
45b0f8b35c fix: make getUsers endpoint public for login page + translate remaining Romanian comments 2026-04-11 14:32:17 +03:00
Daniel Bedeleanu
e6ca33f2f0 feat: frontend JWT handling, rate limiting [H-02], CORS config
Frontend:
- Creiez frontend/lib/auth.ts cu saveToken, getToken, getAuthHeader, clearAuth
- Modific api.ts: axiosInstance cu interceptor Bearer token + 401 → /login redirect
- Modific login page: salveaza JWT token din response

Backend:
- [H-02] Integrez slowapi rate limiting: 10 req/minute pe /items/extract-label
- [M-01] CORS: ALLOWED_ORIGINS din env (dev fallback: localhost:3000, localhost:3002)
- [C-01] JWT_SECRET_KEY din env (dev fallback: ephemeral key)

docker-compose.yml:
- Adaug ALLOWED_ORIGINS env var (dev: localhost)
- Adaug JWT_SECRET_KEY env var cu fallback warning

Status:
-  JWT backend: complet
-  JWT frontend: token save + attach + 401 handling
-  Rate limiting: 10/min pe extract-label
-  CORS: configurable via env

Gata pentru dev + testing local.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 13:42:09 +03:00
Daniel Bedeleanu
2e5ce8d153 feat: complete dockerization architecture with data/logs persistence and prod export script v1.3.0 2026-04-11 12:33:13 +03:00
Daniel Bedeleanu
96fe655f72 fix: add missing icon imports v1.2.6 2026-04-11 11:49:31 +03:00
Daniel Bedeleanu
aa134e4384 style: synchronize icons for categories and items v1.2.5 2026-04-11 11:46:34 +03:00
Daniel Bedeleanu
a4cea4ce07 feat: offline ldap support and ui polish v1.2.4 2026-04-11 11:41:39 +03:00
Daniel Bedeleanu
d7dcd523a6 style: full system ui homogenization v1.2.3 2026-04-11 11:25:09 +03:00
Daniel Bedeleanu
4136d49936 style: ui readability refactor v1.2.2 (removed uppercase, tracking, increased font sizes) 2026-04-11 11:22:40 +03:00
Daniel Bedeleanu
9c76c0cbf5 UI: Implement dynamic versioning from VERSION.json 2026-04-10 21:56:33 +03:00
Daniel Bedeleanu
80af77f81a UI: Sync version strings to 1.2.1 2026-04-10 21:55:32 +03:00
Daniel Bedeleanu
8a3783c7e9 Infrastructure: Implement master/dev/vX branching, save git path, and fix username casing 2026-04-10 21:51:22 +03:00
Daniel Bedeleanu
93edcc261b chore: remove node_modules from git index 2026-04-10 14:06:50 +03:00
Daniel Bedeleanu
4d8f8eac0b feat: frontend PWA scaffolding with React and Tailwind 2026-04-10 14:05:52 +03:00
Daniel Bedeleanu
7f8b24aabb feat: frontend PWA scaffolding with React and Tailwind 2026-04-10 14:05:50 +03:00