Commit Graph
6192 Commits
Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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 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
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
Hieu 5abafd7954 feat: improve org vs project scopes roles definition (#35920) 2025-05-26 15:43:52 +07:00
Han Qiao 4c91016d6d docs: default cli installation guide to npm (#35833)
* chore: default cli installation guide to npm

* Update getting-started.mdx
2025-05-26 13:02:07 +08:00
Charis 17efbe1964 chore(docs): loosen overly strict sentry filter (#35882)
Should've double-checked this before applying the filter =_=""" but
apparently filtering out `app:///` also filters out legitimate events,
since those files are prefixed by `app:///` as well.

Instead let's keep only `app:///_next` since that should include all our
static JS assets.
2025-05-23 14:53:05 -04:00
Han Qiao 806e6e92c5 docs: update cli installation step for pnpm (#35877) 2025-05-24 00:10:02 +08:00
Kamil Ogórek e71fa28aae docs(api): Remove beta from build-a-supabase-integration.mdx (#35878) 2025-05-23 16:08:21 +00:00
GaryAustin1andCharis 9ff0a635ad Adding note to broadcast_changes that is uses a private channel. (#35856)
* Adding note to broadcast_changes that is uses a private channel.

2 customers confused so far on need for RLS and private flag set to use this function.

* Update apps/docs/content/guides/realtime/subscribing-to-database-changes.mdx

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2025-05-23 14:20:45 +00:00
Charis b4fb59b9ab chore(docs): drop sentry errors from extensions and user apps (#35854) 2025-05-23 10:01:54 -04:00
James b1060751b9 Add rel=edit attribute to GitHub docs edit link (#35678)
Update GuidesMdx.template.tsx
2025-05-23 10:59:29 +00:00
654484408a docs: add web3 docs (#35650)
* docs: add web3 docs

* docs: prettifier for auth-web3

* apply suggestion from @cemalkilic

Co-authored-by: Cemal Kılıç <cemalkilic@users.noreply.github.com>

* apply suggestion from @charislam

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* more docs updates

* more fixes

---------

Co-authored-by: Cemal Kilic <cemalkilic96@gmail.com>
Co-authored-by: Cemal Kılıç <cemalkilic@users.noreply.github.com>
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2025-05-23 10:28:59 +02:00
Stephen Morgan 9fa1b66826 Fix: slack integration and sample code (#35862)
* fix:issue with slack integration

* fix: open redirect in sample code
2025-05-23 16:30:36 +12:00
Wen Bo Xie bcc3922fd9 fix: update pgmq official docs link (#35855) 2025-05-22 21:08:35 +00:00
Charis b7c83df437 chore(docs): turn off sentry sends for local dev (#35852)
* chore(docs): turn off sentry sends for local dev

No point wasting quota on local dev, it's easy enough to disable the if
statements if you need to debug something with Sentry.

* ci: Autofix updates from GitHub workflow
2025-05-22 15:23:27 -04:00
Charis 6fcb98d927 docs(pg17): add docs on pg17 upgrades (#35431) 2025-05-22 14:07:06 -04:00
Charis 3370ecc7b6 fix(docs): graphql page links (#35846)
GraphQL page links were not being transformed properly.

Fixes #35720
2025-05-22 11:54:32 -04:00
Monica Khouryandgithub-actions[bot] c68374fa1e Docs: add guide migrate auth users between projects (#35797)
* Docs: add guide migrate auth users between projects

* Apply suggestions from code review

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update apps/docs/content/troubleshooting/migrating-auth-users-between-projects.mdx

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update apps/docs/content/troubleshooting/migrating-auth-users-between-projects.mdx

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update apps/docs/content/troubleshooting/migrating-auth-users-between-projects.mdx

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-05-22 11:09:24 +03:00
Eduardo Gurgel 9fde328770 docs(realtime): include DatabaseLackOfConnections error code (#35824) 2025-05-22 13:15:50 +12:00
Charis 3bfc74812e fix(troubleshooting sync): use proper graphql variables (#35813)
Don't know why I was using string interpolation instead of GraphQL
variables for the GitHub API calls, leading to all kinds of escaping
problems. Changed to using GraphQL variables properly.
2025-05-21 17:01:56 -04:00
EmilandCharis 863de8a2e9 update documentation on self-hosted psql timezone management (#35801)
* update documentation on self-hosted psql timezone management

* Update apps/docs/content/guides/database/postgres/configuration.mdx

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2025-05-21 17:03:59 +00:00
Charis 963eabc730 chore(docs): log caught page errors in sentry (#35810)
test to try seeing where prod-only error is being thrown
2025-05-21 11:50:17 -04:00
Charis b5921d10cf chore(content api): reduce max depth (#35530)
Reduce max depth for validation from 9 to 5 because we foresee no
legitimate queries that will require anything so deep.
2025-05-20 19:52:32 -04:00
Charis ffceb79fd6 chore(docs): add sentry monitoring (#35529) 2025-05-20 22:57:34 +00:00
Charis 959f5a4575 fix(content api): bug with returning edges (#35783)
There was a bug when returning edges because it wasn't accounted for
when getting the requested fields info.

Added test cases to catch this.
2025-05-20 15:51:14 -04:00
Hieu Vu 60d9202bdd Docs: Improve chip text in Dart and Kotlin examples (#35740)
Improve chip text in dart and kotlin examples
2025-05-20 16:02:59 +00:00
Charis 419ae4707f chore(docs): bump linter version (#35724) 2025-05-20 11:54:35 -04:00
Charis 109ad11b66 docs(auth): mention that leaked password protection only on paid plans (#35725) 2025-05-20 11:44:04 -04:00
Charis ac04e0ddfc test(content api): add prod smoke tests for searchDocs (#35528) 2025-05-20 11:43:14 -04:00
Copple 5bc5af2b47 chore: update cli reference doc (#35765) 2025-05-20 11:55:16 +08:00
Tyler 87ce4bb886 docs: Make the broadcast from database functions security definer (#35760)
Make the broadcast from database functions security definer
2025-05-20 00:46:00 +09:00
Pierre Vieira df9f581eee Fix: update extension name for Google login in auth-google.mdx (#35704) 2025-05-16 19:56:42 +00:00
Stojan Dimitrovski 554290b44c docs: mention processLock when using react native (#35076) 2025-05-16 20:00:30 +02:00
Pierre Vieira 8e43416557 Update auth-google.mdx to reflect the new Auth object (#35681) 2025-05-15 15:41:41 +00:00
Ofir Levitan 2f475ae9f9 remove dart invoke example that's not relevant (#35672)
removed example
2025-05-15 15:09:04 +00:00