ruvector/studio/components/layouts/AppLayout/EnableBranchingButton/BranchingPostgresVersionNotice.tsx
rUv 814f595995 feat(studio): Add complete RuVector Studio application
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>
2025-12-06 23:04:48 +00:00

34 lines
1.2 KiB
TypeScript

import { AlertCircleIcon } from 'lucide-react'
import Link from 'next/link'
import { AlertDescription_Shadcn_, AlertTitle_Shadcn_, Alert_Shadcn_, Button } from 'ui'
import { useParams } from 'common'
import { useAppStateSnapshot } from 'state/app-state'
export const BranchingPostgresVersionNotice = () => {
const { ref } = useParams()
const snap = useAppStateSnapshot()
return (
<Alert_Shadcn_ className="rounded-none px-7 py-6 [&>svg]:top-6 [&>svg]:left-6 !border-t-0 !border-l-0 !border-r-0">
<AlertCircleIcon />
<AlertTitle_Shadcn_ className="text-base">
Your project needs to be on Postgres 15 to enable branching
</AlertTitle_Shadcn_>
<AlertDescription_Shadcn_>
Head over to your project's infrastructure settings to upgrade to the latest version of
Postgres before enabling branching.
</AlertDescription_Shadcn_>
<AlertDescription_Shadcn_>
<Button size="tiny" type="default" className="mt-4">
<Link
href={`/project/${ref}/settings/infrastructure`}
onClick={() => snap.setShowCreateBranchModal(false)}
>
Head to project settings
</Link>
</Button>
</AlertDescription_Shadcn_>
</Alert_Shadcn_>
)
}