Commit Graph
60 Commits
Author SHA1 Message Date
Mert YEREKAPAN fe8e912993 refactor(www): split redirects into static and dynamic files and add redirect checks (#54194)
## Problem

`apps/www/lib/redirects.js` was a single file with static and dynamic
rules mixed together, and the redirects had no automated checks. `/docs`
redirects already moved to `apps/docs/lib/redirects/`, so www was the
odd one out.

## Solution

I applied the docs layout to www without changing how redirects are
served:

- `apps/www/lib/redirects/static-redirects.json`: 220 one-to-one
entries, including fixed redirects to external `https://` URLs.
- `apps/www/lib/redirects/dynamic-redirects.js`: 14 entries with params,
splats, regex, escapes, or `has`.
- `apps/www/lib/redirects/index.js`: combines both (static first) for
`next.config.mjs` and `scripts/generateMdContent.mjs`.
- `apps/www/lib/redirects/redirects.test.ts`: checks for loops, chains,
duplicate sources, invalid sources and destinations (anchors, missing
`/` or `https://`), dynamic entries in the static file, and internal
destinations that do not exist.
- README for the folder, plus updates to `apps/www/README.md`,
`DEVELOPERS.md`, `CODEOWNERS`, and the `www-tests` path filter and
sparse checkout.

Bulk redirects are not part of this PR: www has 234 redirects, well
under the route limit, so they stay in `next.config.mjs`.

### Missing-destination check

Internal destinations are checked against the same sources the site
serves from:

- `app/` and `pages/` routes, and `public/` files.
- Blog, customer, event, and alternative slugs, derived the way
`lib/posts.tsx` derives them. Events with `disable_page_build` do not
count.
- Feature and `/go` page slugs.
- `.md` destinations must be a page that `generateMdContent.mjs`
publishes. An existing HTML page is not enough.
- `/docs/guides` destinations, against the docs content and guide
routes.

Other zones and build-generated files are not checked. A destination
with params is probed with one sample value, so value-specific loops or
chains are not caught. The README lists these limits.

### Behavior notes

- The rule set matches `master`, with one exception:
`/blog/2021/07/30/1-the-supabase-hackathon` now points at the canonical
slug `/blog/1-the-supabase-hackathon`. The old destination
`/blog/the-supabase-hackathon` also resolves today, because the blog
route matches posts by filename suffix. The check requires canonical
slugs.
- First-match results on `supabase.com` are identical on 241 probe
paths.
- Static entries now precede dynamic ones. On the `supabase.design`
host, 25 static sources that used to sit after its catch-all rule now
come before it. Those paths now take two hops to reach the design system
instead of one.
- Comments on static entries were dropped, because JSON has no comments.

## To test

1. Open the www preview and visit `/about`. It redirects to `/company`.
2. Visit `/buildersday`. It redirects to `/builderday`.
3. Visit `/sign-in`. It redirects to the dashboard sign-in page.
4. Visit `/blog/2021/07/30/1-the-supabase-hackathon`. It lands on the
hackathon post.

## Linear

- fixes GROWTH-1571
2026-11-30 15:52:59 +00:00
claude[bot]andClaude c4bbd65acb chore: add growth-eng as code owner on core telemetry senders (#54207)
<!-- claude-slack-attribution -->
_Requested by **Pam Chia** · [Slack
thread](https://supabase.slack.com/archives/C076KTY11DF/p1795791803872399)_

## Problem

**Before:** Growth Eng owns only the event catalog
(`packages/common/telemetry-constants.ts`). Changes to the PostHog
client (including the per-experiment `<experiment>_experiment_exposed`
events), the shared telemetry event sender and the telemetry standards
skill don't need a Growth Eng review. They can start new event streams
or sharply increase volume, and Growth Eng only sees the volume and cost
after they ship.

**After:** Growth Eng is a code owner on these core telemetry senders
and the telemetry standards skill, so GitHub requests a Growth Eng
review on these changes before merge.

## Solution

This PR changes only `.github/CODEOWNERS`. It adds three rules directly
under the existing `telemetry-constants.ts` line, which is unchanged. No
later rule matches any of these files, so Growth Eng is their owner.

- `/packages/common/posthog-client*` → `posthog-client.ts` and its test.
Sends `$pageview`, `$pageleave` and the `_experiment_exposed` events
directly to PostHog. Owner: growth-eng (no owner before).
- `/packages/common/telemetry-event*` → `telemetry-event.ts` and its
test. Builds every `/telemetry/event` request. Owner: growth-eng (no
owner before).
- `/.agents/skills/telemetry-standards/` → `SKILL.md`, the rules for
adding events. Owner: growth-eng (no owner before).

`GET
/repos/supabase/supabase/codeowners/errors?ref=growth/codeowners-telemetry-events`
returns no errors.

Not covered: individual `track(...)` and `sendTelemetryEvent(...)` call
sites in components, because CODEOWNERS works by path. New event names
still go through `telemetry-constants.ts`, which Growth Eng already
owns.

## Review instructions

1. Read the three rules under `telemetry-constants.ts` in
`.github/CODEOWNERS`.

## Checklist

Check all before review:

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_011aGhS9n5Vh49BK2WMq9h4Q

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-30 23:04:39 +08:00
Alexis Aguilar 6490f63e9b chore(codeowners): request a self-hosted review on self-hosted docs (DOCS-1805) (#54080)
## Problem

The self-hosted docs have an owner on the self-hosted team, but
`.github/CODEOWNERS` gives all of `/apps/docs/` to `@supabase/docs`
alone. A change to a self-hosted page doesn't request a review from the
people who own that content.
[#53996](https://github.com/supabase/supabase/pull/53996) merged that
way, and [#54013](https://github.com/supabase/supabase/pull/54013)
followed up on it.

Closes
[DOCS-1805](https://linear.app/supabase/issue/DOCS-1805/request-a-self-hosted-review-on-each-self-hosted-docs-pr)

## Solution

The self-hosted docs pages are owned by `@supabase/docs` and
`@supabase/self-hosted`, the team that already owns `/docker/`. Two
patterns cover them:

- `apps/docs/content/guides/self-hosting*`: the `self-hosting/` folder
and `self-hosting.mdx`
- `apps/docs/content/guides/**/*self-hosted*`: any guide whose file name
contains `self-hosted`, such as `grafana-self-hosted.mdx` and
`expose-self-hosted-queues.mdx`, in `.mdx` or `.md`

The last matching line in CODEOWNERS wins, so the new lines sit after
`/apps/docs/` and keep `@supabase/docs` as an owner. A PR that changes
one of these pages requests a review from both teams.

## Review instructions

1. Check that GitHub reports no CODEOWNERS errors: `gh api
"repos/supabase/supabase/codeowners/errors?ref=alexisa/DOCS-1805"`
returns `"errors": []`.
2. Check which files the two patterns match. They follow `.gitignore`
rules, so `git check-ignore` can list the matches:

   ```bash
printf
'/apps/docs/content/guides/self-hosting*\n/apps/docs/content/guides/**/*self-hosted*\n'
> /tmp/co.ign
git ls-files apps/docs | git -c core.excludesFile=/tmp/co.ign
check-ignore --no-index --stdin
   ```

The list has 25 files: the `self-hosting/` pages, `self-hosting.mdx`,
and the guides with `self-hosted` in the name.
3. After merge, open a PR that changes a self-hosted page, and check
that GitHub requests a review from `@supabase/self-hosted`.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide).
Doesn't apply: this PR changes only CODEOWNERS.
2026-11-25 14:32:23 -07:00
Alaister YoungandAlaister Young d2eb58a0e7 [FE-3106] (part 3) – refactor(studio): move account and top-level page bodies (#53212)
Moves the account and top-level app page bodies (`/account/*`,
`/organizations`, `/new`, `/new/$slug`, `/join`, `/claim-project`,
`/aws-marketplace-onboarding`, `/stripe-atlas-application`,
`/support/new`, `/support/link`, `/integrations/github|vercel/*`) from
`pages/**` into their TanStack route files and deletes the pages. Part
of the final pass of the TanStack migration (FE-3106). Part 3 of the
stack, and the first page-move PR.

**Depends on:** #53202

**Changed:**
- `routes/_app/account/**`,
`routes/_app/{organizations,new/index,support/*}.tsx`,
`routes/{new/$slug,join,claim-project,aws-marketplace-onboarding,stripe-atlas-application}.tsx`,
`routes/integrations/**` – page bodies inlined.
`next/router`/`next/link`/`next/head` → `useNavigate`, `Link`,
`<Navigate>` and inline `<title>`. `getLayout` dropped; every old
`getLayout` was checked against the route tree and matches
- `routes/aws-marketplace-onboarding.tsx` – reads `buyer_id` through
`validateSearch` + `Route.useSearch()`
- `tests/lib/route-render.tsx` – new `renderRoute(Route, { routeId, url
})` helper that mounts a file route in a memory router (with the app's
search serializers) so route components can be tested; used by the moved
tests
- `tests/lib/route-mock.ts` – the `next/router` mock now derives its
dynamic-route patterns from `routes/**` instead of globbing `pages/**`,
so tests keep parsing params as pages disappear
- `tests/routes/**` – page tests moved from `tests/pages/**` and
rendered through the route
- `.github/CODEOWNERS` – `pages/new/index.tsx` owner moved to
`routes/_app/new/index.tsx`

**Removed:**
- 19 files under `pages/account/**`, `pages/new/**`,
`pages/support/{new,link}.tsx`, `pages/integrations/**` and the
top-level pages listed above

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

## To test

- Open `/account/me`, `/account/security`, `/account/tokens`,
`/account/audit` – same Account layout, header title and sidebar as
before
- Open an old email-change link (`/account/me#message=...`) – lands on
`/account/security` with the hash
- `/account/tokens/scoped` – redirects to `/account/tokens`
- `/organizations` and `/new/<org>` – render with the same layout; "New
organization" links work
- Vercel install/marketplace flows – navigation keeps `?…` params

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-11-17 14:46:37 +09:00
Alaister YoungandAlaister Young 1854331fb6 [FE-3106] (part 2) – refactor(studio): move api handlers into route files (#53202)
Moves every `pages/api/**` handler into its TanStack server route under
`routes/api/**` and deletes `pages/api/**`, part of the final pass of
the TanStack Start migration (FE-3106). Handlers move verbatim and still
run through `toWebHandler`, so auth (`apiWrapper`), response shapes and
headers are unchanged. Part 2 of the stack.

**Depends on:** #53199

**Changed:**
- `routes/api/**` – each route now holds its handler (formerly the
`pages/api` default export) as a local `nextHandler`/named function.
Next-only `config`/`maxDuration` exports are dropped: `vite.config.ts`
already sets the function `maxDuration`, and `toWebHandler` parses
bodies itself
- `routes/api/ai/docs.ts` – Web-native handler inlined, `NextRequest` →
`Request`
- `lib/api/apiHelpers.ts` – `getPgMetaRedirectUrl` moved here from the
old `tables` handler, which the other pg-meta routes imported it from
- `eslint.config.cjs`, `.github/CODEOWNERS` – `pages/api` paths →
`routes/api`
- `tests/routes/api/**`, `lib/api/{generate-v4,rate}.test.ts`,
`scripts/__tests__/server-source-maps.test.ts` – call the route's
registered handler with a Web `Request` (`tests/lib/server-route.ts`);
the MCP query-validation cases now run against the native route

**Removed:**
- `pages/api/**` (102 files), including the Next twins of the
already-native `routes/api/mcp/index.ts` and `functions/$slug/body.ts`
- unused `ProjectSettings` types and the `node-mocks-http` dev
dependency

Parity: every route registers the same methods its handler serves. The
exceptions are `check-cname`, `get-ip-address`, `get-utc-time`,
`get-s3-keys`, `get-deployment-commit`, `cli-release-version` and
`connect`: in Next they answered any method, and their routes register
`GET` only, as before this PR.

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

## To test

- Load the table editor, SQL editor and Auth users on a self-hosted
build – `/api/platform/**` and `/api/v1/**` respond as before
- Use the Assistant and the docs search – `/api/ai/**` streams as before
- `GET /api/get-deployment-commit` – same JSON and `Cache-Control`

Ran typecheck, ESLint, lint ratchet, knip, Prettier, the TanStack build
and the full Studio vitest suite: all pass except
`lib/server/configcat.test.ts`, which also fails on `master` in an
environment with ConfigCat env vars set. Self-hosted E2E is CI-only.

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-11-11 22:24:43 +09:00
Kody Jackson 8eb64b767f chore(docs) - open humans.txt to any github org member (#53047)
## Problem

Docs team shouldn't be the only one who can approve `humans.txt`

## Solution

Adds a line without a dedicated codeowner, which opens it up to anyone
with write access to the org.
2026-11-05 11:41:28 -06:00
Jordi Enric ca6f972adb chore(codeowners): route legal reviews to frontend FE-4883 (#52688)
## Problem

Legal-only website changes request marketing review because they inherit
the `/apps/www/` code-owner rule.

## Fix

Assign legal content, page entry points, document assets, and dedicated
legal components and helpers to `@supabase/frontend`. Keep marketing
ownership for the rest of the website.

Closes
https://linear.app/supabase/issue/FE-4883/route-legal-document-code-owner-reviews-to-frontend

## How to test

- Confirm the legal overrides follow the broad website rule and name
only `@supabase/frontend`.
- Confirm ordinary website and blog paths still resolve to marketing.
- `git diff --check` passes. Prettier with `--ignore-unknown` passes;
CODEOWNERS has no supported Prettier parser.
- Runtime tests, typechecking, and browser QA do not apply to this
ownership-only configuration change.
2026-11-03 16:01:51 +01:00
Colum Ferry f55ee1dc5a chore(www): serve the CLI config schemas under /schemas (#52509)
## Problem

The Supabase CLI's config, project-config and `supabase.lock` JSON
schemas declare `$id`s under
`https://supabase.com/schemas/<name>/v<N>.json`, and editors such as
Even Better TOML fetch them from the `$schema` URL. Nothing is served at
that path yet, so those URLs 404.

## Solution

- Adds `apps/www/public/schemas` with v1 of the three schemas. They're
generated in supabase/cli, and from now on its stable releases open a PR
here when one changes (supabase/cli#7397)
- `/schemas/:path*` responses send `access-control-allow-origin: *` and
`cache-control: public, max-age=3600`, so browser-based editors and
validators can fetch them and a new release shows up within the hour.
Covered in `next.config.test.ts`
- `/apps/www/public/schemas/ @supabase/cli` in CODEOWNERS, so the CLI
team reviews those release PRs
- The folder is in `.prettierignore`. The CLI publishes these files byte
for byte, so reformatting them here would show up as a change on every
release

## Review instructions

1. Open `/schemas/config/v1.json` on the www preview
2. Check it returns the schema as JSON, with
`access-control-allow-origin: *` and the cache header (`curl -sI
<preview>/schemas/config/v1.json`)

Closes CLI-2865
2026-10-29 16:15:16 +00:00
Kody Jackson 9b4a47c6dc chore(kb) - update codeowners for KB (#51951)
## Problem

Have a new, more targeted group for KB approvals

## Solution

Updates codeowners to reflect

```
/apps/kb/ @supabase/knowledgebase
```
2026-10-21 11:37:54 -05:00
supabase-vercel-tedd[bot] 78eb416b03 chore: remove marketing as KB codeowner (#51622)
## Problem

#51196 added `/apps/kb/` to CODEOWNERS with both `@supabase/docs` and
`@supabase/marketing`. Because of that, every knowledge base change also
asks marketing for review. Marketing should not be a required reviewer
for KB.

## Solution

Remove `@supabase/marketing` from the `/apps/kb/` line only.
`@supabase/docs` still owns KB. All other CODEOWNERS entries, including
marketing's `/apps/www/` ownership, are unchanged.

```diff
-/apps/kb/ @supabase/docs @supabase/marketing
+/apps/kb/ @supabase/docs
```

## Review instructions

1. Check that the diff is a single line in `.github/CODEOWNERS`.
2. Confirm `/apps/kb/` is still owned by `@supabase/docs`.
3. Optional: `gh api
repos/supabase/supabase/codeowners/errors?ref=tedd/remove-marketing-kb-codeowner`
returns no errors.

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-10-13 20:49:14 +00:00
Kody Jackson 24307c02e5 chore(kb) - add codeowner line (#51196)
## Problem

Add in formal ownership line for apps/kb w/in codeowners
2026-10-13 08:14:00 -05:00
Greg RichardsonandClaude 1fe40e5706 chore: add @supabase/ai as code owners for studio AI paths (#50237)
Adds @supabase/ai as code owners for `apps/studio/lib/ai` and
`apps/studio/pages/api/ai`.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Chores**
  * Updated project ownership rules for AI-related areas.
* Future changes in these areas will be routed to the designated AI
maintainers for review.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Claude <noreply@anthropic.com>
2026-09-23 10:00:10 -06:00
Wen Bo Xie 2681a21f5c docs: add Personal Access Tokens guide with generated permission tables (#49732)
Add a guide that compares classic and scoped personal access tokens,
explains how account roles constrain token permissions, and walks
through creating and testing a project-scoped token. Include generated
tables mapping permissions to Management API endpoints and MCP tools,
and link the guide from docs navigation and Studio token sheets.

Move the scoped-token permission catalog from Studio into shared-data.
Studio and docs generation now share permission names, categories,
descriptions, risk metadata, modes, scopes, and display order.

Generate the tables from the shared catalog, OpenAPI
x-fga-permissions, and the downloaded MCP permission map. Exclude
Workers permissions until the feature is live.

Run regeneration through the docs Makefile, verify checked-in output in
CI, and refresh it in the weekly Management API workflow. Add Dashboard
and Docs ownership plus contributor guidance so permission changes stay
synchronized.
2026-09-01 12:30:56 +00:00
jose-ledesma c76a3006de chore: remove old group references from CODEOWNERS (#47763)
This PR cleans up CODEOWNERS after the infrastructure teams have been
renamed.

Removes old group references:
- @supabase/infra → (removed, now @supabase/platform)


The new group names are now in use and working correctly.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Chores**
* Updated ownership settings for one shared data area to reflect the
current team responsible for it.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-09 08:09:42 +00:00
Jeremias Menichelli 9519be0fa3 chore: Add docs team as CODEOWNERS (#47733) 2026-07-08 14:37:34 +02:00
jose-ledesma 3a3293abe1 chore: prepare CODEOWNERS for group renaming (#47131)
This PR updates CODEOWNERS to prepare for renaming infrastructure teams:

- supabase/infra → supabase/platform

The new group names are added alongside the old ones. Once the GitHub
teams are renamed, a follow-up PR will remove the old group references
at the bottom of the file.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

* **Chores**
* Updated repository code ownership configuration to expand the set of
teams responsible for a shared disk-limits component.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-01 09:17:21 +02:00
Alaister YoungandAlaister Young f8183479e7 chore(studio): switch to type: module and convert configs to ESM/TS (#44839)
Switch studio's package.json to `"type": "module"` so the package runs
as native ESM. This aligns the runtime module system with what we
actually write (`import`/`export`), improves tree-shaking, and reduces
friction with ESM-only dependencies.

**Changed:**
- `next.config.js` → `next.config.ts` – ESM imports/exports, proper TS
types, fixed type narrowing on redirect `has` and `basePath` fields
- `csp.js` → `csp.ts` – `module.exports.getCSP` → named `export
function`
- `tailwind.config.js` → `tailwind.config.ts` – ESM imports
- `postcss.config.js` – `module.exports` → `export default` (stays `.js`
since PostCSS doesn't support TS configs)

**Removed:**
- Unused `path` import in next config
- Deprecated Sentry `hideSourceMaps` option (default behavior in Sentry
v10)

**Added:**
- Type declaration for `config/tailwind.config` CJS package

## To test

- A general smoke test of studio should suffice

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Refactor**
* Modernized the Studio package to ES module style and improved
TypeScript typings and config declarations to reduce build/runtime
issues.
* Updated styling and post-processing configuration format for more
consistent tooling behavior.

* **Chores**
* Updated code ownership entries to reflect migrated/renamed
configuration files.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-04-14 18:44:28 +09:00
Charis 1355ea7db1 chore: temporarily remove pg-meta codeowners (#44577)
See https://supabase.slack.com/archives/C0161K73J1J/p1775482643470329
for context.

## Summary by CodeRabbit

This change is an internal configuration update with no user-facing
impact. It does not require release notes for end-users.
2026-04-06 14:48:25 +00:00
Andrey A. 26880c4b9b chore: add cli to codeowners for ./docker (#44446)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

dev-workflows => cli


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Chores**
  * Updated code ownership configuration for Docker-related files.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-04-01 18:03:51 +02:00
Joshen Lim 241f7bb721 Chore/shift manual queries into pg meta (#43692)
## Context

Related to FE-2557

Part of shifting manually written dashboard queries into
packages/pg-meta where
- pg-meta can be code owners of
- we can write tests for the queries 

This PR just shifts all the `.sql.ts` files that we previously created
into packages/pg-meta

There's still other areas where we need to shift over as well which I'll
address in subsequent PRs

## Notable changes

- `getTableRowsCountSql` -> Opted to shift `formatFilterValue` logic out
before calling this method (ref `table-rows-count-query`)
- `getDeleteOldCronJobRunDetailsByCtidSql` -> Opted to shift
`validatePageNumber` logic out before calling this method (ref
`CronJobsTab.useCleanupActions`)
2026-03-16 16:14:48 +07:00
Joshen LimandAli Waseem b94538268b Joshen/fe 2558 shift sql queries to contextual folders update codeowners (#42770)
## Context

Related to Dashboard Scalability, specifically having Postgres team as
CODEOWNERS for dashboard queries

This is just a clean up as we're currently piling manual queries into
one folder under `data/sql/queries`, whereas I reckon it'll be better
for each query to sit within their RQ folder for better context.

Am opting the naming format for files housing queries to be `*.sql.ts`,
and also updating CODEOWNERS to reflect as such

Next step will also be to shift all the dashboard queries within pg-meta
into studio itself as requested by the pg-meta team

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Refactor**
* Consolidated and reorganized internal module structure for the data
layer to improve maintainability and reduce redundancy.
* Streamlined import paths across components to align with new
consolidated module organization.

* **Chores**
* Updated code ownership patterns to reflect reorganized file structure.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Ali Waseem <waseema393@gmail.com>
2026-02-16 18:34:08 +00:00
Ivan Vasilov be781d49a0 chore: Remove the cms app from the repo (#42686)
This PR removes the `payload` `cms` app that was added for the marketing
blog posts. We never started using it, it just adds additional work in
keeping the dependencies updated.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Chores**
* Removed the CMS application and associated infrastructure, including
configuration files, build scripts, and environment management.
* Simplified project build configuration and removed CMS-related
dependencies from deployment workflows.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-02-11 12:23:24 +01:00
Sean OliverandCharis Lam 6bbe2c3297 feat(telemetry): add dev telemetry toolbar (#42259)
## Problem
We need a local-only UI to inspect client and server telemetry events
and override flags during development without touching non-local env
behavior. This work is intended to be shared across Studio, Docs, and
WWW.

## Changes
- Introduced a shared `dev-tools` package with the Dev Telemetry Toolbar
UI, trigger, and provider.
- Wired the toolbar into Studio, Docs, and WWW app shells (local-only
gating).
- Added a local-only `devTelemetry()` opt-in with storage gating and SSE
subscription.
- Wired client PostHog events into a local listener and re-exported
types.
- Added local flag override cookie support in the UI and CODEOWNERS for
the new package.
- Added unit tests covering local/non-local behavior and flag utilities.

## Testing
Manual (local only):
- Start each app locally: `pnpm dev:studio`, `pnpm dev:docs`, `pnpm
dev:www`
- Open the app, run `devTelemetry()` in the browser console
- Click around and confirm both client and server events appear (client
will be page views only)
- Verify feature flag overrides (PostHog + ConfigCat) persist and
restore correctly
- Confirm dismissing the toolbar clears local storage and hides the
trigger

Unblocked by https://github.com/supabase/platform/pull/29172

Resolves GROWTH-591

Demo:

[github.com/user-attachments/assets/60b376db-7440-4ada-82f5-d1bd4af4db3b](https://github.com/user-attachments/assets/60b376db-7440-4ada-82f5-d1bd4af4db3b)

Screenshots:

<img width="1368" height="972" alt="1"
src="https://github.com/user-attachments/assets/d2f20a0c-191f-4118-bb5e-15b25f5a54a9"
/>

<img width="1423" height="790" alt="2"
src="https://github.com/user-attachments/assets/115598e2-7287-49bf-9ed7-71ecc679dee3"
/>

<img width="1433" height="882" alt="3"
src="https://github.com/user-attachments/assets/51f666f2-9efc-410f-baec-378bdee9dbfe"
/>

<img width="608" height="483" alt="4"
src="https://github.com/user-attachments/assets/584d6cf5-1b2f-4cee-9e6a-d55ce2e3bae5"
/>

<img width="628" height="305" alt="5"
src="https://github.com/user-attachments/assets/991a9b39-578a-4565-b110-537a02040a53"
/>

<img width="659" height="447" alt="6"
src="https://github.com/user-attachments/assets/95ef405c-fffa-44af-bf6a-f974b780e3fc"
/>

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Developer Toolbar (local only): view client/server telemetry, inspect
events, and manage/override feature flags with persistent overrides,
filtering, and clear/reload.
* Client-side telemetry hooks: surface structured events to dev tooling
for realtime inspection.

* **Bug Fixes**
  * Fixed end-of-file newline in shared code.

* **Chores**
* Added dev-tools package, integrated provider and trigger across
Studio, Docs, and marketing sites, and added CODEOWNERS entry.

* **Tests**
  * Added comprehensive tests and test setup for the DevToolbar.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2026-02-06 11:46:53 -08:00
Jordi Enric ad5442153a fix: update chart position (#42503)
- updates chart tooltip position

BEFORE
<img width="486" height="392" alt="CleanShot 2026-02-05 at 13 47 52@2x"
src="https://github.com/user-attachments/assets/d1b77b6a-7e35-494c-9097-d900183a5c83"
/>
AFTER
<img width="704" height="486" alt="CleanShot 2026-02-05 at 13 48 27@2x"
src="https://github.com/user-attachments/assets/fbe71474-16ca-4dd3-8b03-8fa3289e3805"
/>


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Adjusted the positioning of chart tooltips in the logs visualization
for improved visibility and user experience.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-02-05 13:43:38 +00:00
Kevin Grüneberg 5c28235a68 chore: remove rory from codeowners (#42437) 2026-02-04 12:31:07 +07:00
Joshen Lim 9c244df9f1 Add columns to database indexes UI (#41152)
* Add columns to database indexes UI

* Nit

* Update codeowner
2025-12-09 22:27:23 +08:00
Andrey A. c82a0191c9 chore: add self-hosted team to codeowners and remove aantti (#40468) 2025-11-14 10:21:38 -03:30
Bobbie Soedirgo 20b5c203c7 chore: add @avallete as code owner for pg-meta package (#40161) 2025-11-13 12:53:34 -05:00
Greg Richardson 38cae5aa41 chore: @supabase/postgres as code owner for pg-meta package (#39817) 2025-10-23 12:45:31 -06:00
Andrey A. 31a50408a8 chore: add aantti to codeowners for ./docker (#39523) 2025-10-14 17:23:20 +08:00
Kevin Grüneberg dfb152ab8c chore: consolidate payment method components / ownership (#38578)
Security approval is required for PCI compliance. This means we need security approval wherever we embed Stripe for payment methods.

Security approval was previously very coarse and most billing changes required security approval unnecessarily.

This PR aims to move all files relevant for payment method display/changes into a single folder and adjusts the ownership to only require security approval for that.
2025-09-10 13:54:36 +08:00
Francesco Sansalvadore 2feda5ee19 cms www blog (#38045)
* show cms blog posts in www
* remove contentlayer from www
* outputFileTracingExcludes
* update remotePatterns
* fetch cms posts server-side with revalidation
* add cms env vars to turbo.json
* add www env vars to turbo.json
* include cms posts in www sitemap
* add migration to remove image from cms post
* update cms meta image mapping in www
2025-09-03 14:49:28 +02:00
Charis 3e25e4dd37 chore: remove troubleshooting codeowners (#37697)
Code ownership was temporary while ironing out problems with sync
workflow. It seems more stable now, so I'm removing codeownership to
make sure people aren't blocked on troubleshooting updates while I'm
away.
2025-08-05 14:22:23 -04:00
Pamela Chia 5f76c85dd1 chore: cleanup telemetry codeowners (#37396) 2025-07-23 17:18:07 +08:00
Ivan VasilovandAlaister Young 37e44bec9c feat: Add GTM (#35567)
* Add third-parties dependency for GTM. Reexport the GTM from the common package.

* Add the TelemetryTagManager to four of the production apps.

* Add the GOOGLE_TAG_MANAGER_ID env var as a turbo dependency to the 4 apps.

* Skip rendering the tag manager if the env var is not set or not running on the platform.

* Fix the prop type to be extracted from the component.

* Add default values for consent to GTM.

* Another try to mimic gtag function.

* Fix a link in www.

* Try another approach.

* try.

* Remove the data-redaction flag.

* Remove extra code.

* Send a sign-up event if GTM is enabled.

* Send only the email to GTM.

* Minor fixes.

* Remove third-parties from pnpm lockfile.

* Lets try to make studio work again.

* Add CSP rules for img loading for GTM.

* Add event for testing.

* Add www.googletagmanager.com to the CSP rules.

* Add Stape to CSP rules.

* Fix stape CSP.

* Clean up the code.

* Remove extra console.log.

* Fix the stape urls for CORS.

* Fix the wrong category for Stape URL.

* Add google ads urls.

* Bump the timeout.

* Add google.com to the img-src for google ads.

* update csp

* remove comment

* update to use google analytics without signals

* add stape to default-src in csp

* move csp to middleware

* add google ads support and fix middleware base path

* remove google tag manager / google ads references from csp. load via stape proxy instead

* add double click url to image src

* add Google Tag Manager URL to CSP configuration

* add ga4 urls to csp

* remove google urls from CSP

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
2025-06-30 10:35:47 +00:00
Kevin Grüneberg 4d4036e649 chore: update code owners or pricing (#36499)
Allow billing team to approve/make changes
2025-06-18 14:22:08 +08:00
Etienne Stalmans b492341ed1 chore: make MildTomato codeowner of packages (#35558)
* chore: make MildTomato codeowner of packages

* chore: make supabase/design package/ui owners
2025-05-26 13:40:03 +00:00
Pamela Chia 2e60c6c9a0 fix: codeowners for telemetry based on team (#34242) 2025-03-17 19:33:14 +01:00
Pamela Chia d50fa11757 feat: add homepage click events (#33005)
* feat: add homepage click events

* fix codeowners telemetry filepath
2025-01-22 17:20:47 -08:00
30c390c19c chore: unify telemetry event sending (#32861)
* chore: unify telemetry event sending

* organize some imports

* remove final useTelemetryProps

* add www telemetry actions typing and docs

* remove gaevents

* fix build

* move telemetry identify into PageTelemetry

* fix telemetry constants import

---------

Co-authored-by: Pamela Chia <pamelachiamayyee@gmail.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-01-22 23:52:32 +08:00
Long Hoang 5247a6f7e5 chore: add code owners for event documentation (#31191) 2024-12-17 09:36:09 +01:00
Etienne Stalmans 37a9a58880 chore: add security as codeowners (#30432)
Security need to review pages that contain payment processor content, as
per PCI-DSS.
2024-11-14 14:52:26 +01:00
Charis 4a82aabaf0 feat(docs): sync troubleshooting (#29933)
When a troubleshooting entry is created or updated in this repo, sync it to GitHub. This creates a new troubleshooting discussion if one does not exist, and updates the content on an existing troubleshooting discussion if it has changed.

To preserve the connections between GitHub discussions and Markdown files, record the discussion ID and URL to the database. The database ID is then written to the Markdown file, and a new PR is generated to commit the new Markdown with ID.

There is currently no mechanism to delete outdated discussions. That will be a follow-up.
2024-10-29 12:58:46 -04:00
Charis 182440c9ae chore: remove www redirects from codeownership (#28634)
As discussed on Slack, this unblocks docs PRs, which can be approved by
anyone on the Supabase team.
2024-08-14 10:11:08 -04:00
Inian 1b4682ed4f Update CODEOWNERS (#28602) 2024-08-13 13:58:39 +00:00
Thor 雷神 Schaeff 5a56fcc60e Update marketing as blog CODEOWNERS (#27853)
* Update CODEOWNERS

* Update .github/CODEOWNERS
2024-07-08 16:26:55 +08:00
Inian a13d1deb97 Update CODEOWNERS (#21562)
anyone maintainer should be able to approve blog updates
2024-02-26 23:55:47 +08:00
Inian b4fac0e449 Update CODEOWNERS (#19247) 2023-11-27 16:54:43 +08:00
Alaister Young cc2c7a987d chore: update studio codeowners (#19005) 2023-11-16 15:56:06 +11:00
Inian d75d8a8301 chore: update codeowners (#18227)
doc pages can be reviewed by any developer
2023-10-16 10:51:28 -03:00