Files
supabase/packages/ui-patterns/src/InnerSideMenu
Alaister YoungandAlaister Young 576171b9b7 refactor(ui-patterns): use FrameworkLink and FrameworkImage (#53906)
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>
2026-11-25 20:25:16 +08:00
..