mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
## Summary - **Fix CI build failure**: Auth0Client crashes during Next.js prerendering when env vars aren't set. Returns a no-op stub (`getSession → null`) when domain is missing — semantically correct for static generation - **Lazy-load markdown libs (~260kb)**: ReactMarkdown, remarkGfm, and react-syntax-highlighter were eagerly imported in monaco-diff-viewer but only rendered when user expands "Generated Tests". Extracted into a dynamic component - **Parallelize repo detail query**: `getRepositoryById` ran the activity count sequentially after the repo lookup. Since `repoId` is already available, all three queries now run in parallel ## Test plan - [ ] CI `build` check passes (was failing since #2598) - [ ] Trace page still renders generated tests correctly when expanded - [ ] Repository detail page loads correctly with activity status
791 B
791 B
JS Packages
pnpm workspace (js/pnpm-workspace.yaml) with four TypeScript packages: cf-api, cf-webapp, common, VSC-Extension. See .claude/rules/js-packages.md for patterns and gotchas.
Setup
cd js && pnpm install
Commands (from js/ workspace root)
| Package | Dev | Build | Test | Lint |
|---|---|---|---|---|
| cf-api | pnpm --filter cf-api dev |
pnpm --filter cf-api build |
pnpm --filter cf-api test |
pnpm --filter cf-api lint |
| cf-webapp | pnpm --filter cf-webapp dev |
pnpm --filter cf-webapp build |
pnpm --filter cf-webapp test |
pnpm --filter cf-webapp lint |
| common | — | pnpm --filter @codeflash-ai/common build |
— | — |
| VSC-Extension | npm run dev |
npm run build |
npm test |
npm run lint |