Commit Graph
31484 Commits
Author SHA1 Message Date
Terry Sutton 0ffe63f062 add replication area to dashboard (#35946)
* First

* Update link

* Type issue
2025-05-30 13:31:37 -02:30
Ivan Vasilov 181f15752c chore: Move the files in ui-patterns under src folder (#36032)
* Move all components in ui-patterns into src folder. Add exports field for all files.

* Fix all apps to use the new ui-patterns.

* Fix the design-system build.

* Remove all unused rexports from ui-patterns index. Apps should use direct imports instead.

* Change the tailwind content property to include src folder of ui-patterns.

* Remove autoprefixer from the tailwind configs.

* Remove autoprefixer as a dependency.

* Fix the CVA conditions in FormLayout.
2025-05-30 12:46:22 +03:00
Stephen Morgan f202666790 fix: Sandbox email preview frame (#36010)
fix: sandbox email preview frame
2025-05-30 17:06:00 +12:00
Charis f58eead769 chore(docs): clean up environment variables (#36036)
Our environment variables are a bit of a mess, so cleaning them up:

- We have duplicate environment variables that resolve to the same thing
but just have different names, deduplicating all of these
- We have a .env.development (for publicly safe variables) and a
.env.example, we
really only need one
- Privately, we have a .env (for running scripts) and a .env.local (for
Next.js). Changing the dotenv source for scripts, so again we only need
one
2025-05-29 16:35:26 -04:00
Charis 33b9e1ed29 chore(docs): convert all scripts to esm (#35996)
Scripts currently use CJS, which is causing a bit of a mess when trying
to use shared utilities from the app. Converting everything to ESM so
there are fewer conflicts when adding new scripts going forward.
2025-05-29 15:44:55 -04:00
Charis aba0095bd7 feat(content api): add error endpoint (#35941)
* feat(content api): add error endpoint

Add an endpoint to return the details of a Supabase error, given the
error code and service.

Schema additions:

```graphql
type RootQueryType {
  "...previous root queries"

  """Get the details of an error code returned from a Supabase service"""
  error(code: String!, service: Service!): Error
}

"""An error returned by a Supabase service"""
type Error {
  """
  The unique code identifying the error. The code is stable, and can be used for string matching during error handling.
  """
  code: String!

  """The Supabase service that returns this error."""
  service: Service!

  """The HTTP status code returned with this error."""
  httpStatusCode: Int

  """
  A human-readable message describing the error. The message is not stable, and should not be used for string matching during error handling. Use the code instead.
  """
  message: String
}

enum Service {
  AUTH
  REALTIME
  STORAGE
}
```

* test(content api): add tests for top-level query `error`
2025-05-29 15:39:47 -04:00
Charis 4e547b31e8 ci(docs lint): fix workflow_run condition (#36038)
The originating workflow was changed so that lint failures fail the
workflow, so now we should be running the target workflow on failure,
not on success.
2025-05-29 15:26:02 -04:00
Charis a0a31f00e9 ci(docs lint): fix workflow for external lints (#35968)
Workflow for external lints still not working quite right.

1. The lint workflow should fail if linting fails, to block merge. Right
now the exit status of the linter is ignored; added a step to fix that.
2. The workflow_run event is not triggered by completion of the first
workflow. Couldn't find an obvious problem with the two, but saw online
that some people had problems with a quoted workflow name, so tried
renaming the workflows to avoid having to quote the names.
2025-05-29 14:46:49 -04:00
CoppleandCharis a61a39ff15 docs: compliance (#36016)
* Compliance docs

* lint spelling

* fixes headings

* Update apps/docs/content/guides/database/hardening-data-api.mdx

* ci: Autofix updates from GitHub workflow

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2025-05-29 19:35:25 +02:00
Jordi Enric 70bdeec24b add coverage option to ui-patterns (#35669)
add coverage option
2025-05-29 19:09:26 +02:00
Jordi Enric 21412b2e25 Add option to force sign out (#35991)
add option to force sign out
2025-05-29 19:09:16 +02:00
Monica Khoury bb8c3e591b Docs: fix broken link in security performance advisor features (#36031)
Docs: fix broken link in security performance advisor
2025-05-30 01:05:40 +08:00
Jordi Enric ba29cf187d Add copy schema to schema vizz (#34806)
* copy state

* add tooltip and better sql generation

* fix

* fix tooltip
2025-05-29 16:00:37 +00:00
Andrew Smith a2342c4207 docs(python): update realtime docs with async methods and notes (#36015)
* docs(python): update realtime docs with async methods and notes

* chore(docs): update with admonitions
2025-05-29 15:45:54 +00:00
Charis f0ff6cee8b fix(common): prevent errors when accessing local storage in certain browser setups (#36003)
fix(common): prevent errors when accessing local storage in certain
browser setups

Got many reports of errors from accessing localStorage on Safari,
probably due to certain user security settings that cause the browser to
throw an error on storage access.
2025-05-29 11:31:21 -04:00
hallidayo 943cf70934 fix: connect remix env name (#36020)
env name change
2025-05-29 15:29:57 +00:00
Kevin Grüneberg fb03d0414a chore: remove lw14 tickets (#36030) 2025-05-29 23:11:29 +08:00
Terry Sutton 62bc992baa Fix storage mime type not getting set on create (#36023) 2025-05-29 12:18:50 -02:30
Kevin Grüneberg 25cea567b5 docs: shared pooler egress (#36009) 2025-05-29 22:03:41 +08:00
Cemal Kılıç f6b316e1cf chore(docs): update required claims for access token (#36021)
docs: update required claims for access token
2025-05-29 15:35:15 +02:00
Alaister Young c0c3710bde fix(studio): bypass pg meta route on self-hosted for ai endpoints (#35812)
* fix(studio): bypass pg meta route on self-hosted for ai endpoints

* fix hosted

* wrong way round
2025-05-29 20:16:49 +08:00
Alaister Young 9b1f64fbfa fix: don't refetch settings on inactive projects (#36017) 2025-05-29 17:35:36 +08:00
Ivan Vasilov 9ee5779a30 chore: Update images for the trigger without superuser blogpost (#36004)
Update images for the trigger without superuser blogpost.
2025-05-29 09:43:49 +02:00
divit e394f0cf7e fix: select newer postgres version as default (#35961) 2025-05-29 10:20:15 +05:30
Charis bf45616ada chore(docs): refine sentry filter (#36002)
Right now we're filtering out third-party extensions by looking for
stack traces that don't touch 'app:///_next'. However, third-party stack
traces do include the Sentry code that sends the error, and that
originates in 'app:///_next'. We need to filter out any events that do
not have 'app:///_next' events beyond that one Sentry frame.
2025-05-28 17:55:40 -04:00
Charis 0e2183f5b1 feat(docs): add github link to troubleshooting articles (#36000) 2025-05-28 16:06:50 -04:00
Terry Sutton f908da2ccf Fix sorting in storage explorer (#35975)
* Fix sorting in storage explorer

* Fix check size
2025-05-28 16:07:11 -02:30
Charis 8aea2cd6c7 seo(docs): canonical links for reference pages (#35977)
To avoid content duplication warnings, direct all canonical links for
reference pages to the newest library version.
2025-05-28 10:51:32 -04:00
Stojan DimitrovskiandJordi Enric 1862fe405b feat: add last used timestamp in the last 24h to legacy api keys (#35809)
* feat: add last used timestamp in the last 24h to legacy api keys

* address comments by @jordienr

* fix prettier

---------

Co-authored-by: Jordi Enric <jordi.err@gmail.com>
2025-05-28 11:58:39 +02:00
Alaister Young 367ffdd893 fix: get table schema on click (#35989) 2025-05-28 11:00:43 +02:00
Chris GwilliamsandCharis Lam 34022bd570 Docs: Add section on logical replication for setting up CDC from Supabase to a destination (#27087)
* add replication section with instructions for services

* address comments and neturalise tone

* formalised overview and simplified faq

* reviewdog silenced (mostly)

* move individual tools into tab group and reduce mention of subscriptions

* fix tab components

* correct postgres typos and others

* removed individual service pages and added section for monitoring slots

* update nav menu and add information for monitoring

* update monitoring docs

* added example queries for tracking replication and removed overview

* added spelling rules for Xmin and cleaned up CDC format

* edits & reorganization

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2025-05-28 11:28:48 +03:00
Terry Sutton 075bc01a35 Fix jwt infinitely loading (#35848) 2025-05-27 16:14:28 -02:30
Charis 75567e4075 chore(docs): remove unnecessary toml package (#35970)
We have two packages for handling toml, which is a bit unnecessary.
Settle on smol-toml as it is under more active maintenance.
2025-05-27 11:57:27 -04:00
Apocalypseong c498a207ee fixed error #35952 (#35956) 2025-05-27 15:25:22 +00:00
github-actions[bot]andgithub-docs-sync-bot de300669ac [bot] sync troubleshooting guides to db (#35954)
Co-authored-by: github-docs-sync-bot <github-docs-sync-bot@supabase.com>
2025-05-27 15:20:38 +00:00
felipe stival cade7f136f chore: add "Felipe Stival" on humans.txt (#35962) 2025-05-27 11:56:17 -03:00
CharisandTerry Sutton 37d92e81c3 refactor(docs): turn auth error codes table into data file (#35857)
* refactor(docs): turn auth error codes table into data file

Take the Markdown error codes table and turn it into a data file
instead. This makes it easy to parse and reuse in other places besides
Markdown documents.

* Update apps/docs/content/errorCodes/authErrorCodes.toml

Co-authored-by: Terry Sutton <saltcod@gmail.com>

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2025-05-27 14:10:40 +00:00
Charis 5dc929a584 chore(docs linter): fix external prs workflow (#35785)
The external PRs workflow is still broken: commenting on the PR with the
lint results doesn't work because pull_request events triggered from
forks do not have write permissions.

Following GitHub recommendations, I broke it down into two workflows:

1. First workflow writes the lint results (if any) to an uploaded
artifact.
2. Second workflow (triggered by workflow_run and thus has write
permissions) downloads the artifact and posts the results as a PR
comment.
2025-05-27 10:10:04 -04:00
Charis 22ae9a2caf feat(db): error table updating function (#35819)
* feat(db): error table updating function

Add a function for updating the error table (to be used for syncing the
repo contents to the database).

* feat(db): add function to delete unused error codes

Add a DB function to delete any unused error codes (actually a soft
delete due to a rule on the content.error table). This allows syncing
the repo state to the DB state by removing any entries that have been
removed from the repo.
2025-05-27 10:05:40 -04:00
Charis bf3bada7fd test: run supabase locally during test (#35947)
Alter the docs test script so it spins up Supabase locally. Will allow
for end-to-end tests against the local DB.

Also small alteration to one of the test files to silence an annoying
(but intended) error.
2025-05-27 10:00:21 -04:00
9318404e61 Feat/api keys rollout prep (#35559)
* first pass

* init

* updated types

* fix up key reveal

* Update QuickKeyCopy.tsx

* remove quick key copy

* api key pill now only allows reveal and copy if you have perm

* Update LegacyAPIKeys.tsx

* fix up layouts

* fix copy

* Fix action menu dropdown position, few small nudges

* Remove unused files.

* Remove the hardcoded and rename the feature flag for basic API keys.

* add support for name and description, some smaller improvements

* Fix the trims for the description.

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>
2025-05-27 15:50:42 +02:00
Francesco Sansalvadore 4f2b09b61f neon page (#35759)
* switch from neon page init

* postgres platform section

* dx section visuals

* neon page graphics

* last touches

* disable crawl to page

* fixes

* polish

* copy change
2025-05-27 15:05:05 +02:00
Alaister Young 4ea088d93d chore: respect retry-after header for rate-limiting (#35957) 2025-05-27 19:37:05 +08:00
Pamela Chia f8b3bfc4d6 Feat/privacy policy update (#35923) 2025-05-27 18:42:35 +08:00
Jordi Enric 88066cec59 Add error boundary to AI Assistant (#35850)
* add error boundary

* fix typerr

* m

* use Alert

* update message
2025-05-27 12:20:29 +02:00
Jordi Enric 7eaaaae8f7 Add query ids to reports (#35836)
add query ids to reports
2025-05-27 10:02:44 +02:00
Jordi Enric d61d32f007 fix new replica click (#35808)
* add portal true

* fix new replica click
2025-05-27 10:02:36 +02:00
Charis adb851206b docs(troubleshooting): make docs on server-side admin clearer (#35815)
The "required properties" that need to be disabled are actually listed
in the code block, but it's not entirely clear from the way that it's
written that it's the case, leading to user confusion. Added a line to
make that explicit.

Fixes DOCS-233
2025-05-26 21:49:47 -02:30
Prashant Sridharan 4230c5a3dc Added some missing features from LW14 to the feature catalog (#35937) 2025-05-26 22:06:40 +01:00
Peter e8f4273499 fix default enable state for auth hooks to be true (#35942) 2025-05-26 15:23:29 -05:00