Commit graph

9 commits

Author SHA1 Message Date
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
Kevin Turcios
60ba2d44ac
fix: upgrade Next.js to 16.2.3 and fix theme/roadmap issues (#2591)
## Summary
- Upgrade Next.js from 16.1.6 to 16.2.3
- Add `suppressHydrationWarning` to `<html>` tag to fix `next-themes`
hydration mismatch
- Remove unnecessary `isClient` guard in `ThemeProvider` that caused
script tag warning
- Redirect unauthenticated `/roadmap` visitors to `/login` instead of
`/`

## Test plan
- [ ] Verify `/roadmap` redirects to `/login` when not logged in
- [ ] Verify `/roadmap` loads correctly when logged in as team member
- [ ] Verify no hydration warnings in browser console
- [ ] Verify dark/light theme switching still works
2026-04-10 03:51:28 -05:00
Sarthak Agarwal
3328601949
[fix] mobile sidebar fix (#1901)
This is related to session replay from post hog reported:
https://codeflash-ai.slack.com/archives/C06BVLNRVT5/p1760651860154799

To Test: Run `npm install`
and then just `npm run dev`

---------

Co-authored-by: saga4 <saga4@codeflashs-MacBook-Air.local>
2025-10-17 03:34:55 -07:00
Aseem Saxena
80dbdb9101
Update cf-api-tests.yaml 2025-10-14 14:38:31 -07:00
Sarthak Agarwal
9ec5fad850
skip succeed the required workflows (#1881)
Co-authored-by: saga4 <saga4@codeflashs-MacBook-Air.local>
2025-10-08 14:55:13 -07:00
Sarthak Agarwal
1809b3edaa
Es module errors fix (#1444)
- **build fix**
- **fix for multiple errors with ESmodule**


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Chores**
- Streamlined the continuous integration process with improved
dependency caching, a new build step, and updated configuration for a
more reliable release flow.
- Modernized TypeScript settings to enhance module handling and overall
build consistency.

- **Tests**
- Updated test configurations for improved ECMAScript module support and
more precise test discovery.
- Introduced new commands for executing tests, watching test changes,
linting, and type checking to boost quality assurance.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-02-01 11:42:37 +00:00
Kevin Turcios
2acd51b52e Update cf-api-tests.yaml 2025-01-06 19:35:08 -05:00
Kevin Turcios
e6f45306ba fix path 2025-01-06 19:33:16 -05:00
Kevin Turcios
44537c4ab8 test GHA 2025-01-06 18:52:16 -05:00