Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore(studio): grafana-cloud slug (#48238)

Francesco Sansalvadored900c09e8a03
diff --git a/apps/studio/components/interfaces/Integrations/Landing/Landing.utils.ts b/apps/studio/components/interfaces/Integrations/Landing/Landing.utils.ts
index cd011a216db..9315eef4ba0 100644
--- a/apps/studio/components/interfaces/Integrations/Landing/Landing.utils.ts
+++ b/apps/studio/components/interfaces/Integrations/Landing/Landing.utils.ts
@@ -169,7 +169,7 @@ export const isOAuthInstalled = ({
)
}
- if (integration.id === 'grafana') {
+ if (integration.id === 'grafana' || integration.id === 'grafana-cloud') {
// Grafana is not yet sending integration status, so just use presence of API key.
return (
isOAuthAppAuthorized(projectData, integration) ||
diff --git a/apps/studio/components/interfaces/Integrations/Landing/MarketplaceDetail.test.tsx b/apps/studio/components/interfaces/Integrations/Landing/MarketplaceDetail.test.tsx
index 5ab944ae5b1..681f22bd809 100644
--- a/apps/studio/components/interfaces/Integrations/Landing/MarketplaceDetail.test.tsx
+++ b/apps/studio/components/interfaces/Integrations/Landing/MarketplaceDetail.test.tsx
@@ -48,6 +48,21 @@ const STABLE_INTEGRATIONS = [
navigate: () => null,
navigation: [{ route: 'overview', label: 'Overview' }],
},
+ {
+ id: 'grafana-cloud',
+ name: 'Grafana',
+ type: 'oauth',
+ source: 'Partner',
+ description: 'Grafana',
+ content: 'Grafana overview content',
+ docsUrl: null,
+ siteUrl: null,
+ author: { name: 'Grafana Labs' },
+ oauthAppId: 'grafana-app',
+ icon: () => null,
+ navigate: () => null,
+ navigation: [{ route: 'overview', label: 'Overview' }],
+ },
]
const STABLE_EMPTY_ARR = [] as unknown[]
vi.mock('@/components/interfaces/Integrations/Landing/useAvailableIntegrations', () => ({
diff --git a/apps/studio/components/interfaces/Integrations/Marketplace/Marketplace.constants.tsx b/apps/studio/components/interfaces/Integrations/Marketplace/Marketplace.constants.tsx
index 5c8c8b097bd..2d64bb82d65 100644
--- a/apps/studio/components/interfaces/Integrations/Marketplace/Marketplace.constants.tsx
+++ b/apps/studio/components/interfaces/Integrations/Marketplace/Marketplace.constants.tsx
@@ -14,6 +14,7 @@ export type { MarketplaceSource } from '@/components/interfaces/Integrations/Lan
// Defines featured integrations and their order in the featured hero
export const FEATURED_INTEGRATION_IDS = [
'grafana',
+ 'grafana-cloud',
'cron',
'queues',
'stripe_sync_engine',
diff --git a/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceFeaturedHeroGrid.tsx b/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceFeaturedHeroGrid.tsx
index 8a0fe9880fe..1714b1f6e52 100644
--- a/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceFeaturedHeroGrid.tsx
+++ b/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceFeaturedHeroGrid.tsx
@@ -25,6 +25,10 @@ const FEATURED_INTEGRATION_IMAGES: Record<string, { dark: string; light?: string
dark: `${BASE_PATH}/img/integrations/covers/grafana-cover.png`,
light: `${BASE_PATH}/img/integrations/covers/grafana-cover-light.webp`,
},
+ 'grafana-cloud': {
+ dark: `${BASE_PATH}/img/integrations/covers/grafana-cover.png`,
+ light: `${BASE_PATH}/img/integrations/covers/grafana-cover-light.webp`,
+ },
}
interface ThemedImage {