mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-24 22:15:18 +00:00
Major additions: - Complete Next.js studio application with 1600+ components - Docker support (Dockerfile.combined, docker-compose.yml) - GCP deployment documentation and benchmarks - SQL benchmark scripts for performance testing - Sentry integration for monitoring - Comprehensive test suite and mocks Studio features: - Dashboard and admin interfaces - Data visualization components - Authentication and user management - API integration with RuVector backend - Static data and public assets 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
43 lines
1.5 KiB
TypeScript
43 lines
1.5 KiB
TypeScript
import { useParams } from 'common'
|
|
import { Loader2 } from 'lucide-react'
|
|
|
|
import { useProjectDetailQuery } from 'data/projects/project-detail-query'
|
|
import { PROJECT_STATUS } from 'lib/constants'
|
|
|
|
export const ResizingState = () => {
|
|
const { ref } = useParams()
|
|
useProjectDetailQuery(
|
|
{ ref },
|
|
{
|
|
// setting a refetch interval here will cause the `useSelectedProject()` in `ProjectLayout.tsx` to
|
|
// rerender every 4 seconds while the project is resizing. Once resizing is complete, it will
|
|
// no longer show this state.
|
|
refetchInterval(data) {
|
|
return data?.status !== PROJECT_STATUS.ACTIVE_HEALTHY ? 4000 : false
|
|
},
|
|
}
|
|
)
|
|
|
|
return (
|
|
<div className="flex items-center justify-center h-full">
|
|
<div className="bg-surface-100 border border-overlay rounded-md w-3/4 lg:w-1/2">
|
|
<div className="space-y-6 py-6">
|
|
<div className="flex px-8 space-x-8">
|
|
<div className="mt-1">
|
|
<Loader2 className="animate-spin text-foreground-light" size={18} />
|
|
</div>
|
|
<div className="flex flex-col gap-1">
|
|
<p>Resizing Project Compute size</p>
|
|
<p className="text-sm text-foreground-light">
|
|
Your project is being restarted to apply compute size changes.
|
|
</p>
|
|
<p className="text-sm text-foreground-light">
|
|
This can take a few minutes. Project will be offline while it is being restarted.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|