Commit graph

74 commits

Author SHA1 Message Date
Roo Code
96a1fc0a49 Fix TypeScript errors in test files
- 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
2025-07-08 12:34:55 +00:00
Roo Code
19b6fa3624 Fix vitest setup: correct @testing-library/jest-dom import and install dependencies
- 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
2025-07-08 12:34:06 +00:00
Roo Code
8826ed6829 Fix auth test: correct expected error message for unauthenticated org access
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.
2025-07-08 12:20:56 +00:00
Roo Code
1051bb684f Fix TypeScript type checking errors in authentication tests
- Replace vi.MockedFunction<any> with any for simpler typing
- Add optional chaining for potentially undefined array access
- Ensure tests pass TypeScript strict checking
2025-07-08 11:53:31 +00:00
Roo Code
16eddd37eb Fix ESLint errors in authentication tests
- Add eslint-disable comment for @typescript-eslint/no-explicit-any in test files
- Use vi.MockedFunction<any> for proper mock typing in vitest tests
2025-07-08 11:52:40 +00:00
Roo Code
780cc07123 Add comprehensive authentication tests for PR #227
- 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
2025-07-08 11:51:37 +00:00
Matt Rubens
1e265eaba3 Replace skipAuth with shareToken 2025-07-08 00:54:10 -04:00
Matt Rubens
9534e00e95 Validate table prefix 2025-07-08 00:47:44 -04:00
Matt Rubens
695a7f2ca1 Standardize 2025-07-08 00:45:43 -04:00
Matt Rubens
ac50ca2bd9 PR feedback 2025-07-08 00:30:21 -04:00
Matt Rubens
e344fb4b7e More auth cleanup 2025-07-08 00:22:44 -04:00
Matt Rubens
0f2b3f7010 Auth cleanup 2025-07-08 00:12:30 -04:00
Matt Rubens
96a8315748 Fix test 2025-07-07 22:46:32 -04:00
Matt Rubens
85ade4505d
Update apps/web/src/hooks/useTaskHash.ts
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-07-07 22:41:11 -04:00
Matt Rubens
d6a4ee6d2f Fix allowCrossUserAccess 2025-07-07 22:38:05 -04:00
Roo Code
8860ceba71 Convert useEffect-based task loading to React Query
- 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
2025-07-07 23:30:21 +00:00
Matt Rubens
2c5d87fe95 Use hash-based navigation for modals 2025-07-07 18:01:35 -04:00
Roomote Bot
c6df980faf
fix: improve command text contrast in light theme (#225)
- 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)
2025-07-07 13:36:41 -07:00
Chris Estreich
891f4a58fa
Change roomote username (#224) 2025-07-07 13:22:45 -07:00
Matt Rubens
900a9014dc
Display todos (#219) 2025-07-07 15:09:57 -04:00
Matt Rubens
17ce731867
Prototype of a Roomote tab (#147)
Co-authored-by: cte <cestreich@gmail.com>
Co-authored-by: Roomote <chris@roocode.com>
Co-authored-by: John Richmond <5629+jr@users.noreply.github.com>
2025-07-07 10:52:18 -07:00
Matt Rubens
7dcdf6039c
Display subtask messages (#215) 2025-07-07 00:40:24 -04:00
Matt Rubens
799cca9fcd
Add a few MCPs and a mode to manage them (#208) 2025-07-06 09:28:44 -04:00
Matt Rubens
9c59a4e278
Improve loading state feedback (#202)
* 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>
2025-07-04 13:31:04 -04:00
Matt Rubens
7e2cd4b7b0
Small tool usage cleanup (#203) 2025-07-04 11:30:52 -04:00
Matt Rubens
03f93d6570
Display tool usage (#201) 2025-07-04 08:35:33 -04:00
John Richmond
e20feaa1ab
Add support for cloud job auth tokens (#182) 2025-07-03 10:00:37 -07:00
Matt Rubens
0cbd4caec2
Suggestions shouldn't be interactive (#197) 2025-07-02 23:39:49 -04:00
Matt Rubens
555b381b22
Make completion result green (#195) 2025-07-02 21:59:24 -04:00
Matt Rubens
0111ee2193
Support multiple filters and reflect them in the chart (#194) 2025-07-02 21:59:16 -04:00
Chris Estreich
bee3046d1a
Update @roo-code/types to v1.30.0 (#188) 2025-07-02 12:02:56 -08:00
Matt Rubens
0156265963
Render markdown in questions (#184) 2025-07-02 11:26:33 -04:00
Matt Rubens
2d8211aea7
Add remark_breaks to handle newlines (#183) 2025-07-02 11:10:15 -04:00
Matt Rubens
34cfd156d1
Group messages to reduce visual noise (#179) 2025-07-01 15:53:06 -04:00
Matt Rubens
9edcee5c53
Add syntax highlighting (#178) 2025-07-01 15:19:35 -04:00
Matt Rubens
9a94ad70bf
Move pagination to the server side (#166) 2025-07-01 14:22:36 -04:00
Matt Rubens
9689177a70
Support sharing links to individual messages (#177) 2025-07-01 14:18:23 -04:00
Matt Rubens
6c39ff9c2a
Render mermaid (#170) 2025-07-01 14:16:38 -04:00
Matt Rubens
72d219b691
Revert "Allow closing the task modal by clicking in the margins (#165)" (#167) 2025-07-01 11:59:24 -04:00
Matt Rubens
3ad3c3a68e
Allow closing the task modal by clicking in the margins (#165) 2025-07-01 10:56:31 -04:00
Matt Rubens
2d2096c58f
Make the task modal more similar to the share modal (#164) 2025-07-01 09:53:47 -04:00
Matt Rubens
b9229528e9
Don't render message links (#163) 2025-06-30 22:04:04 -04:00
Matt Rubens
314a64b3ce
Scroll to top on page change (#161) 2025-06-30 15:47:30 -04:00
Matt Rubens
362d9b2b2c
Unlimited height on the share page (#160) 2025-06-30 15:46:29 -04:00
Matt Rubens
fb3df3a976
Add pagination to task list (#156)
Co-authored-by: matt <matt@roocode.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-06-30 15:17:22 -04:00
Matt Rubens
44ee729540
Update task view in real-time (#155)
Co-authored-by: matt <matt@roocode.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-06-30 13:52:44 -04:00
Matt Rubens
d56a9229ea
Handle new-style suggestions (#152) 2025-06-28 16:23:52 -04:00
Will Li
e93daaf9ec
backfill fix, get most recent git URL to handle old ssh links (#150)
* backfill fix, get most recent git URL to handle old ssh links

* reduce the changes
2025-06-28 09:38:03 -04:00
Matt Rubens
a2a9c31f95
Filter out duplicate messages (#151) 2025-06-28 00:50:07 -04:00
Will Li
c6ec80d7a8
Task Details Information Layout (#148) 2025-06-27 17:00:38 -04:00