Files
supabase/apps/studio/components/interfaces/Integrations/Queues/UpgradeDatabaseAlert.tsx
T
Ivan Vasilov af5e55535f feat: Show alert to upgrade DB on queues integration (#30925)
* List all integrations in the landing page.

* Add a configuration in the integration definitions to show an alert if all their dependencies can't be installed.

* Refactor the Integration Overview tab to show an integration specific alert if all its dependencies can't be met because of outdated image.

* Fix smol misspell.

* Update copy.

* Fix copy.
2024-12-05 14:28:04 +00:00

29 lines
915 B
TypeScript

import Link from 'next/link'
import { useSelectedProject } from 'hooks/misc/useSelectedProject'
import { Button } from 'ui'
import { Admonition } from 'ui-patterns/admonition'
export const UpgradeDatabaseAlert = () => {
const project = useSelectedProject()
return (
<Admonition
type="warning"
className="mt-4"
title="Database Upgrade Needed"
childProps={{ description: { className: 'flex flex-col gap-y-2' } }}
>
<div className="prose text-sm max-w-full">
<p>
This integration requires the <code>pgmq</code> extension which is not available on this
version of Postgres. The extension is available on version 15.6.1.143 and higher.
</p>
</div>
<Button color="primary" className="w-fit">
<Link href={`/project/${project?.ref}/settings/infrastructure`}>Upgrade database</Link>
</Button>
</Admonition>
)
}