Roo-Code/apps/web
Will Li 680a96fc9f
Add git repo information to events (#136)
Context
This PR adds support for git repository information in the analytics system by adding the necessary columns to the ClickHouse database and updating the UI to handle these properties appropriately.

Implementation
Updated .docker/scripts/clickhouse/001-create-tables.sql to include git properties in the schema for new database instances. Migrated package.json's to support new type schema.
Modified apps/web/src/components/task-sharing/TaskDetails.tsx to display git properties when available (message if not).
Added some claude-code typing.

How to Test
Run the migration by rebuilding docker and pnpm. If this still doesn't work try deleting .docker/data/clickhouse
Create a new task in a git tracked repo on Roo Code extension while signed in-- verify this is logged correctly.
2025-06-25 12:29:02 -07:00
..
public Monorepo + (disabled) agent authentication mechanism (#106) 2025-06-19 12:19:50 -07:00
src Add git repo information to events (#136) 2025-06-25 12:29:02 -07:00
.env Monorepo + (disabled) agent authentication mechanism (#106) 2025-06-19 12:19:50 -07:00
.env.development Unify roomote and cloud databases (#112) 2025-06-20 16:17:35 -07:00
.env.test Unify roomote and cloud databases (#112) 2025-06-20 16:17:35 -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 Monorepo + (disabled) agent authentication mechanism (#106) 2025-06-19 12:19:50 -07:00
package.json Add git repo information to events (#136) 2025-06-25 12:29:02 -07:00
postcss.config.mjs Monorepo + (disabled) agent authentication mechanism (#106) 2025-06-19 12:19:50 -07:00
README.md Monorepo + (disabled) agent authentication mechanism (#106) 2025-06-19 12:19:50 -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
  • NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
  • NEXT_PUBLIC_CLERK_FRONTEND_API

You can now start the Next.js app and Spotlight with:

pnpm dev

Your server will be running at localhost:3000