Browse Source
Security & API route fixes: - Remove API key query param support in fal/models route to prevent credential leakage - Fix MIME type fallback in save-generation route (now uses prefix-based fallback: image/* -> png, video/* -> mp4, unknown -> bin) - Add timeout (60s) and size limits (500MB) for remote fetch in save-generation route using AbortController CSS fix: - Consolidate duplicate :root blocks in globals.css - Change handle selector from data-handletype="prompt" to data-handletype="text" - Update --handle-color-text CSS variable from #a3a3a3 to #3b82f6 Test file global mock isolation: - Fix useAnnotationStore mock to support Zustand selector pattern - Use vi.stubGlobal() instead of direct global assignments to prevent test leakage - Restore global.Image in afterAll hook in AnnotationModal.test.tsx - Wrap async Done assertion in waitFor() in AnnotationModal.test.tsx - Use idiomatic fireEvent.dragOver() in AnnotationNode.test.tsx - Fix global.confirm stub with proper beforeAll/afterAll lifecycle in CostDialog.test.tsx - Import ReactNode type properly in EdgeToolbar.test.tsx - Update save-generation route test to expect AbortController signal in fetch callhandoff-20260429-1057
8 changed files with 132 additions and 48 deletions
Loading…
Reference in new issue