codeflash-internal/js/cf-api/github
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
..
tests [fix] handle label creation race condition and log errors to Sentry instead of throwing (#2265) 2026-01-20 20:05:36 +02:00
create-pr-from-diffcontents.ts perf: fix CI build + lazy-load heavy libs + parallelize DB queries (#2601) 2026-04-13 11:03:05 -05:00
github-app.ts perf: fix CI build + lazy-load heavy libs + parallelize DB queries (#2601) 2026-04-13 11:03:05 -05:00
github-utils.ts perf: fix CI build + lazy-load heavy libs + parallelize DB queries (#2601) 2026-04-13 11:03:05 -05:00
optimization_approval.ts perf: fix CI build + lazy-load heavy libs + parallelize DB queries (#2601) 2026-04-13 11:03:05 -05:00
optimization_results_benchmark_info.md changed PR message to include benchmark information 2025-03-26 12:08:33 -07:00
optimization_results_details.md change messaging font size for github dependant PR (#1802) 2025-09-11 20:09:12 +05:30
optimization_results_details_collapsed.md Explanation and Details Section Collapsed for Inline Suggestions (#1598) 2025-06-05 21:16:25 +00:00
optimization_results_header.md change messaging font size for github dependant PR (#1802) 2025-09-11 20:09:12 +05:30
optimization_results_review_header.md change messaging font size for github dependant PR (#1802) 2025-09-11 20:09:12 +05:30
optimization_results_test_report.md change pr description and branch name 2024-12-14 04:11:28 +05:30
pr-changes-utils.test.ts fix: correct regexes for removing empty benchmark sections in PR comments (#2495) 2026-03-27 17:12:35 -05:00
pr-changes-utils.ts perf: fix CI build + lazy-load heavy libs + parallelize DB queries (#2601) 2026-04-13 11:03:05 -05:00
slack_util.ts perf: fix CI build + lazy-load heavy libs + parallelize DB queries (#2601) 2026-04-13 11:03:05 -05:00
smee.sh Add posthog analytics, implement dev github app and get vars for it from the environment. 2024-01-18 17:23:49 -08:00