mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
## Summary - Add `withTiming()` wrapper for server actions with Sentry span reporting and slow action warnings (>1s) - Add centralized `captureEvent()` helper for PostHog tracking - Add 5 new PostHog tracking events: optimization_reviewed, repository_connected, api_key_created, member_invited, billing_page_viewed - Instrument 4 server actions with `withTiming()`: getOrganizationMembers, getRepositoryById, getRepositoriesWithStagingEvents, getAllOptimizationEvents ## Proof of Correctness See [`js/cf-webapp/proof/08-server-action-timing.md`](js/cf-webapp/proof/08-server-action-timing.md) ## How to Verify ```bash cd js/cf-webapp bash proof/reproducers/08-server-action-timing.sh ``` 21 checks verify: withTiming utility, 4 instrumented actions, captureEvent helper, 5 tracking functions, and all tracking calls wired into action files. ## Test Plan - [ ] Run reproducer: `bash proof/reproducers/08-server-action-timing.sh` (21/21 pass) - [ ] Verify server actions still work correctly - [ ] Check Sentry for `server.action` spans after deployment
34 lines
No EOL
1.4 KiB
YAML
34 lines
No EOL
1.4 KiB
YAML
- generic [ref=e2]:
|
|
- generic [ref=e4]:
|
|
- img [ref=e6]
|
|
- generic [ref=e12]:
|
|
- heading "Get started with Codeflash" [level=1] [ref=e13]
|
|
- paragraph [ref=e14]: Make all your code optimal
|
|
- button "Continue with GitHub" [ref=e15] [cursor=pointer]:
|
|
- img [ref=e16]
|
|
- generic [ref=e18]: Continue with GitHub
|
|
- generic [ref=e20]:
|
|
- link "Terms" [ref=e21] [cursor=pointer]:
|
|
- /url: https://www.codeflash.ai/terms-of-service
|
|
- link "Privacy" [ref=e22] [cursor=pointer]:
|
|
- /url: https://www.codeflash.ai/privacy-policy
|
|
- link "Documentation" [ref=e23] [cursor=pointer]:
|
|
- /url: https://docs.codeflash.ai
|
|
- generic [ref=e25]:
|
|
- heading "Always Ship Optimal Code" [level=2] [ref=e27]
|
|
- generic [ref=e28]:
|
|
- generic [ref=e29]:
|
|
- img [ref=e31]
|
|
- paragraph [ref=e34]: VS Code/Cursor Extension to optimize all code locally
|
|
- generic [ref=e35]:
|
|
- img [ref=e37]
|
|
- paragraph [ref=e40]: Set it as a GitHub action to automate optimization
|
|
- generic [ref=e41]:
|
|
- img [ref=e43]
|
|
- paragraph [ref=e46]: Codeflash finds 2-55x performance improvements automatically
|
|
- generic [ref=e47]:
|
|
- img [ref=e49]
|
|
- paragraph [ref=e52]: Confidently merge the tested and proven optimizations
|
|
- generic [ref=e53]:
|
|
- img [ref=e55]
|
|
- paragraph [ref=e58]: Start free. No credit card, no lock-in |