codeflash-internal/js/common
Kevin Turcios d7a8b8f227
perf: fix CI build + lazy-load heavy libs + parallelize DB queries (#2601)
## 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
2026-04-13 11:03:05 -05:00
..
prisma perf: fix CI build + lazy-load heavy libs + parallelize DB queries (#2601) 2026-04-13 11:03:05 -05:00
src perf: fix CI build + lazy-load heavy libs + parallelize DB queries (#2601) 2026-04-13 11:03:05 -05:00
.env.example dedupe and pricing changes for period 2025-03-11 04:55:40 +05:30
.eslintignore pricing dedupe and flow improve (#1511) 2025-03-11 23:29:20 +00:00
.gitignore Dashboard (#1596) 2025-05-27 19:04:13 +05:30
.npmignore Approval flow with slack interface (#1600) 2025-05-19 16:30:18 +05:30
.prettierignore consistency in formatting across ide & js projs (#1499) 2025-03-04 23:52:45 +00:00
.prettierrc consistency in formatting across ide & js projs (#1499) 2025-03-04 23:52:45 +00:00
eslint.config.mjs pricing dedupe and flow improve (#1511) 2025-03-11 23:29:20 +00:00
package.json perf: fix CI build + lazy-load heavy libs + parallelize DB queries (#2601) 2026-04-13 11:03:05 -05:00
prisma.config.ts perf: fix CI build + lazy-load heavy libs + parallelize DB queries (#2601) 2026-04-13 11:03:05 -05:00
tsconfig.json consistency in formatting across ide & js projs (#1499) 2025-03-04 23:52:45 +00:00
UploadSecretToKeyVault.ps1 Webapp Authentication and API Key Token generation (#36) 2023-12-03 15:25:53 -08:00