Commit Graph
3 Commits
Author SHA1 Message Date
supabase-vercel-tedd[bot] f8ee296bfb feat(studio): add a #data-privacy anchor to organization general settings (#54636)
## Problem

There was no way to link straight to the Data privacy section (Supabase
Assistant opt-in level) of an organization's general settings. The link
could only point at the top of the page. The org picker behind
`/org/_/<path>` also dropped any `#hash`, so a link that works without
knowing the org slug couldn't reach a section.

## Solution

The Data privacy section on organization general settings now has the
`data-privacy` id, so Studio's hash scroll handling scrolls to it. The
`/org/_` organization picker now keeps the URL hash when it sends the
user to the chosen org, the same way it already keeps the path and query
string. So `/org/_/general#data-privacy` lands on the opt-in setting for
whichever org the user picks.

## How to verify

1. Open `/dashboard/org/<slug>/general#data-privacy` in the preview: the
page scrolls to the Data privacy section with the Supabase Assistant
Opt-in Level setting.
2. Open `/dashboard/org/_/general#data-privacy`, then pick an
organization: the URL becomes
`/dashboard/org/<slug>/general#data-privacy` and the page scrolls to
Data privacy.
3. Open `/dashboard/org/_/general` with no hash, then pick an
organization: the page opens at the top, as before.

## Checks

Ran `tsc --noEmit` for apps/studio, eslint (both the standard and the
type-checked config) on the changed files, `pnpm exec oxfmt --check` on
the changed files, and `vitest run
components/interfaces/Organization/Organization.utils.test.ts`, which
has new cases for hash handling in `buildOrgUrl`.

## Checklist

- [x] I have read the [Contributing
Guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] I have checked that the change works in the preview deployment

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-12-04 08:46:39 -06:00
Joshen Lim 3cfd882683 Joshenlim/fe 5169 refactor pagelayout for storage functions (#53719)
## Context

Just some housekeeping to move off old layout components - this PR
targets the Storage + Edge Function + Wildcard pages, specifically:

Project wildcard route (/project/_)
Organization wildcard route (/org/_)
Storage -> Analytics Buckets
Storage -> Vector Buckets
Edge Function -> New function

Just need to make sure that these pages still render fine
2026-11-23 10:59:11 +07:00
Alaister YoungandAlaister Young 801e4ad285 [FE-3106] (part 12) – refactor(studio): replace the org and project catch-all pages (#53221)
Gives the `/org/_/…` and `/project/_/…` catch-alls proper TanStack
routes and deletes `pages/org/_/[[...routeSlug]].tsx` and
`pages/project/_/[[...routeSlug]].tsx` (FE-3106). They show an org or
project picker whose links forward the trailing path and the query
string (and, for projects, the hash) to the real org or project. Part 12
of the stack.

**Depends on:** #53220

**Changed:**
- `components/interfaces/Organization/SelectOrganizationPage.tsx`,
`components/interfaces/Home/ProjectList/SelectProjectPage.tsx` – the
picker bodies. The trailing path and query string come from
`useLocation()` (repeated query keys survive): the splat routes nest
under the `/org/_` and `/project/_` routes, which render the picker with
no `<Outlet>`, so the picker can't rely on its own route's `_splat`
- `routes/{org,project}.[_].tsx`, `routes/{org,project}.[_].$.tsx` –
render the pickers
- `tests/routes/org.[_].$.test.tsx` – covers path and query forwarding

**Removed:**
- both catch-all pages, and `parseCatchAllRoute` from
`compat/next/router.ts`

Addresses
[FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages).

## To test

- `/project/_/database/tables?schema=auth#x` – pick a project, lands on
`/project/<ref>/database/tables?schema=auth#x`
- `/org/_/billing?panel=x` – pick an org, lands on
`/org/<slug>/billing?panel=x`
- `/org/_` and `/project/_` – pickers link to the org or project home

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-11-17 17:04:17 +09:00