Commit Graph
1169 Commits
Author SHA1 Message Date
Tyler e6eaddbb54 docs: Removes overrideParams from the docs code (#21797)
Removes overrideParams from the docs code
2024-03-06 14:42:10 +09:00
Rodrigo Mansueli cb4ee4c6a0 feat: add edge functions headers page (#21784)
* feat: add edge functions headers page

* Update functions-headers.mdx
2024-03-05 14:44:43 -03:00
Tyler 64863f407f docs: Add params option to reference docs so that non-js client libs can add parameters (#21708)
* Adds params option for reference docs

* move params below description

* Apply suggestions from code review

* Update apps/docs/spec/supabase_dart_v2.yml
2024-03-05 15:06:07 +09:00
Minh AuandCharis fb9e6aa9b1 Sync NextJs Quick Start and Web App Tutorials (#21718)
* rename 'web app tutorials' to 'web app demos'

* replace auth helper with server-side auth

* add more descriptive instructions

* fix small typos

* create a section on supabase utitlies

* update middleware section to include utilities

* update supabase auth ui to include the utilities

* add a login/signup form

* replace supabase auth ui section with a note

* update PCKE section to use /auth/confirm route instead of /auth/callback

* update Account Page section to use utilities and switch locations

* update Sign out section to use utilities

* update bonus section to include utilities

* minor fixes

* Apply suggestions from code review

* format

* format

* fix js examples

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-03-05 01:04:48 -05:00
Madhav BansalandCharis 70c118df90 Guide to Setting Up TextLocal as Your Phone Login Provider (#21499)
* Add TextLocal SMS Login to NavigationMenu.constants.ts and create guide for Phone Auth with TextLocal

* Fix typo in Textlocal SMS Login

* Update Textlocal integration and documentation for DLT compliance.

* Addressed comments

* Update Textlocal SMS Login name

* Update Textlocal SMS Login name to 'Textlocal SMS Login (Community Supported)'

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-03-05 01:11:57 +00:00
Thor 雷神 SchaeffandCharis 7ce6958030 feat: add rbac claim auth hook. (#21263)
* feat: add rbac claim auth hook.

* feat: get user role from jwt.

* chore: update full-schema.

* feat: add RBAC guide.

* feat: use plpgsql.

* Apply suggestions from code review

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

* chore: make top level claim.

* chore: set search_paths.

* chore: accessing custom claims.

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-03-04 14:24:32 +00:00
CharisandHan Qiao 538fb7ee0c docs: add federated terraform docs (#21307)
Co-authored-by: Han Qiao <sweatybridge@gmail.com>
2024-03-02 03:17:50 +00:00
Charis e444d337f1 chore: remove ipv4 deprecation banners (#21589) 2024-02-27 14:38:41 +08:00
Charis 7cf2eae953 fix: statically build the right nav on each page (#21469)
Before: All pages have the Home nav menu in static HTML, which is blown away and replaced by the proper nav menu upon hydration. This leads to jankiness when the page first loads and an unpleasant flash of the wrong nav menu (especially obvious on the JavaScript ref page, which takes a long time to process and rerender the nav).

Now: All pages have their correct nav menu in static HTML.
2024-02-23 11:38:06 -05:00
Charis b0b8b6b6e3 refactor: finish moving mdx to content directory (#21321) 2024-02-16 13:43:02 -05:00
754ee55cd0 chore: update themes and add dark-new theme set (#20865)
* chore: update themes and add dark-new theme set

* chore: update

* add deep dark css theme

* fix issue with wrong class

* chore: add `bg-studio` as a custom remapped color for studio background

* updated surface classes to use a surface-75.

* update backgrounds and borders

* Update CardButton.tsx

* Update NavigationIconButton.tsx

* chore: add theme selection

* Update package.json

* Update index.ts

* Update package.json

* update alias

* Update ThemeSettings.tsx

* chore: split up theme support

* remove old code

* Update index.ts

* add back in

* Update ThemeSettingsOld.tsx

* fix issue with system theme leaking through

* reset themes

* update imports

* packagelock updated

* Update ThemeSettingsWithPreferredTheme.tsx

* Update system.svg

* Update NavigationIconButton.tsx

* Update NavigationBar.tsx

* update

* Update light.css

* updated some colors

* light mode updated

* hacked

* prettier

---------

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>
2024-02-15 16:56:18 +01:00
Abishya 718fead2e5 New billing FAQ documentation (#21258)
* New billing FAQ documentation

This documentation covers frequently asked questions around subscription plans, payments, invoices and billing in general.

* Corrected the misspellings (replacing 'z' with 's').
2024-02-15 10:52:12 +08:00
Charis 42723d8232 refactor: move ai, realtime, functions, remaining auth docs to content directory (#21259) 2024-02-14 17:39:05 +00:00
Ivan VasilovandTerry Sutton 5754c23abb feat: Move some components into ui-patterns (#20774)
* Change all imports in the ui package which import via the @ui shortcut.

* Add a new ui-patterns package. Add it to all apps.

* Migrate PrivacySettings from ui to ui-patterns.

* Migrate ConsentToast from ui to ui-patterns.

* Remove providers folder from ui package.

* Move GlassPanel.

* Migrate IconPanel.

* Migrate TweetCard.

* Migrate ThemeImage.

* Remove LWXCountdownBanner.

* Migrate CountdownWidget.

* Migrate SchemaTableNode.

* Migrate ExpandableVideo.

* Migrate ThemeToggle.

* Fix bunch of imports in the docs app.

* Revert some unnecessary changes.

* Expand the README.md.

* Fix the tailwind configs, they were using old folder structure.

* Fix leftover merge conflicts.

* Remove a deleted page in master.

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2024-02-12 12:44:00 +01:00
Charis 8a3201de35 fix: unescaped double quotes in combobox search (#21161)
Combobox also uses `cmdk` under the hood, which in the last update seems
to have changed the way it creates the query selector, so double quotes
now need to be escaped.
2024-02-09 15:27:09 -05:00
3ebb8ee747 Add docs for unsupported operations and replication (#20896)
* add docs for unsupported operations and replication

* ci: Autofix updates from GitHub workflow

* Update NavigationMenu.constants.ts

Co-authored-by: Bobbie Soedirgo <bobbie@soedirgo.dev>

* Update apps/docs/pages/guides/database/postgres/roles-superuser.mdx

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

* Update apps/docs/pages/guides/database/postgres/setup-replication-external.mdx

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

* Update apps/docs/pages/guides/database/postgres/roles-superuser.mdx

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

* Update apps/docs/pages/guides/database/postgres/setup-replication-external.mdx

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

* Update apps/docs/pages/guides/database/postgres/setup-replication-external.mdx

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

* Update apps/docs/pages/guides/database/postgres/setup-replication-external.mdx

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

* Update apps/docs/pages/guides/database/postgres/setup-replication-external.mdx

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

* Update apps/docs/pages/guides/database/postgres/setup-replication-external.mdx

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

* Update apps/docs/pages/guides/database/postgres/setup-replication-external.mdx

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

* address review comments

---------

Co-authored-by: github-tidy-bot <github-tidy-bot@supabase.com>
Co-authored-by: Bobbie Soedirgo <bobbie@soedirgo.dev>
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-02-09 11:24:09 +00:00
Charis e20038e2f2 refactor: move auth guides into content directory (#20777)
Begin the process of moving our MDX files into their own content directory.

Fixed a few minor bugs re: ToC and tabs not rerendering consistently on page navigation. (The ToC thing wasn't a problem before the refactor, the tabs thing is a problem on prod.)

Moved MDX files can't import their own components, so everything they require needs to be back in the component prop for mdx-remote's serializer. Cleaned this up a bit and lazy-loaded heavy/rare stuff. Also, the component prop doesn't take arbitrary objects (only actual components), so imported data has to be wrapped in a component.
2024-02-07 17:25:08 +00:00
Kevin Grüneberg f7e60bf324 chore: upgrade prettier/eslint + autofix (#20785) 2024-01-30 10:54:02 +08:00
Charis fee05a03b9 docs: add server-side auth guide for nextjs (#20559) 2024-01-25 19:11:13 +00:00
Charis 2ee8fb8c41 fix: screen reader accessibility of homepage (#20654) 2024-01-23 16:04:44 +00:00
4fb6390303 chore: update edge functions ci/cd guide (#20652)
* chore: update edge functions ci/cd guide

* Apply suggestions from code review

* chore: run prettier

---------

Co-authored-by: Han Qiao <sweatybridge@gmail.com>
Co-authored-by: Qiao Han <qiao@supabase.io>
2024-01-24 01:45:08 +11:00
Francesco Sansalvadore 83db476a17 ipv4 banners (#20666)
add ipv4 deprecation banner in www
2024-01-23 14:12:08 +01:00
Inian ae6fd68cee ipv4 addon docs (#20659)
* ipv4 addon docs

* review suggestions
2024-01-23 09:03:06 +00:00
Charis ef643f12dd make docs ipv4 banner non-dismissable (#20651) 2024-01-23 15:32:53 +11:00
Charis fb4fd01f0b fix docs nav dependency array (#20645) 2024-01-22 20:43:51 -05:00
Charis 06de0e23a0 add ipv4 deprecation banner to docs (#20641) 2024-01-23 11:08:43 +11:00
Charis 01c8c9e165 feat: add admonition about ipv6 (#20639) 2024-01-23 10:08:20 +11:00
Charis 2a0c0e06b8 readd docs api config variables with fixes (#20309) 2024-01-23 07:53:10 +11:00
Lakshan Perera 6912865aa6 chore: added a guide for edge functions routing (#20616) 2024-01-23 03:46:13 +11:00
ClarenceandCharis 40441af6f1 chore(docs): Fix key prop error in RefFunctionSection component (#20418)
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-01-15 19:51:40 +00:00
egorandCharis fb30063d41 docs: add form to estimate realtime throughput (#20260)
* docs: add form to estimate realtime throughput

* fix: compute select resetting rls and filters

* fix: typos

* docs: info on compute impact on realtime streaming

* docs: add 200k realtime test results

* docs: fix realtime single thread processing desc

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

* docs: fix copy for realtime throughput estimation

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

* fix: review comments and add collapsed table view

* fix: change concurrency to connected clients

* docs: add rt 100k test results

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-01-15 14:24:47 +04:00
Clarence 4a0702110c chore: added missing key prop (#20403) 2024-01-13 18:59:58 +00:00
ClarenceandCharis c9ad03e4ac chore(docs): added missing key prop in CliCommandSection component (#20384)
docs: added missing key prop in CliCommandSection component

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-01-12 19:47:24 +00:00
ClarenceandCharis 974c534e4b chore(docs:) added missing key prop in CliGlobalFlagsHandler component (#20385)
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-01-12 19:46:12 +00:00
Clarence aaaa7272fc docs: Add missing key prop in Footer component (#20361)
* docs: Add missing key pro in Footer component

* formatted the code
2024-01-12 00:59:09 +00:00
Charis 94a07fe724 remove or warn about getSession calls in docs (#20308) 2024-01-10 14:30:26 +00:00
Charis 10da8f3f31 Revert "feat: display api urls and keys instead of placeholders in do… (#20302)
Revert "feat: display api urls and keys instead of placeholders in docs (#19672)"

This reverts commit 0e8ee2e890.
2024-01-10 05:45:44 -05:00
Thor 雷神 SchaeffandCharis 32771601ce feat(quickstarts): Laravel and Rails. (#20264)
* feat(quickstarts): Laravel and Rails.

* Apply suggestions from code review

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

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-01-10 07:48:05 +00:00
6d121f1546 feat(dashboard): Add column-level privileges management (#13745)
* add privileges page

* fix

* fix: could have both global and column-specific privileges + is global per privilege

* Trigger Build

* load permissions data for current table only

* fix style for light theme

* add a guide to Privileges

* Update apps/docs/pages/guides/auth/column-level-security.mdx

Co-authored-by: Greg Richardson <greg.nmr@gmail.com>

* Update apps/docs/pages/guides/auth/column-level-security.mdx

Co-authored-by: Greg Richardson <greg.nmr@gmail.com>

* Update doc

* Update docs

* progress moving privileges to pg-meta

* split up column privileges and table privileges

* adds loading state to toggles

* Add feature flag, move from auth section to database section

* Cleanup

* Update meta store table lists, add header warnings, update docs

* Add alert if any columns have privilages

* Spelling

* fix api.d.ts

* fix link

* move to auth pages

* only show editable schemas

* limit roles

* auto select first table

* remove roles meta store

* inline toggling

* apply privileges all at once

* add preview and use new switch component

* fix spelling

* handle long column names

* warn users about losing changes when changing schemas/tables

* remove strange docs link

* fix feature preview after reload

* use shadcn select

* Update select.tsx

* Minor UX fixes

* Update toast

* Update feature preview image for cls

* update cls warnings

* update warnings

* fix toast message

* Add migration alert to preview page

* Add link to CLS from feature preview, and add empty state on CLS page if feature preview is not enabled

* Shift local storage keys hard code to lib/constants

---------

Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>
Co-authored-by: Greg Richardson <greg.nmr@gmail.com>
Co-authored-by: Terry Sutton <saltcod@gmail.com>
Co-authored-by: Alaister Young <a@alaisteryoung.com>
Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-01-10 17:39:03 +11:00
CharisandJoshen Lim 0e8ee2e890 feat: display api urls and keys instead of placeholders in docs (#19672)
**feat:** adds a component to display API endpoints and anon keys in docs if user is authenticated
makes the getting started UX smoother so users don't have to jump back and forth between docs and trying to find their keys in dashboard

**out of scope:** it would be very cool to display these directly in the code blocks. I looked into it and it would require quite a bit of work forking and modifying code-hike, so out of scope for now

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-01-09 15:00:31 -05:00
ClarenceandAlaister Young 432de2fc69 chore: clean up on empty className attributes (#20203)
clean up on empty className attrib

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2024-01-08 05:49:28 +00:00
Kevin Grüneberg 129b3d927a chore: move specs to docs folder (#20136) 2024-01-03 18:54:23 +01:00
58de4a4f1b feat: add postgreSQL Hooks docs (#19310)
* feat: initial commit

* feat: add mfa verification hook

feat: update docs

fix: add section on writing own hook

feat: update guide

* feat: temp comit

* feat: update files

* feat: fix link

* fix: update copy

* Apply suggestions from code review

* feat: restructure content

* feat: subclass examples into accordions

* feat: reinstate  backticks

* Apply suggestions from code review

Co-authored-by: Kang Ming <kang.ming1996@gmail.com>

* Apply suggestions from code review

Co-authored-by: Kang Ming <kang.ming1996@gmail.com>
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/pages/guides/auth/auth-postgres-hooks.mdx

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

* Update apps/docs/pages/guides/auth/auth-postgres-hooks.mdx

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

* Update apps/docs/pages/guides/auth/auth-postgres-hooks.mdx

Co-authored-by: Kang Ming <kang.ming1996@gmail.com>

* Update apps/docs/pages/guides/auth/auth-postgres-hooks.mdx

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

* refactor: dump hooks into table

* refactor: restructure content

* refactor: change structure

* feat: add information about required claims

* feat: move claims into table

* feat: update structure

* feat: update with warning about jsonb operator

* Apply suggestions from code review

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

* feat: remove image of dashboard, address more comments

* feat: add additional plv8 and pg_net examples

* feat: swap out image, use 2 space tabs

* feat: format email requests

* Update apps/docs/pages/guides/auth/auth-postgres-hooks.mdx

Co-authored-by: Kang Ming <kang.ming1996@gmail.com>

* docs: rewrite headers to active

* feat: add instructions on storing in vault

* Apply suggestions from code review

Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>

* refactor: rephrase docs

* feat: drop headings

* chore: delete unused lines

* feat: address changes

* feat: rename fields

* feat: update example from testing

* fix: moinor owrding change

* Apply suggestions from code review

* Update apps/docs/pages/guides/auth/auth-hooks.mdx

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

* Update apps/docs/pages/guides/auth/auth-hooks.mdx

* Apply suggestions from code review

Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>

* feat: make tabs active

* fix: remove unused files

---------

Co-authored-by: joel@joellee.org <joel@joellee.org>
Co-authored-by: Kang Ming <kang.ming1996@gmail.com>
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>
2023-12-21 14:28:08 +00:00
Kevin Grüneberg 3909239961 chore: further reduce docs bundle size (#19927) 2023-12-21 08:43:09 +01:00
Kevin Grüneberg d4b0d58d2e chore: reduce main docs app bundle size (#19926)
chore: reduce main app bundle size
2023-12-20 23:24:13 +00:00
Charis 4b1ade2e8d fix: improve information architecture (database) (#19847)
The REST and Database sections overlap in responsibilities, and the
Database subsections are getting quite long.

This clears up the responsibilities:

- Database operations belong primarily in `Database`
- Things that are specific to RESTful interactions (such as API keys)
  belong primarily in `REST API`
- `REST API` has a hub page that links out to `Database` for database
  operations

Left nav for the Database sectionis reorganized to make it more
beginner-friendly. `Fundamentals` and `Working with your database
(basics)` is what you really need to know to get started, and the rest
can be figured out later.
2023-12-19 13:08:12 +01:00
Francesco Sansalvadore c8bb436ba7 Bernard (#19782)
Launch Week X - Day 5 Announcement
2023-12-15 16:45:26 +01:00
Inian 99fb3d9344 fly postgres docs (#19779) 2023-12-15 13:18:59 +00:00
Guilherme Souza 4ff8e11936 Add documentation for Swift v2 and update user management example to use Swift v2 (#19752) 2023-12-15 09:56:53 +08:00
Charis 7fdc3ce358 Revert "Feat/pdf file upload and extraction edge function example" (#19750)
Revert "Feat/pdf file upload and extraction edge function example (#15580)"

This reverts commit 62cdcf7149.
2023-12-14 18:46:48 +00:00