mirror of
https://github.com/supabase/supabase.git
synced 2026-10-14 21:59:16 +03:00
* 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.
41 lines
1.3 KiB
TypeScript
41 lines
1.3 KiB
TypeScript
import { useParams } from 'common'
|
|
import { useQueuesExposePostgrestStatusQuery } from 'data/database-queues/database-queues-expose-postgrest-status-query'
|
|
import { useSelectedProject } from 'hooks/misc/useSelectedProject'
|
|
import Link from 'next/link'
|
|
import { Button } from 'ui'
|
|
import { Admonition } from 'ui-patterns'
|
|
import { IntegrationOverviewTab } from '../Integration/IntegrationOverviewTab'
|
|
|
|
export const QueuesOverviewTab = () => {
|
|
const { ref } = useParams()
|
|
const project = useSelectedProject()
|
|
|
|
const { data: isExposed } = useQueuesExposePostgrestStatusQuery({
|
|
projectRef: project?.ref,
|
|
connectionString: project?.connectionString,
|
|
})
|
|
|
|
return (
|
|
<IntegrationOverviewTab
|
|
actions={
|
|
!isExposed ? (
|
|
<Admonition
|
|
type="default"
|
|
title="Queues can be managed via any Supabase client library or PostgREST endpoints"
|
|
>
|
|
<p>
|
|
You may choose to toggle the exposure of Queues through Data APIs via the queues
|
|
settings
|
|
</p>
|
|
<Button asChild type="default">
|
|
<Link href={`/project/${ref}/integrations/queues/settings`}>
|
|
Manage queues settings
|
|
</Link>
|
|
</Button>
|
|
</Admonition>
|
|
) : null
|
|
}
|
|
/>
|
|
)
|
|
}
|