Commit graph

98 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
Roomote Bot
de381f909c feat: suppress full prompt echo in Slack responses (#226)
Co-authored-by: Chris Estreich <cestreich@gmail.com>
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
Roomote
bf391cda66
Add CRITICAL_COMMAND_RESTRICTIONS and MAIN_BRANCH_PROTECTION to generalTask prompt (#221)
- Import CRITICAL_COMMAND_RESTRICTIONS and MAIN_BRANCH_PROTECTION from promptConstants
- Update processGeneralTask prompt to include safety restrictions
- Align generalTask behavior with fixGitHubIssue implementation
- Prevents execution of dangerous long-running or interactive commands
- Enforces proper git branching practices

Addresses Slack mention request to add restrictions to generalTask prompt.
2025-07-07 12:53:59 -07:00
John Richmond
12185d08a4
Add missing jobId to general.task (#220)
* Add missing jobId to general.task

Should maybe just pass the whole job through...

* Fix roo code production name
2025-07-07 12:25:47 -07:00
Matt Rubens
900a9014dc
Display todos (#219) 2025-07-07 15:09:57 -04:00
John Richmond
5a3f867564
Add fallback RCC user for roomote and pass job id consistently (#216)
Use Matt as the fallback user for now.
2025-07-07 11:54:40 -07: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
Roomote
5a17732d7c
Add critical command restrictions to roomote prompts (#210) 2025-07-06 11:12:03 -07:00
John Richmond
b10489052f
Add static cloud settings that enable message telemetry (#211) 2025-07-06 10:47:22 -07:00
Roomote
a7ae0a77a3
fix: ignore comments from vercel[bot] instead of vercel (#212) 2025-07-06 10:32:00 -07:00
Roomote
70a5b324bc
Enhance Slack roomote command prompt with git workflow instructions (#209)
* Enhance Slack roomote command prompt with git workflow instructions

- Add instructions to create and push to remote branch
- Include guidance for opening PR using gh CLI
- Ensure all changes are tracked and reviewable before merging

* Align Slack roomote trigger with other trigger patterns

- Restructured processSlackMention to follow the same pattern as processIssueComment and processPullRequestComment
- Created structured prompt with clear context and instructions instead of just appending to original prompt
- Maintains git workflow instructions while improving consistency across roomote triggers
- Addresses feedback from @mrubens in PR comment #3041965262
2025-07-06 11:26:49 -04:00
Matt Rubens
799cca9fcd
Add a few MCPs and a mode to manage them (#208) 2025-07-06 09:28:44 -04:00
Chris Estreich
f5eae4d77b
Dry up schemas and ignore vercel PR comments (#206) 2025-07-05 09:34:28 -08:00
Chris Estreich
014261464f
Use redis to manage Slack integration state (#204) 2025-07-04 09:37:07 -08: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
ab04bf6ec7
Update pullRequestReviewCommentHandler.ts 2025-07-02 13:44:56 -08:00
Chris Estreich
917494e154
Update issueCommentHandler.ts 2025-07-02 13:44:06 -08:00
Chris Estreich
31d1e1f650
Don't process comments from @roomote (#189) 2025-07-02 12:14:43 -08:00
Chris Estreich
bee3046d1a
Update @roo-code/types to v1.30.0 (#188) 2025-07-02 12:02:56 -08:00
Chris Estreich
f9ab282322
Use GH_TOKEN to fetch pull request data (#186) 2025-07-02 08:51:09 -08:00
roomote
495d1bdf51
feat: add git pull functionality to runTask before opening VSCode (#185) 2025-07-02 08:50:55 -08:00
Chris Estreich
0b5812b01c
Verbose worker logging (#173) 2025-07-02 07:46:17 -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