- Fixed vitest matcher usage: replaced toBeTypeOf with typeof + toBe
- Fixed import statements for fs and path modules to use namespace imports
- Resolves TypeScript compilation errors preventing push
Part of fixing test setup issues for PR #227
- Fixed incorrect import path from '@testing-library/jest-dom/vitest' to '@testing-library/jest-dom'
- Installed missing dependencies with pnpm install
- Fixed ESLint warnings by properly typing global mocks
- Resolves test setup issues for hash-based navigation modal tests
Addresses comment from @mrubens in PR #227
The test was expecting 'Unauthorized: Invalid organization access' but the
authorizeAnalytics function first checks if userId is null and throws
'Unauthorized: User required' before reaching the organization validation.
This fixes the failing test in CI by aligning the test expectation with
the actual function behavior.
- Add thorough test coverage for authorizeAnalytics function
- Add tests for authorizeShareToken and getTaskById with share token support
- Add tests for authorizeMessageShareToken and getMessages with share token support
- Cover security scenarios, error handling, and edge cases
- Address @mrubens request for authentication code testing in modal hash navigation PR
- Fix TypeScript any types to use unknown types for better type safety
- Replace useEffect data loading with useQuery hook in Usage.tsx
- Provides better caching, error handling, and loading states
- Simplifies modal state management logic
- Addresses PR comment requesting React Query usage for data loading
Fixes: Use React Query instead of useEffect for data loading
- Replace bg-black/90 with bg-muted for better theme adaptation
- Replace text-foreground with text-muted-foreground for proper contrast
- Add border-border for better visual separation
- Ensures WCAG AAA compliance in both light and dark themes
Fixes contrast issue where command text was barely readable in light theme
(black text on nearly black background)
* Improve loading states with graceful transitions and enhanced UX
Co-authored-by: matt <matt@roocode.com>
* DRY it up
* Visual cleanup
* Cleanup
* More cleanup
* More cleanup
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com>