Commit Graph

1161 Commits

Author SHA1 Message Date
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
Jonathan Summers-Muir
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 Vasilov
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
Chris Gwilliams
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
Lakshan Perera
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
Clarence
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
egor
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
Clarence
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
Clarence
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 雷神 Schaeff
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
Ariel Aharonson
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
Charis
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
Clarence
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
Joel Lee
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
Adams Abdulhakeem
62cdcf7149 Feat/pdf file upload and extraction edge function example (#15580)
* feat: Feat/pdf file upload and extraction edge function example

* Added MDX file, slightly improvements on function code

* Added to the navbar, refactored into Deno.serve()

* Apply suggestions from code review

---------

Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>
Co-authored-by: Rodrigo Mansueli Nunes <rodrigo@mansueli.com>
Co-authored-by: Thor 雷神 Schaeff <5748289+thorwebdev@users.noreply.github.com>
2023-12-15 02:10:11 +08:00
Stojan Dimitrovski
d18bfcd5e3 docs: auth passwords page (#19490)
* docs: auth passwords page

* Add redirect from old url

* apply suggestion from @charislam

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

---------

Co-authored-by: Kamil Ogórek <kamil.ogorek@gmail.com>
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
Co-authored-by: Kang Ming <kang.ming1996@gmail.com>
2023-12-14 00:21:57 -08:00
Kang Ming
cffbd0b21c docs: add user and identity management sections (#18767)
* docs: add user management section

* Update apps/docs/pages/guides/auth/auth-user-management.mdx

Co-authored-by: Joel Lee <lee.yi.jie.joel@gmail.com>

* Update apps/docs/pages/guides/auth/auth-user-management.mdx

Co-authored-by: Joel Lee <lee.yi.jie.joel@gmail.com>

* Update apps/docs/pages/guides/auth/auth-user-management.mdx

Co-authored-by: Joel Lee <lee.yi.jie.joel@gmail.com>

* docs: add identity linking guide

* Update apps/docs/pages/guides/auth/auth-identity-linking.mdx

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

* Update apps/docs/pages/guides/auth/auth-identity-linking.mdx

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

* Update apps/docs/pages/guides/auth/auth-identity-linking.mdx

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

* docs: update unlinkIdentity example

* docs: add js client lib references

---------

Co-authored-by: Joel Lee <lee.yi.jie.joel@gmail.com>
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2023-12-12 09:50:16 -08:00
Jan Tennert
e426517484 Update Kotlin docs for 2.0.0 (#18912)
* Rename gotrue to auth

* update columns

* rename gotrue to auth (again)

* improve postgrest docs

* add new modules

* rename logout

* Rename some more stuff

* Rename more stuff

* Rename guides

* Rename SSO docs

* Rename "phoneNumber" to "phone"

* rename some more stuff

* Add v2 docs

* Rename postgrest[..] to supabase.from(..)

* Migrate postgrest to new syntax

* Add explain, single & csv

* Rename storage

* Rename some more storage storage methods

* fix invalid docs

* fix duplicate id

* exclude sections for kotlin

* Rename password reset method

* Update tutorial

* Update realtime docs

* Update more realtime docs

* Update module docs

* add link to migration guide

* update installing

* document custom KotlinX Serializer

* update code to pass formatter

* Remove supabase.realtime.connect() docs

* fix typo

* update kotlin quick start guide

* add a note about making network request from the UI code

* run formatter

* add small kotlinx serialization change

* Apply suggestions from code review

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

* improve quickstart

---------

Co-authored-by: Tyler <18113850+dshukertjr@users.noreply.github.com>
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2023-12-12 01:34:53 +09:00
Copple
e4578a3fe2 Docs/data apis (#19576)
* cleaning up data APIs and pooling

* Adds more GraphQL docs

* fix up "api"

* refine some more pooler language

* prettier

* update slug from dupe views to functions

---------

Co-authored-by: Oliver Rice <github@oliverrice.com>
2023-12-11 08:45:43 +01:00
Charis
9e56b3fb37 strengthen ctas on docs (#19114) 2023-12-08 14:58:37 -05:00
Tyler
c0cf4b114c docs: remove dart v0 and add dart v2 (#19269)
* remove dart v0 and add dart v2

* consolidate google and apple login docs to id token login

* add realtime ref docs

* adds auth update guide

* wrap up upgrade guide

* run prettier

* run prettier

* update presence methods

* udpate presence upgrade guide

* Apply suggestions from code review

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

* update is and in filter

* additional update after receving the review comments

* fix code formatting

* fix indents

* formatted the code

* update indentation

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2023-12-07 14:16:33 +09:00
Jonathan Summers-Muir
df55638e04 Fix/docs alerts / stephike / images (#19401)
* step hike and alerts fixed

* fix images
2023-12-04 10:48:35 +01:00