feat(dashboard): add logs page, pagination, quick mapping modal, price pre-validation
- Add /logs page with per-order sync run details, filters (Toate/Importate/Fara Mapare/Erori) - Add price pre-validation (validate_prices + ensure_prices) to prevent ORA-20000 on direct articles - Add find_new_orders() to detect orders not yet in Oracle COMENZI - Extend missing_skus table with order context (order_count, order_numbers, customers) - Add server-side pagination on /api/validate/missing-skus and /missing-skus page - Replace confusing "Skip"/"Err" with "Fara Mapare"/"Erori" terminology - Add inline mapping modal on dashboard (replaces navigation to /mappings) - Add 2-row stat cards: orders (Comenzi Noi/Ready/Importate/Fara Mapare/Erori) + articles - Add ID_POL/ID_GESTIUNE/ID_SECTIE to config.py and .env - Update .gitignore (venv, *.db, api/api/, logs/) - 33/33 unit tests pass, E2E verified with Playwright Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -96,6 +96,9 @@ GET_ROUTES = [
|
||||
("GET /api/sync/history", "/api/sync/history", [200], False),
|
||||
("GET /api/sync/schedule", "/api/sync/schedule", [200], False),
|
||||
("GET /api/validate/missing-skus", "/api/validate/missing-skus", [200], False),
|
||||
("GET /api/validate/missing-skus?page=1", "/api/validate/missing-skus?page=1&per_page=10", [200], False),
|
||||
("GET /logs (HTML)", "/logs", [200, 500], False),
|
||||
("GET /api/sync/run/nonexistent/log", "/api/sync/run/nonexistent/log", [200, 404], False),
|
||||
("GET /api/articles/search?q=ab", "/api/articles/search?q=ab", [200, 503], True),
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user