Commit Graph
3 Commits
Author SHA1 Message Date
Alaister YoungandAlaister Young 680633ee4f [FE-5108] (part 5) refactor(studio): migrate remaining interfaces off next/link (#54308)
Part 5 of a 6-PR stack migrating all `next/link` imports in
`apps/studio` onto TanStack Router's `Link` (or plain `<a>` for known
external URLs) and removing `compat/next/link.tsx`.

| Part | PR | Scope |
| --- | --- | --- |
| 1 | #54304 | `data/prefetchers/PrefetchableLink.tsx` and
`components/ui/**` |
| 2 | #54305 | `components/layouts/**` and top-level shell components |
| 3 | #54306 | Database, TableGridEditor, Storage, SQLEditor,
BranchManagement, Branching, Functions, Realtime |
| 4 | #54307 | Integrations, Settings, Observability, LogDrains, Issues,
Linter, Reports, QueryPerformance, QuerySources, ConfigDrift,
DiskManagement, Compute |
| **5** | **#54308 ← this PR** | **Remaining `components/interfaces/**`
(Org, Billing, Auth, Support, Home, SignIn, ConnectSheet, etc.)** |
| 6 | #54309 | Remove `compat/next/link.tsx` shim, Vite alias, and
update basePath tests/docs |

Migrates the remaining `components/interfaces/**` directories off
`next/link`, leaving zero `next/link` component imports in
`apps/studio`.

**Changed:**

- Replaced `next/link` across all 73 remaining interface files
(`Organization`, `OrganizationInvite`, `Billing`, `Auth`, `Support`,
`ProjectHome`, `Home`, `Project`, `ProjectCreation`, `ProjectAPIDocs`,
`ApiAuthorization`, `App`, `ConnectSheet`, `SignIn`, `APIKeys`,
`Account`, `CliLogin`, `Docs`, `JwtSecrets`, `Platform`)
- Converted the sole remaining `UrlObject` link (`<Link href={{
pathname: '/sign-in-sso', query }}>`) in `SignInSSOForm.tsx` to `<Link
to="/sign-in-sso" search={query}>`
- Migrated `SupportLink.tsx` onto `DynamicLink`
(`createSupportFormUrl(...)`)
- Standardized external `target="_blank"` anchors with `rel="noreferrer
noopener"`, switched `OverviewMetrics.tsx` observability link to typed
`<Link to="/project/$ref/observability/auth">`, and adopted `InlineLink`
/ `InlineLinkClassName` on inline paragraph links per review feedback

Addresses
[FE-5108](https://linear.app/supabase/issue/FE-5108/replace-the-nextlink-shim-with-tanstack-link)

## To test

- [ ] Check Organization (billing, usage, team, documents, AWS
Marketplace), Auth (providers, templates, rate limits, users, OAuth
apps), Support form/links, Project Home, Connect sheet, and Sign-In/SSO
links
- [ ] Verify `SignInWithSSOButton` preserves query params when
navigating to `/sign-in-sso`
- [ ] Verify `SupportLink` pre-populates support form query parameters
cleanly

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-12-01 17:33:03 +08:00
Saxon FletcherandClaude Opus 5.5 4b39a529f0 chore(studio): show issue severity as bars (#53582)
<img width="1305" height="861"
alt="file-4841beec98e7fc8c1c9774747afc79a8"
src="https://github.com/user-attachments/assets/5455f835-79d7-4e5f-9e12-b0203019084d"
/>

Replaces the colored severity dots on Issues with three ascending bars,
filled up to the severity in its color:

- Critical: three red bars
- Warning: two yellow bars
- Info: one gray bar

Empty bars are neutral gray. The new `SeverityIndicator` component is
used everywhere the dot was: the Issues sidebar list, the issue detail
header, the overview stat cards, and the Issues card on Project Home.

## How to test

1. Open a project with open issues and go to **Issues**.
2. Check the sidebar list: each row shows bars matching its severity,
and the second line stays aligned with the title.
3. Check the overview stat cards: Critical, Warning, and Info each show
their bars next to the label.
4. Open an issue and check the bars next to the severity in the header.
5. Go to **Project Home** and check the Issues card.
6. Repeat in light and dark themes.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 16:03:29 +10:00
Saxon Fletcher 8872322a86 feat(studio): show issues on the project homepage (#52992)
Show ordered issue cards and open counts on the project homepage behind the issuesInbox flag.
2026-11-10 11:01:15 +01:00