-
Notifications
You must be signed in to change notification settings - Fork 140
Hide quickstart when runners or configs exist #3647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Hide quickstart when runners or configs exist #3647
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
Code ReviewOverviewThis PR improves the connect page UX by:
✅ Strengths
🔍 Potential Issues1. useSuspenseInfiniteQuery Behavior (lines 69-84)The component uses
2. Inconsistent Loading PatternsThe
Recommendation: Use consistent query patterns throughout, preferably suspense-based for simpler code. 3. Potential Race ConditionLines 73-74 and 81-82 both have
Recommendation: Consider using 4. Data Access Safety (lines 82, 88, 90)The code accesses
Recommendation: Add safety checks: select: (data) => data.pages[0]?.names?.length ?? 0
select: (data) => Object.entries(data.pages[0]?.runnerConfigs ?? {}).length5. Missing Error HandlingThe component doesn't handle error states for the suspense queries. If either query fails, the error boundary will catch it, but there's no specific error UI for this page. Recommendation: Add an error boundary or error handling for a better UX. 🎯 Minor Suggestions
const runnerNamesQueryOptions = useMemo(
() => engineCompatDataProvider.runnerNamesQueryOptions(),
[engineCompatDataProvider]
);
📊 Test CoverageThe PR description mentions running biome check, but there's no mention of:
Recommendation: Add tests to verify:
🔒 Security & PerformanceNo security concerns identified. Performance considerations:
SummaryThe core logic is sound, but the mixing of suspense and non-suspense patterns creates confusion. The main concern is whether the manual loading skeleton (lines 92-127) is ever actually rendered given the use of |
More templates
@rivetkit/cloudflare-workers
@rivetkit/db
@rivetkit/framework-base
@rivetkit/next-js
@rivetkit/react
rivetkit
@rivetkit/sql-loader
@rivetkit/engine-runner
@rivetkit/engine-runner-protocol
commit: |
Summary
Testing
Codex Task