mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
## Info architecture change around "Partners" The www "integrations" now become more partner-driven. `/partners/integrations` -> now Partner Catalog under `/partners/catalog` (old links redirect to new paths) Moved them close together in the nav dropdown and in the footer <img width="494" height="336" alt="Screenshot 2026-07-09 at 11 06 41" src="https://github.com/user-attachments/assets/a875fef0-0ab8-47ca-8756-d658b27c4892" /> <img width="1149" height="665" alt="Screenshot 2026-07-09 at 11 09 48" src="https://github.com/user-attachments/assets/9631bb72-fe25-4fb4-b1af-9f14a37d02e7" /> ## /partners This page remains untouched in this PR, updates to layout, content and intake form are delegated to #47874 ## /partners/catalog Listed in the [catalog](https://zone-www-dot-com-git-feat-www-partners-pages-supabase.vercel.app/partners/catalog) are now partners. Some partners match with a listing. <img width="1207" height="866" alt="Screenshot 2026-07-09 at 11 14 17" src="https://github.com/user-attachments/assets/b65216be-976f-4ef5-91f8-1ad49da87b45" /> ## /partners/catalog/[partner] Each partner can have one or more "listings" which are either - simple guides - foreign data wrappers - dashboard integrations Integrations available in the dashboard now all have a prominent "Install integration" cta to open it in the dashboard [integrations page](https://supabase.com/dashboard/project/_/integrations). <img width="1269" height="776" alt="Screenshot 2026-07-09 at 11 16 51" src="https://github.com/user-attachments/assets/3c7bb715-ffce-4d0a-905f-9a660c3b1f5a" /> ## Docs Update docs → [Preview](https://docs-git-feat-www-partners-pages-supabase.vercel.app/docs/guides/integrations) - remove "Supabase marketplace" - use "Dashboard Integrations and Partner Catalog - update integrations in sidenav to link to updated /partners/catalog/** listings <img width="1520" height="696" alt="Screenshot 2026-07-15 at 12 54 47" src="https://github.com/user-attachments/assets/9f5a2794-4536-4299-97df-9732d3d75b4c" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a Partner Catalog experience with search, category filters, official-partner toggle, responsive filtering (sidebar + bottom sheet), grid/list views, and featured partners. * Added Partner Catalog detail pages with tabbed listings, MDX-rendered content, image gallery with zoom overlay, and “add/install” actions. * **Improvements** * Updated “Become a Partner” layout and form support for prefilled values and checkbox-group fields (including validation). * Updated navigation/footer/docs and partner tile links to use Partner Catalog routes; expanded redirects from legacy integrations paths. * Added public agent-skills discovery manifest. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Alan Daniel <stylesshjs@gmail.com> Co-authored-by: Alex Hall <alex.hall@supabase.io> Co-authored-by: Miranda Limonczenko <miranda.limonczenko@supabase.io>
114 lines
3.5 KiB
TypeScript
114 lines
3.5 KiB
TypeScript
'use client'
|
|
|
|
import { detectBrowser, isBrowser } from 'common'
|
|
import { motion } from 'framer-motion'
|
|
import React, { PropsWithChildren, useEffect, useRef } from 'react'
|
|
import { cn } from 'ui'
|
|
|
|
interface Props {
|
|
outerClassName?: string
|
|
innerClassName?: string
|
|
hasActiveOnHover?: boolean
|
|
activeColor?: 'default' | 'brand'
|
|
hasShimmer?: boolean
|
|
hasInnerShimmer?: boolean
|
|
shimmerFromColor?: string
|
|
shimmerToColor?: string
|
|
style?: React.CSSProperties
|
|
innerStyle?: React.CSSProperties
|
|
hasMotion?: boolean
|
|
}
|
|
|
|
const Panel = ({
|
|
outerClassName,
|
|
innerClassName,
|
|
hasActiveOnHover = false,
|
|
activeColor = 'default',
|
|
hasShimmer = false,
|
|
hasInnerShimmer = false,
|
|
shimmerFromColor,
|
|
shimmerToColor,
|
|
hasMotion = false,
|
|
children,
|
|
style,
|
|
innerStyle,
|
|
}: PropsWithChildren<Props>) => {
|
|
const outerRef = useRef(null)
|
|
const innerRef = useRef(null)
|
|
const Component = hasMotion ? motion.div : 'div'
|
|
const isSafari = isBrowser && detectBrowser() === 'Safari'
|
|
const trackCursor = hasShimmer || hasInnerShimmer
|
|
|
|
const handleGlow = (event: any) => {
|
|
if (!outerRef.current || !innerRef.current) return
|
|
|
|
const outerElement = outerRef.current as HTMLDivElement
|
|
const innerElement = innerRef.current as HTMLDivElement
|
|
const { x: elX, y: elY, width, height } = outerElement.getBoundingClientRect()
|
|
const x = event.clientX - elX
|
|
const y = event.clientY - elY
|
|
const isActive = x > -0 && x < width + 0 && y > -0 && y < height + 0
|
|
|
|
if (hasShimmer) {
|
|
const activeGlow =
|
|
hasActiveOnHover && isActive
|
|
? `radial-gradient(65rem circle at ${x}px ${y}px, ${
|
|
activeColor === 'brand' ? 'var(--color-brand-900)' : 'var(--border-stronger)'
|
|
}, transparent), `
|
|
: ''
|
|
outerElement.style.backgroundImage = `
|
|
${activeGlow}radial-gradient(30rem circle at ${x}px ${y}px, ${
|
|
shimmerFromColor ?? 'var(--border-strong)'
|
|
}, ${shimmerToColor ?? 'var(--background-surface-300)'})`
|
|
}
|
|
|
|
if (hasInnerShimmer) {
|
|
innerElement.style.backgroundImage = isActive
|
|
? `radial-gradient(7rem circle at ${x}px ${y}px, var(--background-surface-300), transparent), radial-gradient(20rem circle at ${x}px ${y}px, var(--background-surface-200), transparent)`
|
|
: ''
|
|
}
|
|
}
|
|
|
|
useEffect(() => {
|
|
if (!isBrowser || trackCursor || isSafari) return
|
|
|
|
window.addEventListener('mousemove', handleGlow)
|
|
return () => {
|
|
window.removeEventListener('mousemove', handleGlow)
|
|
}
|
|
}, [])
|
|
|
|
return (
|
|
<Component
|
|
ref={outerRef}
|
|
className={cn(
|
|
'group/panel relative rounded-lg md:rounded-xl p-px bg-surface-75 bg-linear-to-b from-border to-border/50 dark:to-surface-100 transition-all hover:shadow-md',
|
|
!trackCursor && hasActiveOnHover
|
|
? activeColor === 'brand'
|
|
? 'hover:bg-none hover:bg-brand!'
|
|
: 'hover:bg-none hover:bg-border-stronger!'
|
|
: '',
|
|
outerClassName
|
|
)}
|
|
{...(hasMotion ? { whileHover: 'hover', animate: 'initial' } : undefined)}
|
|
style={style}
|
|
>
|
|
<div
|
|
className={cn(
|
|
'relative z-10 w-full h-full rounded-[7px] md:rounded-[11px] bg-surface-75 overflow-hidden text-foreground-light',
|
|
innerClassName
|
|
)}
|
|
style={innerStyle}
|
|
>
|
|
{children}
|
|
<div
|
|
ref={innerRef}
|
|
className="absolute z-10 inset-0 w-full h-full pointer-events-none opacity-20"
|
|
/>
|
|
</div>
|
|
</Component>
|
|
)
|
|
}
|
|
|
|
export default Panel
|