Fix Convex push crash and route warnings#120
Conversation
There was a problem hiding this comment.
Connorbelez has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.
There was a problem hiding this comment.
Sorry @Connorbelez, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThe PR consolidates formatting changes across multiple files: reformatting multi-line expressions to single lines in reconciliation, seed, and obligation state files. It replaces a test assertion with a runtime type check in testUtils and updates two component import paths to reference dash-prefixed filenames. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR refactors the demo “governed transitions” UI by extracting the machine diagram and journal table into dedicated components, while also applying a few small formatting/cleanup tweaks in Convex seed/engine code and ledger test utilities.
Changes:
- Extracted governed-transitions machine visualization and journal rendering into new
_componentsReact components. - Updated the governed-transitions route pages to import and use the extracted components.
- Minor formatting cleanups in seed/engine code and simplified ledger test utils by removing a Vitest-only assertion/import.
Reviewed changes
Copilot reviewed 6 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/routes/demo/governed-transitions/machine.tsx | Updates route to import the extracted machine view component. |
| src/routes/demo/governed-transitions/journal.tsx | Updates route to import the extracted journal view component. |
| src/routes/demo/governed-transitions/_components/-GovernedTransitionsMachineView.tsx | New component that renders the governed transition state diagram using N8nWorkflowBlock. |
| src/routes/demo/governed-transitions/_components/-GovernedTransitionsJournalView.tsx | New component that renders transition journal entries via InteractiveLogsTable. |
| convex/seed/seedObligationStates.ts | Formatting-only change to index query chaining. |
| convex/seed/seedObligation.ts | Formatting-only change to date helper calls. |
| convex/ledger/tests/testUtils.ts | Removes Vitest expect dependency inside shared test utility function. |
| convex/engine/reconciliation.ts | Formatting-only change to ctx.db.get call. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Rename _components/ to -components/ following TanStack Router's convention for excluded directories. Removes the leading hyphen from individual filenames, addressing the CLI tooling concern. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
## Summary - Remove `vitest` import from `convex/ledger/__tests__/testUtils.ts` that crashed the Convex bundler during `convex dev` push (vitest requires an active test runner at import time) - Prefix route component files with `-` to suppress TanStack Router warnings about non-route files in `src/routes/` - Minor cleanup in seed files and reconciliation ## Test plan - [ ] Run `bunx convex dev` — should push successfully without the vitest analysis error - [ ] Verify `/demo/governed-transitions` pages load without route warnings - [ ] Run `bun run test` to confirm ledger tests still pass 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Style** * Reformatted code expressions for improved readability across multiple files. * **Chores** * Refactored component import paths and updated internal type checking patterns. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Summary
vitestimport fromconvex/ledger/__tests__/testUtils.tsthat crashed the Convex bundler duringconvex devpush (vitest requires an active test runner at import time)-to suppress TanStack Router warnings about non-route files insrc/routes/Test plan
bunx convex dev— should push successfully without the vitest analysis error/demo/governed-transitionspages load without route warningsbun run testto confirm ledger tests still pass🤖 Generated with Claude Code
Summary by CodeRabbit
Style
Chores