mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
Replaces `next/link` and `next/image` imports in `packages/ui-patterns` components with `FrameworkLink` and `FrameworkImage` from `common` so each host app supplies its own implementation (`next/link` + `next/image` in Next apps, TanStack Link + `<img>` in Studio). **Changed:** - Links (`FrameworkLink`): `AuthenticatedDropdownMenu`, `Chart`, `InnerSideMenu`, `MetricCard`, `TextLink` - Images (`FrameworkImage`): `AuthenticatedDropdownMenu`, `ExpandableVideo`, `GlassPanel`, `Image`, `TweetCard` - `Image`: `caption`, `captionAlign`, and `containerClassName` no longer leak onto the `<img>`, and the unused static image type re-exports are dropped - `TweetCard`: avatar is decorative (`alt=""`) since the handle is right next to it ## To test - Run `packages/ui-patterns` tests and typecheck, plus typecheck across Studio, WWW, Docs, and Design System - Click `InnerSideMenu`, `Chart`, and `MetricCard` links in Studio and verify client-side TanStack navigation - Spot-check `ui-patterns/Image` (including captions), `ExpandableVideo`, `GlassPanel`, `TextLink`, `TweetCard`, and `AuthenticatedDropdownMenu` in WWW and Docs to verify Next.js links and image optimization work as before --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>