Commit Graph
29661 Commits
Author SHA1 Message Date
Alaister YoungandJoshen Lim 6c592dec99 chore: remove useExecuteSqlQuery() part 2 (#30467)
* foreign-key-constraints

* update entity-types stale time

* schemas query

* deprecate useExecuteSqlQuery

* users count query

* database size query

* indexes query

* keywords query

* migrations query

* table columns

* database functions

* database roles query

* fdws query

* replication lag query

* ongoing queries query

* vault secrets query

* remove unneeded staleTime: 0

* max connections query

* fix entity types key in tests

* Some fixes

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-11-18 05:15:37 +00:00
Joshen Lim af4cc07a36 Add users length to dependency array for formatting user column (#30507)
* Add users length to dependency array for formatting user column

* Just check on users
2024-11-18 12:29:44 +08:00
Lakshan Perera a37c91c9e5 chore: update background tasks guide (#30481) 2024-11-15 12:54:45 -05:00
Copple 41c261240e chore: update cli reference doc (#30487) 2024-11-15 12:52:54 -05:00
Kevin Grüneberg e36be4e102 fix: copy for downgrading Fly partner org (#30464) 2024-11-15 17:01:20 +08:00
Jonathan Summers-MuirandJoshen Lim 59ecdeb1b9 chore: update compute redirect with flag (#30408)
* Update ComputeInstanceSidePanel.tsx

* add redirect on new page

* Update ComputeInstanceSidePanel.tsx

* Fix order

* Small refactor

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-11-15 15:48:11 +08:00
T.K ef656ff753 docs(auth): update PKCE flow and Next.js example for password-based auth (#29971)
* docs(auth): update PKCE flow and Next.js example for password-based auth

Update the password-based authentication documentation to improve consistency and clarity:

- Add email redirect information to PKCE flow, mirroring the Implicit flow section
- Align the Next.js example in app/auth/confirm/route.ts with the official Supabase documentation for server-side auth in Next.js
- Update email template to include 'next' parameter for better redirect handling
- Improve error handling and redirect logic in the Next.js example

These changes aim to provide a more comprehensive and consistent guide for implementing password-based authentication, especially for Next.js applications using the PKCE flow.

Ref: https://supabase.com/docs/guides/auth/server-side/nextjs

* fix(docs): format email confirmation link and update sign-up function example
2024-11-14 20:58:23 +00:00
ceba5ebc87 feat: image transformatio toggle (#30094)
* feat: image transformatio toggle

* fix api types

* move form field to top level

* regenerate api types

* fix ProjectDailyStatsAttribute type

* fix ts

* update styling

* Update image transformation description

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-11-15 00:35:02 +08: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
Ivan Vasilov 1157a20fbd feat: Queues v0.5 (#30418)
* Rename the regular/normal queues to basic.

* Move the partitioned type of queues to the end.

* Add metrics for the queues.

* Add actions for postponing and deleting a message.

* Add queue actions for purging and deleting a queue.

* Minor fixes for the empty stateof the queues page.

* Add a modal to send a message to the queue.

* Minor fixes.

* Correct some button texts.

* Refactor the metrics to switch to a rougher estimate method if it timeouts.

* Fix type errors.

* More minor fixes.
2024-11-14 13:02:29 +01:00
Kevin Grüneberg d6b32f05e9 fix: billing page not rendering with Google Translate (#30468)
Markdown component seems to be the root of evil here.
2024-11-14 18:54:23 +08:00
Terry SuttonandJoshen Lim 1826e838aa Dont allow editing cron job names (#30443)
* Dont allow editing cron job names

* Cleanup

* Update apps/studio/components/interfaces/Integrations/CronJobs/CreateCronJobSheet.tsx

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-11-14 15:31:37 +08:00
Alaister Young 0e3bc5804b chore: remove useExecuteSqlQuery (part 1) (#30437)
* chore: remove useExecuteSqlQuery part 1

* fix invalidation

* fixes

* more fixes

* I fixed it, but tested on preview instead of local 🤦🏻

* only refetch table rows and not count on row updates

* removed unneeded invalidations and prefetched new table after create
2024-11-14 15:21:29 +08:00
Craig Cannon 0984800fae updating start time to 6pm + timezone to pst (#30463) 2024-11-13 21:12:06 -05:00
Craig CannonandFrancesco Sansalvadore eca93011b1 Updating copy on YC hackathon -- event is full (#30462)
* Updating copy on YC hackathon -- event is full

* disable event cta

---------

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
2024-11-13 21:00:01 -05:00
f7292dce8c Chore/spam page (#29854)
* Add spam page

* Add select

* Add experimental flag in next.config to see if it resolves the build issue

* Add slack webhook call

* updated endpoint

* revert

* update

* fix placeholder styling in Select

* clean

* Update [ref].tsx

* Update select.tsx

* revert

* protect form and endpoint from bad ref abuse

* Delete spam api route

* Add api route back

* Basic api route

* Rename

* rename route

* Add as route handler

* Stub in supabase update

* Add the proper supabase project

* Rename spam to opt-out

* Swap anon for service role key

* Rename env var

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2024-11-13 14:09:24 -03:30
12b6389090 Update pgvector.mdx (for 0.8.0) (#30414)
* Update pgvector.mdx

Add usage of iterative search (from version 0.8.0)

* Update pgvector.mdx

* Update apps/docs/content/guides/database/extensions/pgvector.mdx

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

* Update apps/docs/content/guides/database/extensions/pgvector.mdx

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

* Update apps/docs/content/guides/database/extensions/pgvector.mdx

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

* Update apps/docs/content/guides/database/extensions/pgvector.mdx

Co-authored-by: Artur Zakirov <zaartur@gmail.com>

* Update pgvector.mdx

Remove repeat

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
Co-authored-by: Artur Zakirov <zaartur@gmail.com>
2024-11-13 15:11:16 +00:00
Kamil Ogórek a882994565 docs: Update next.js and sveltekit quick start guides (#30457) 2024-11-13 15:49:42 +01:00
Rodrigo Mansueli dd936695fa feat: dynamic function blog post (#30422)
* feat blog post

* Update 2024-11-13-supabase-dynamic-functions.mdx

* Update 2024-11-13-supabase-dynamic-functions.mdx
2024-11-13 08:42:35 -03:00
Thor 雷神 Schaeff f7518c2896 chore: background tasks updates (#30454)
* chore: bacground task docs and example.

* chore: add video.
2024-11-13 16:57:25 +08:00
Kevin Grüneberg 91523a78ea fix: org billing link (#30456) 2024-11-13 08:53:28 +00:00
Jonathan Summers-MuirandJoshen Lim 297fc76bfd Chore/update sql side panel (#30050)
* init

* Update inner-side-menu.mdx

* chore: update SQL sidebar to use ui pattern components

* mor

* Update

* Update index.tsx

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-11-13 14:03:48 +08:00
Jordi Enric aad6c48d03 remove debugger (#30440)
rm debugger
2024-11-13 11:32:07 +08:00
Kyle Malloy efd536e599 docs: subdomain sso (#30424)
* docs:subdomain sso

* docs:subdomain sso - lint & format
2024-11-13 10:17:26 +08:00
Joshen Lim 55c4dffda7 Chore/update create and update user to use platform endpoints (#30379)
* Refactor create and update user to use platform endpoints

* Update perms

* Fix self host endpoints

* Fix
2024-11-13 09:19:37 +08:00
Francesco Sansalvadore 6c0d20740f fix: careers copywriting (#30442)
remote opportunities
2024-11-12 13:27:26 -04:00
Terry SuttonandJoshen Lim 95219d3e2a Chore/cron nl (#30345)
* Add NL input

* Add chart to sidebar

* Better loading animation

* Redo api route to not use edge

* Remove edge stuff

* Allow sheet to close

* Cleanup

* Adjust loading state

* Add timezone

* CR comments

* Replace query with useCompletion

* Set the form value

* Tiny clean up

* Tinyyyyy tweaks

* Fix missing syntax

* Smol refactor

* Fixy

* Remove console log

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-11-12 11:55:01 -03:30
Kevin Grüneberg a290788047 fix: allow downgrade to Free Plan with no active projects (#30433)
The member exceeding Free Plan limits modal should not be displayed if the org to be downgraded has no active projects.
2024-11-12 20:55:50 +08:00
Alaister Young eb7b0818d1 fix: use nulls last when sorting users (#30430) 2024-11-12 17:50:05 +08:00
Joshen Lim b37d377917 Add check for project active healthy status in some RQs that are unnecessary when project is paused (#30377) 2024-11-12 17:47:55 +08:00
Joshen Lim 1c65e8cb2c Fix linkedin enabled state in user overview (#30373) 2024-11-12 17:42:08 +08:00
Kevin Grüneberg 06c53f3472 chore: use in-browser sha256 (#30398) 2024-11-12 16:34:46 +08:00
Chris Gwilliams 959e28abfb update ipv4 doc title and add admonition warning (#30415) 2024-11-12 08:21:42 +08:00
Bo LuandFrancesco Sansalvadore e40dbbbfb0 fix: rss feed datetime format for RFC822 (#30289)
* fix: rss feed datetime format for RFC822

* gen rss

---------

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
2024-11-12 09:52:43 +11:00
Charisandgithub-tidy-bot 3f08a033d9 fix: autofix action (#30421)
Autofix action is failing with error message:

```
fatal: You are not currently on a branch.
To push the history leading to the current (detached HEAD)
state now, use

    git push origin HEAD:<name-of-remote-branch>
```

This is because the checkout action on a PR by default checks out the merge commit, which is not a branch. Instead, check out [`github.head_ref`](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs#github-context), which will point to the source of the PR.

---------

Co-authored-by: github-tidy-bot <github-tidy-bot@supabase.com>
2024-11-11 16:18:42 -05:00
Rizky Faturriza f072beb97d chore: Fix typo _req at connect-to-postgres.mdx (#30389) 2024-11-11 18:17:21 +00:00
github-actions[bot]andphamhieu 936fe4f5a1 feat: update mgmt api docs (#30405)
Co-authored-by: phamhieu <689843+phamhieu@users.noreply.github.com>
2024-11-11 18:10:47 +00:00
Kang Ming b842621f3a docs: update oauth guides (#30411) 2024-11-11 19:46:35 +08:00
Joshen Lim caeb09b369 Add new regions for RR deployment (#30409) 2024-11-11 16:37:49 +08:00
3369164f96 Fix: unify Client ID handling for Google provider (#29950)
* Fix: unify Client ID handling for Google provider

* Ensure no spaces in Client IDs

* Update apps/studio/components/interfaces/Auth/AuthProvidersFormValidation.tsx

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

* Fix Apple provider client IDs

* Update apps/studio/components/interfaces/Auth/AuthProvidersFormValidation.tsx

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

* Update apps/studio/components/interfaces/Auth/AuthProvidersFormValidation.tsx

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

* Remove Secret key requirement

* Fix markdown component usage + apple client id

---------

Co-authored-by: Kang Ming <kang.ming1996@gmail.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-11-11 15:24:46 +08:00
Joel Lee d7c6eb1739 fix: remove reference to Hugo templating in Auth Email guide (#30354)
fix: remove reference to Hugo teplating
2024-11-10 18:52:50 +08:00
Enyosolutions 9cdabe188e Doc: update documentation for secret name. (#30370) 2024-11-08 16:50:11 +00:00
Terry Sutton 2e6809a340 Chore/extension disable warning (#30338)
Add warning in extension disable confirm modal
2024-11-08 09:29:33 -03:30
Joshen Lim 0b5573ecb5 Add lat long for aws regions (#30376)
* Remove console log

* Add comment
2024-11-08 12:17:41 +00:00
Ivan Vasilov 54d11a6a7f feat: Queues v0 (#30300)
* Make the title prop on ProjectIntegrationLayout mandatory. Fix the title on some of the integration pages. Fix wrong layout on wrappers/new.

* Add code for the initial page.

* Make the FilterPopover more type-safe.

* Add a page to list message in a single queue.

* Add feature flag for queues.

* Handle the case where pgmq is not available on the database.

* Minor fixes.

* Some minor fixes.

* Fix the query when fetching only archived messages.

* Fix the filters when there's no choices selected.

* Add a comment for local dev.

* Add a max size to the queue name input.
2024-11-08 13:06:05 +01:00
Illia Basalaiev 9c77b4ceae Update link to Database Webhooks in webhooks.mdx (#30375)
Update webhooks.mdx

update link in the dashboard to /integrations/hooks from /database/hooks
2024-11-08 11:55:24 +01:00
Joshen Lim 225d461381 Hook up RLS to new assistant if feature flag is enabled (#30357)
* Hook up RLS to new assistant if feature flag is enabled

* Reset conversation if opening a different entity

* Add prompt to use alter policy if policy definition is provided

* Remove console log
2024-11-08 18:03:30 +08:00
Joshen Lim 4342c4c3ab Chore/disk mgt UI fixes (#30358)
* Fix percentage width for disk space bar

* Add warning in disk size section if 90% + within cooldown

* Show read only warning in compute and disks

* Fix copy

* Add conditional
2024-11-08 17:32:38 +08:00
Joshen Lim a6a389def9 Deprecate old org roles query (#30372) 2024-11-08 17:04:45 +08:00
Alaister Young 12cc4e5fbc chore: use service versions endpoint (#30352)
* chore: use service versions endpoint

* update types

* fix types

* fallback postgres version for unknown images
2024-11-08 11:17:16 +08:00