mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-25 15:03:46 +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>
49 lines
1.6 KiB
TypeScript
49 lines
1.6 KiB
TypeScript
import { useParams } from 'common'
|
|
import ShimmeringLoader from 'components/ui/ShimmeringLoader'
|
|
import { useProjectDetailQuery } from 'data/projects/project-detail-query'
|
|
|
|
export const LoadingState = () => {
|
|
const { ref } = useParams()
|
|
const { data: project, isLoading } = useProjectDetailQuery({ ref })
|
|
|
|
const projectName = ref !== 'default' ? project?.name : 'Welcome to your project'
|
|
|
|
return (
|
|
<div className="w-full mx-auto">
|
|
<div className="px-8 border-b">
|
|
<div className="max-w-7xl mx-auto flex items-center space-x-6 h-[184px]">
|
|
{isLoading ? (
|
|
<ShimmeringLoader className="h-9 w-40" />
|
|
) : (
|
|
<h1 className="text-3xl">{projectName}</h1>
|
|
)}
|
|
</div>
|
|
</div>
|
|
<div className="px-8 py-16">
|
|
<div className="max-w-7xl mx-auto">
|
|
<ProjectUsageLoadingState />
|
|
</div>
|
|
</div>
|
|
<div className="px-8">
|
|
<div className="max-w-7xl mx-auto space-y-4">
|
|
<ShimmeringLoader className="w-40 h-7" />
|
|
<ShimmeringLoader className="w-full h-32" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export const ProjectUsageLoadingState = () => {
|
|
return (
|
|
<div className="space-y-6">
|
|
<ShimmeringLoader className="w-40 h-7" />
|
|
<div className="flex flex-col md:flex-row gap-2 md:gap-4">
|
|
<ShimmeringLoader className="w-full h-[320px] py-0" />
|
|
<ShimmeringLoader className="w-full h-[320px] py-0" />
|
|
<ShimmeringLoader className="w-full h-[320px] py-0" />
|
|
<ShimmeringLoader className="w-full h-[320px] py-0" />
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|