Commit Graph
40517 Commits
Author SHA1 Message Date
Terry SuttonandAlaister Young 64e563000b Chore/new org button (#19437)
* Add new org button

* Check project count before rendering

* Update

* Update apps/studio/components/to-be-cleaned/Dropdown/OrganizationDropdown.tsx

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2023-12-06 10:16:25 -03:30
Francesco Sansalvadore b66d93cddc Improve Lwx colors (#19460)
* gst

* remove class
2023-12-06 11:40:44 +01:00
Alaister Young 42164183f2 fix: add missing asChild props (#19456)
* fix: add missing asChild props

* move csvlink outside of dropdown trigger

* fix incorrect merge
2023-12-06 21:11:32 +11:00
Francesco Sansalvadore 23c4d1091e Fix Shotgun og (#19459)
fix shotgun og
2023-12-06 09:47:06 +00:00
Kevin Grüneberg 6468437375 chore: adjust logic for new project screen (#19449) 2023-12-06 10:10:04 +01:00
Alaister Young 49ac7d8975 chore: improve loading on table editor index page (#19454)
* chore: improve loading on table editor index page

* fix margin on no results

* make TableEditorLayout non-blocking by default

* change no search results text
2023-12-06 07:17:46 +00:00
Joshen Lim 76a9be105b Minor color fix for feature preview panel (#19455) 2023-12-06 07:00:21 +00:00
Gabriel aee6dfb302 Update examples.mdx (#19422)
Removed Build a FullStack App with Next.js, Supabase & Prisma, as the website is not working anymore
2023-12-05 21:31:10 +00:00
Greg WolanskiandCharis 146b6321a9 docs: improve the example of using triggers in user data management (#19288)
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2023-12-05 21:08:05 +00:00
Inian 368890b0b1 docs: clarify pitr requires small compute in hipaa (#19408) 2023-12-05 16:01:43 -05:00
Ramiro Nuñez DosioandFrancesco Sansalvadore 56e140423f Community Meetups post. (#19440)
* Community Meetups post.

* OG image, author, last touch.

* X meetups (#19432)

* lwx community meetups

* transition-colors

* font size

* scroll-mt-[66px]

* sort meetups

* update styling

* update

* fix spacing

* meetups blog link

* add event link and move flags

---------

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
2023-12-05 19:40:32 +00:00
Francesco Sansalvadore 386e850537 Fix share url params (#19442)
fix share url params
2023-12-05 18:37:26 +00:00
Kevin Grüneberg d6b7c1b7ba Revert "feat: Add streaming responses to the new RLS Editor (#19304)" (#19439)
This reverts commit a2b01e0bc5.
2023-12-05 16:50:26 +00:00
Francesco Sansalvadore d00b3d199f X stuff (#19433)
* lwx word

* add secret ticket

* add secret ticket assets

* cleanup

* secret ticket copy

* update mobile ticket

* add loading state after claiming ticket

* update matched letter styling

* improve game logic and github signin

* update og functions

* rebuild

* properly remove game event listenere

* bigger compliment

* remove weird file
2023-12-05 17:49:09 +01:00
Kevin Grüneberg fc5d389a9f feat: rework usage overview (#19434)
- Added a quick indicator about over-usage on non-usage-based plans (free or pro with spend cap) at the top of the subscription page
- Removed the usage summary from upcoming invoice (replacement on the usage page)
- Added a new usage summary on the organization usage page
- Per-project breakdown for usage
- Displays costs for over-usage on usage-based plans
- Improved scrolling behaviour for anchors on usage page
- Metrics with higher usage/costs will be sorted to the top
- Insights into compute usage in summary
- Removed duplicate typing and rely on API types for usage DTO
- Usage can now be retrieved for a custom period and not just the current billing cycle
- Usage can be filtered by project
2023-12-05 16:50:02 +01:00
Stojan Dimitrovski b9c305d49d feat: add hibp leaked password protection (#19416) 2023-12-05 16:22:25 +01:00
Ivan Vasilov a2b01e0bc5 feat: Add streaming responses to the new RLS Editor (#19304)
* Add vercel/ai. Commit additional next types.

* Add a API route in /app for streaming responses.

* Make the components work with streaming response.

* Add a dummy page to /app folder to fix a linking bug.

* Fix the dummy page.

* Fix the dummy page again.

* Add an empty layout to the app folder.

* Make the code snippets in the chat read-only.

* Remove queries and mutations for suggest.

* Reset the chat when closing the panel.

* Make the AI instructions a bit better.

* Don't render empty code blocks.

* Try to use remark for rendering the code. Style fixes for CodeBlock in AI assistant panel.

* Fix the styling of the definitions when sending them to OpenAI.

* Fix the css styling of the messages and code blocks.

* Move the suggest API route from app to pages folder.

* Revert the change for app API routes.

* Make the API route look like the rest of the API routes.

* Use Pre instead of Code because the <code> tags aren't working if between spans.

* Minor leftovers.

* Revert to using app route handlers.

* Change the wording on the diff header.

* Add nextjs types.

* Fix a missing import.

* Move AssistantChatForm back to db-new.

* Fix a build error.

* Rename the suggest route to assistant.

* Fix Joshen's comments.
2023-12-05 16:05:02 +01:00
Ramiro Nuñez Dosio 141fefead3 Update text. (#19435)
* Update text.

* Update
2023-12-05 14:52:06 +00:00
2bab38a3c8 docs: add single session per user docs (#19411)
* docs: add single session per user docs

* apply suggestion from @kangmingtay

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

* apply suggestion from @charislam

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

* apply suggestion from @charislam

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

* apply suggestion from @charislam

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

---------

Co-authored-by: Kang Ming <kang.ming1996@gmail.com>
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2023-12-05 14:31:15 +01:00
Joshen LimandIvan Vasilov 7473a65361 Chore/realtime inspector fixes 051223 (#19430)
* Fix broken URLs

* Limit realtime inspector to only the public schema as any other schema won’t work out of the box due to missing permissions

* Hide copy to clipboard for realtime message panel timestamp

* Add placeholder value for sending test message and fix sending test message to be sent as JSON

* Change channel name input to form

* Add join channel empty state

* Update copy writing

* Shift broadcast, presence, db changes toggle to filter message popover

* Add cursor-default

* Small style fix

* Fix toggles

* Address some feedback

* Fix the impersonation UI.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2023-12-05 13:50:59 +01:00
Kevin Grüneberg 771948c1a6 feat: daily stats for compute (#19414) 2023-12-05 13:13:14 +01:00
Copple d16aa21a05 minor readability improvement (#19431)
* minor readability improvement

* fixed
2023-12-05 12:40:29 +01:00
Kevin Grüneberg c1dda1b66a feat: project breakdown for subscription preview (#19410) 2023-12-05 11:39:53 +01:00
Kevin Grüneberg 8a70f199de feat: better insights for upcoming invoice (#19409) 2023-12-05 11:10:53 +01:00
Alaister Young ff2e283430 chore: move realtime inspector role impersonation popover (#19403) 2023-12-05 19:57:04 +10:00
Joshen Lim 9d48e8c770 Chore/rls ai assistant updates 041223 (#19404)
* Send policy definition to AI when editing a policy

* Only send entity definitions if opted into AI for RLS ai assistant

* Scaffold collapsible policy details

* Update comment

* Update

* Update height

* fix messages sorting
2023-12-05 15:42:07 +08:00
Ant WilsonandCopple f903546b7b feat: lwx hackathon blog (#19389)
* feat: lwx hackathon blog

* Update apps/www/_blog/2023-12-05-supabase-hackathon-lwx.mdx

Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>

* feat: lwx hackathon imgs

---------

Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>
2023-12-05 13:15:18 +08:00
Gulshan db747fb4fa fix: drag and drop causing page crash (#19340) 2023-12-05 14:15:33 +10:00
Charis 6ae34935df improve docs search performance by removing preflight (#19395)
* refactor: remove credentials to prevent cors preflight

* fix: minor bug fix to source load counting

* set no-verify-jwt for search endpoints

* perf: reduce debounce interval

* fix: throw returned error from edge function

* fix: better error catching
2023-12-04 16:04:06 -05:00
Monica Khoury 91e234cf4a Fix: typo in the "Permissions for each role" table (#19417)
Fix: typo in roles page
2023-12-04 17:22:14 +01:00
Greg Richardson d2e08308a4 Docs: Use HNSW index as default in AI guides (#19413)
docs(ai): use hnsw index as default in ai guides
2023-12-04 15:36:50 +00:00
Kevin Grüneberg 598c1ef866 chore: remove unused billing page/queries (#19412) 2023-12-04 15:54:57 +01:00
Jonathan Summers-Muir c43f0e74a3 Admonition styling update (#19407)
* style update

* destructive

* Update index.tsx

* Update multi-factor-authentication.mdx
2023-12-04 22:47:10 +08:00
Peter Miles d900fd5896 Fix small typo in authGMTP auth settings (#19381) 2023-12-04 13:33:40 +00:00
Stojan DimitrovskiandIvan Vasilov eed4e29db5 feat: add password strength configs (#19330)
* feat: add password strength configs

* Revert the changes to RadioGroup since they may cause issues in other usecases. Add a string to represent the empty string state for PASSWORD_REQUIRED_CHARACTERS property.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2023-12-04 14:26:21 +01:00
Alaister Young 4e48e3c831 chore: remove spinner waterfall on project index page (#19357) 2023-12-04 14:11:45 +01:00
Alaister YoungandIvan Vasilov 0add5640cd chore: remove spinner waterfall on projects page (#19355)
* chore: remove spinner waterfall on projects page

* Fix the shimmering card to look more like the project cards.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2023-12-04 13:06:10 +00:00
S96EA d2c076acf2 fix(example): remove supabase kong config from nextjs-todo-list example (#19353)
fix: remove supabase kong config from nextjs-todo-list example
2023-12-04 12:48:08 +00:00
dependabot[bot] 4bed86e5e2 chore(deps-dev): bump @adobe/css-tools from 4.3.1 to 4.3.2 (#19352)
Bumps [@adobe/css-tools](https://github.com/adobe/css-tools) from 4.3.1 to 4.3.2.
- [Changelog](https://github.com/adobe/css-tools/blob/main/History.md)
- [Commits](https://github.com/adobe/css-tools/commits)

---
updated-dependencies:
- dependency-name: "@adobe/css-tools"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 13:42:16 +01:00
Kevin Grüneberg d9927f172a fix: reset payment method on org creation error (#19277) 2023-12-04 11:30:53 +01:00
Stojan Dimitrovski f22ae374f2 feat: explicit gotrue-js package dependency, version 2.58.0 (#19405) 2023-12-04 11:21:26 +01: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
Jonathan Summers-Muir c59f7b56c6 Update branching docs warnings (#19400)
* Update branching.mdx

* update images

* update again

* Update branching.mdx
2023-12-04 13:16:22 +08:00
e6006b9653 feat: user impersonation (#18945)
* feat: user impersonation

* refactor

* add anon impersonation

* add user impersonation to graphiql

* thanks Ivan for this one

* add radio buttons

* progress

* working user selector

* adds loading and error states to user selector

* nicer popover button

* default graphiql to use service role key

* styling updates

* fix padding in graphiql

* add service role warning to graphiql

* add user impersonation to realtime inspector

* add feature flag

* use Alert_Shadcn_ instead of old Alert

* Update apps/studio/lib/role-impersonation.ts

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* update title

* Update apps/studio/components/interfaces/RoleImpersonationSelector/UserImpersonationSelector.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* Update apps/studio/components/interfaces/RoleImpersonationSelector/Icons.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* Update apps/studio/components/interfaces/RoleImpersonationSelector/Icons.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* Update apps/studio/components/interfaces/RoleImpersonationSelector/Icons.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* Update apps/studio/components/interfaces/RoleImpersonationSelector/Icons.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* Update apps/studio/components/interfaces/RoleImpersonationSelector/Icons.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* Update apps/studio/components/interfaces/RoleImpersonationSelector/UserImpersonationSelector.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* add constant padding at the bottom of user selector

* update graphiql buttons font size

* make rls warning dismissable

* use text-foreground on rls warning title

* fix no results while impersonating a role

* fix error line number when impersonating a role

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2023-12-04 04:45:11 +00:00
Bobbie SoedirgoandCharis b59783dede docs(reference): add example for dynamic schema switching (#19266)
* docs(reference): add example for dynamic schema switching

* docs: make links relative

* Update spec/supabase_dart_v1.yml

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

* Update spec/supabase_js_v2.yml

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

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2023-12-04 04:38:54 +00:00
Tyler e4a8323fe3 docs: change require to import in code sample (#19328)
change require to import in code sample
2023-12-04 13:28:22 +09:00
shinriyoandCharis e4d4fc584e Update with-svelte.mdx (#19398)
It does not use an FQDN for the redirect.
It should be http://localhost:5173/

FQDN do means "Fully" Qualified Domain Name.

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2023-12-04 03:24:15 +00:00
7abc9d24c4 Chore/more server actions (#19379)
* First

* Fix the parsing of SQL.

* Get thread data action

* Remove old page

* Wait for data to complete

* SSR everywhere

* Remove unused

* Add monaco settings

* update loaders

* Add sorting

* supress hydration warnings

* Fix profile layout

* more server action action

* fixes

* Update page.tsx

* Update actions.ts

* Update AssistantChatForm.tsx

* init

* add polling

* Update actions.ts

* redirect to message id

* Update page.tsx

* Update page.tsx

* handle run loading states with use client state with valtio

* reduce first load JS

* test action v1

* test action v2

* server action test 3

* test action 4

* test action 5

* test 6

* test 7

* test 7

* test 8

* test 9

* test 10

* test 11

* TEST 12

* TEST 13

* try and make it work

* Update page.tsx

* Update actions.ts

* redirect added in

* Update page.tsx

* Update SchemaFlow.tsx

* Update SchemaFlowHandler.tsx

* 14

* Update SchemaFlow.tsx

* move parse tables to client

* a11y fixes

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2023-12-03 21:01:14 -03:30
Yen Cheng d1ea43bb05 Change Simplified Chinese content in README.zh-tw.md to Traditional Chinese (#19358)
* docs: update README.zh-tw.md

* update language name
2023-12-02 23:08:28 +00:00
CropWatchandCharis 95fddcc5fb Update postgres-changes.mdx (#19368)
Fixed spelling mistake

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2023-12-02 22:05:53 +00:00