Roo-Code/apps/web
Will Li 6571f5a1e8
add git repo aggregation (#138)
Context
Currently, our analytics system provides data aggregation by developer. This PR extends this functionality to also provide analytics aggregated by repository name, allowing organizations to better understand which repositories are consuming the most resources.

Changes
Added a new getRepositoryUsage function in events.ts to aggregate data by repository
Created a new Repositories.tsx component to display repository analytics
Updated types.ts to add 'repositories' to viewModes and 'repositoryName' as a filter type
Enhanced Tasks.tsx to handle filtering by repository name
Updated Usage.tsx to render the Repositories component
Enhanced TaskCard.tsx to display repository information
Added translations for "repositories" in locale files
Added empty state handling for when no repository data is available
Testing
Navigate to Usage page and switch to "Repositories" tab
Click on repository names to filter tasks
Verify repository information appears in task cards
Test with accounts that have no repository data
2025-06-27 11:10:46 -07:00
..
public Monorepo + (disabled) agent authentication mechanism (#106) 2025-06-19 12:19:50 -07:00
src add git repo aggregation (#138) 2025-06-27 11:10:46 -07:00
.env Fix extension auth deeplink (#143) 2025-06-26 14:47:41 -07:00
.env.production Encrypt and store secret ENV vars in the repo with dotenvx (#114) 2025-06-26 10:54:39 -07:00
.gitignore Add roomote to the monorepo (#109) 2025-06-20 09:41:51 -07:00
components.json Monorepo + (disabled) agent authentication mechanism (#106) 2025-06-19 12:19:50 -07:00
eslint.config.mjs Add roomote to the monorepo (#109) 2025-06-20 09:41:51 -07:00
next-env.d.ts Monorepo + (disabled) agent authentication mechanism (#106) 2025-06-19 12:19:50 -07:00
next.config.ts Encrypt and store secret ENV vars in the repo with dotenvx (#114) 2025-06-26 10:54:39 -07:00
package.json Encrypt and store secret ENV vars in the repo with dotenvx (#114) 2025-06-26 10:54:39 -07:00
postcss.config.mjs Monorepo + (disabled) agent authentication mechanism (#106) 2025-06-19 12:19:50 -07:00
README.md Encrypt and store secret ENV vars in the repo with dotenvx (#114) 2025-06-26 10:54:39 -07:00
tsconfig.json Add roomote to the monorepo (#109) 2025-06-20 09:41:51 -07:00
vitest.config.ts Add roomote to the monorepo (#109) 2025-06-20 09:41:51 -07:00
vitest.setup.client.ts Add roomote to the monorepo (#109) 2025-06-20 09:41:51 -07:00
vitest.setup.server.ts Unify roomote and cloud databases (#112) 2025-06-20 16:17:35 -07:00

Roo Code Cloud

Run Locally

Configure Database

Install Docker Desktop for your platform.

Once installed, you can pull down a Postgres Docker image and run it:

docker compose up

Postgres will be running locally on port 5432 username postgres and password password.

Install Packages

First install pnpm using these instructions. If you're on MacOS the easiest option is to use Homebrew:

brew install pnpm

You can now install the required packages with:

pnpm install

Make sure your database is migrated:

pnpm db:migrate

If everything is working as expected you should be able to run any of the following without errors:

pnpm lint
pnpm check-types
pnpm test

Start Development Server

Create an .env.local file and fill out the required secrets, including:

  • CLICKHOUSE_URL
  • CLICKHOUSE_PASSWORD
  • CLERK_SECRET_KEY

You can now start the Next.js app with:

pnpm dev

Your server will be running at localhost:3000