Commit Graph
4 Commits
Author SHA1 Message Date
Alaister YoungandAlaister Young 6dd7062496 [FE-5108] (part 2) refactor(studio): migrate layouts & shell off next/link (#54305)
Part 2 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 ← this PR** | **`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 | 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 all `apps/studio/components/layouts/**` files and top-level
navigation shell components off `next/link`.

**Changed:**

- Replaced `next/link` across `components/layouts/**` (`AccountLayout`,
`AppLayout`, `AuthLayout`, `BranchLayout`, `DatabaseLayout`,
`EdgeFunctionsLayout`, `ExplorerLayout`, `IssuesLayout`, `LogsLayout`,
`Navigation`, `ObservabilityLayout`, `ProjectLayout`,
`ProjectNeedsSecuring`, `SQLEditorLayout`, `SignInLayout`,
`TableEditorLayout`, `Tabs`) and top-level shell components
(`Sidebar.tsx`, `UserDropdown.tsx`, `LocalDropdown.tsx`,
`HomePageActions.tsx`)
- Removed `vi.mock('next/link', ...)` from `LocalDropdown.test.tsx` and
`ProjectNeedsSecuring.test.tsx`
- Added accessible labels where external icon/logo links switched from
`<Link>` to plain `<a>` (`AdminStudioButton.tsx`,
`ForgotPasswordLayout.tsx`)

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

## To test

- [ ] Navigate across top header, left sidebar, user/local dropdown, and
project/org/branch switchers
- [ ] Verify mobile navigation menu items and recent-tab links navigate
with expected query params
- [ ] Verify sign-in and forgot-password layout links work cleanly

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-12-01 16:36:09 +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
44573b7a5c feat(studio): rename Advisors to Issues in navigation (#52993)
Part 5 of 6: #52989 → #52990 → #52991 → #52992 → #52993 → #53138

Switches Studio navigation between Advisors and Issues with
`issuesInbox`. With the flag off, the existing Advisors sidebar, pages,
command menu entries, shortcuts, header panel, and contextual finding
links remain available. With it on, these entry points show Issues and
legacy Advisor URLs forward to the matching Issues category while
preserving finding context. Direct Issues routes remain accessible in
either state. The homepage section remains hidden when the flag is off.

Telemetry event names are unchanged.

## How to test

1. Turn `issuesInbox` off: desktop and mobile navigation show Advisors,
the header opens Advisor Center, and Security, Performance, and enabled
Health Advisor pages remain usable.
2. Turn it on: navigation and the header show Issues. Legacy Advisor
category URLs forward to matching Issues lists.
3. `G` then `V` opens the active variant. `V` then `S`, `P`, or `H`
follows the active category links; shortcut reference labels match.
4. Table Editor finding links open the legacy finding when off and its
issue when on.
5. Direct Issues routes remain usable with the flag off; the homepage
section stays hidden.

## Validation

- Broad navigation/layout/redirect/shortcut regression suite: 456 tests
passed, retries disabled.
- Focused suite: 181 tests passed with shuffle seed 52993, retries
disabled.
- Full Studio TypeScript, scoped ESLint, and changed-file Prettier pass.
- Behavioral mutation probes detect broken flag guards, finding links,
and redirect destinations; source restored afterward.


[DEBUG-255](https://linear.app/supabase/issue/DEBUG-255/replace-advisor-terminology-with-issues-throughout-studio)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Jordi Enric <jordi.err@gmail.com>
2026-11-10 14:47:16 +01:00
Saxon Fletcher e04c556bd5 feat(studio): add the issues list (#52990)
Add the Issues list, URL filters, and overview counts with complete advisor refresh handling.
2026-11-09 16:24:11 +01:00