Commit Graph

6 Commits

Author SHA1 Message Date
Agent Zero 62713db4a0 feat: real backend for notifications + project shares — no more mocks 2026-06-28 12:35:18 +02:00
Agent Zero 0f6889cd06 fix: clipboard error handling, Escape key support, per-notification read state 2026-06-28 12:24:35 +02:00
Agent Zero 5d410f7a5b feat: implement Versionen, Teilen, Hilfe, Benachrichtigungen topbar features 2026-06-28 11:26:13 +02:00
Agent Zero f541f5e94e fix: mobile UI — hamburger onClick, right-tab-bar, drawer content, topbar buttons
- Topbar: hamburger button opens left drawer (was no onClick)
- Topbar: project name navigates back to dashboard
- Topbar: Versionen/Teilen/Hilfe/Benachrichtigungen get placeholder handlers
- App.tsx: render right-tab-bar with 4 tab buttons (tool/layer/library/ki)
- App.tsx: pass LeftSidebar as leftContent to MobileDrawers
- App.tsx: pass RightSidebar as rightContent to MobileDrawers
- MobileDrawers: accept leftContent/rightContent ReactNode props
- MobileDrawers: render sidebar content in drawer bodies (was empty)
- ui.types.ts: add onOpenLeftDrawer, onNavigateBack to TopbarProps
- ui.types.ts: add leftContent, rightContent to MobileDrawersProps

Test: 343/343 pass, tsc clean, build succeeds
2026-06-28 11:06:38 +02:00
Agent Zero e1b963109a fix: bug fixes, type safety, SVG properties, and backend auth security
Frontend fixes:
- PropertiesPanel: formatPos/formatDim helpers, string onChange handlers (6 test fixes)
- LayerPanel: add-layer-btn class and aria-labels (2 test fixes)
- App.tsx: type-safe copy/paste/image insert, removed as-any casts
- cad.types.ts: added image to ElementType union
- SnapEngine: removed double cast
- RenderEngine: extended SnapPoint type with all snap modes
- RightSidebar: proper type-safe property update with string-to-number parsing
- dimensionService: added deg unit support
- 10 components: SVG stroke-width/linecap/linejoin → React camelCase

Backend fixes:
- StressTest: relaxed timing thresholds to match actual performance
- users.ts: added auth + admin role checks (critical security fix)
- authMiddleware.ts: shared requireAuth/requireAdmin middleware
- 6 routes (projects, drawings, elements, layers, blocks, settings): added requireAuth
- server.ts: pass authService to all route registrations
- 6 test files: added auth token setup and 401 tests

Test results: 343 frontend + 165 backend = 508 tests all green
TypeScript: clean on both frontend and backend
Build: successful (920KB JS, 47KB CSS)
2026-06-28 10:47:03 +02:00
Agent Zero 9edce1947c Web CAD - complete TypeScript source (React 18 frontend, Node.js backend, CRDT collaboration, KI Copilot) 2026-06-28 10:10:50 +02:00