Commit Graph
1453 Commits
Author SHA1 Message Date
Charis f6768edde7 fix(cmdk): empty state shows up when it shouldn't (#29272)
* fix(cmdk): empty state shows up when it shouldn't

Can't remember why on earth I put this in a useMemo instead of a
useEffect...

* fix(command menu): switch branch command not showing up
2024-09-17 10:08:37 +08:00
Terry SuttonandIvan Vasilov e81beac7ec Replace 3.5 with 4o (#29145)
* Replace 3.5 with 4o

* Update

* Fix tests

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-09-13 14:15:22 -02:30
Joshen LimandJonathan Summers-Muir 07699ad76b Chore/disk attributes mangement (#29219)
* init

* moar

* moat

* moar

* add read replica bar

* moar

* Update DiskMangementPanelForm.tsx

* added temp state mang to test

* moar

* Prepare react queries + data from API for disk mgt

* moat

* moat

* moar

* Update DiskMangementReviewAndSubmitDialog.tsx

* badge updates

* Hook up actual endpoints for E2E testing, but commented out for now for local dev

* Hook up real data + clean up files and add tests

* Update APi types

* Hook up E2E and fix all validation logic

* Only show new disk mgt UI for orb billing

* Add note on RRs 25% more disk size

* Add state to handle free plan for disk mgt

* Update increase disk size CTA in reports/database

* Fix file spelling errors

* Address feedback

* Fix missing framer motion package in ui

* Address comments

* Address feedabck

* Minor fix

* Use new disk util endpoint

* Remove unused import

* Address feedback

* More addressing of feedback

* Update pricing details for IO2 - no included disk size

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2024-09-13 11:51:51 +08:00
Charis 5e4e7d521b fix: cmdk force-mount (#29233)
We were hacking around force-mount behavior because it wasn't working in
a previous version of cmdk. cmdk version was bumped a few weeks ago
which fixes force-mount.
2024-09-12 10:03:43 -04:00
Jordi EnricandCharis 2ab2f0e26b warehouse fixes (#29212)
* fix clicking on sidebar item opening it

* update filters after curl is used

* fix refresh not using latest date

* add fallback when result is empty

* fix not showing latest results when pressing refresh

* cleanup

* Update apps/studio/components/interfaces/DataWarehouse/WarehouseCollectionDetail.tsx

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

* simplify copy, comment out search temporarily

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-09-12 13:48:43 +02:00
Joshen Lim 9e1d6f909d Chore/sql editor fixes (#29204)
* Add validation for same folder name

* Add validation in move query modal for folder name

* Add validation in move query modal for folder name min length 1

* Handle rename folder failed due to duplicate folder name

* Fix renaming folder to a name that already exists
2024-09-11 14:03:05 +08:00
Joel Lee 3ef6a64794 fix: update rate limits in docs to 2 (#29047)
* fix: update rate limits in docs to 2

* fix: run prettier

* fix: update going into prod
2024-09-10 11:28:54 +03:00
Charis d6f96780e9 feat: add configure org command (#29092)
* feat: add switch org command

* fix: change switch org to configure org

The org doesn't really get globally switched, you just land on the
settings page, so this seems more accurate.

* fix: allow cjk ime input on commandinput component
2024-09-09 11:25:22 -04:00
Jordi EnricandJoshen Lim 6e6910f82b warehouse ui/ux fixes (#29057)
* fix metadata not showing in Raw tab in log detail

* fix rows not filling up horizontal space

* show collection loader only when fetching collections, since the query can be disabled

* simplify language in create collection modal

* fix create collection modal copy in cta

* rm typecast, add tooltip on collection creation

* improve copy on empty collection

* improve copy on colelction empty state

* rm unused code

* prompt users to refresh, add button to refresh, after sending first events to a collection

* use generic mr skelington instead of supalogo

* add template for search in event message

* hide field reference when source is warehouse

* rm font bold on selected log

* update curl example

* add focusable prop to codeblock

* change focus border color in codeblock

* make codeblock focusable by default

* move refresh btn

* rm unnecessary focusable i codeblcok

* fix raw log rendering

* add search

* update plceholder

* add timerange search

* improve empty state copy in wh

* add open in warehouse explorer button

* update test conection dialog ui

* Update apps/studio/components/interfaces/DataWarehouse/TestCollectionDialog.tsx

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

* Update apps/studio/components/interfaces/DataWarehouse/WarehouseCollectionDetail.tsx

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

* Update apps/studio/components/interfaces/DataWarehouse/WarehouseCollectionDetail.tsx

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

* rm clog

* Update apps/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx

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

* fix loading state in collections sidebar

* fix test collection sheet layout

* add some keyboard shortcuts to filters

* use isLoading in wh log detail to prevent double loaders

* make search input longr

* truncate titles

* truncat sidebar names

* rename dayjs

* update copy from warehouse to collections

* update remove collection copy

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-09-09 17:16:12 +02:00
Francesco Sansalvadore 02cbf3ddf9 chore: remove announcements (#29104)
remove lw12 announcements
2024-09-05 11:12:05 +02:00
Terry Sutton e4b0dc0871 Add a size map (#29100) 2024-09-05 15:25:57 +08:00
Ivan VasilovandJoshen Lim 05a542ccea chore: Migrate all feather icons to lucide icons (#29038)
* Add lucide-react to docs (to make the autocomplete work).

* Migrate the docs app icons.

* Migrate the ui-patterns.

* Remove the old icons from ui package.

* Migrate the www app from react-feather icons.

* Migrate all of studio icons.

* Migrate the only component in design-system.

* Fix an old import in ui package. Revert an import in docs app.

* Fix some pages in www.

* Remove unneeded files used in generation of icons.

* Fix a prettier error.

* Fix more issues in www.

* Fix an issue in Log Date picker.

* Replace all string sizes with number sizes because the icons grew in some cases.

* Fix more imports in security page.

* Fix an extra import.

* Remove the size prop from all icons if they're in a button and they match the button size.

* Minor fixes for docs and www.

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-09-04 19:46:21 +08:00
3f34ca978c Fixes docs search input cursor (#28685) (#28691)
* fixed docs input cursor (#28685)

* fixed losing query string

---------

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-09-03 20:46:48 +00:00
Charis 94861ff97d fix: cmdk error in AiMessages component (#29060)
- Add a dummy CommandList descendant
- Needed for cmdk to not throw an error
- No easy way to remove the Command Menu because it's needed in the
  empty state
- Somewhat hacktastic but solves the error
2024-09-03 11:41:36 -04:00
Ivan Vasilov 81581f50e8 fix: Change all apps to use the same version of lucide-react package (#29000)
* Delete all versions of lucide from the apps so that it resolves only the version specified in ui package.

* Remove unneeded lines from package-lock.json.
2024-09-02 09:38:22 +00:00
df52ea7ee0 feat: Replace all toasts with sonner (#28250)
* Update the design of the sonner toasts. Add the close button by default.

* Migrate studio and www apps to use the SonnerToaster.

* Migrate all toasts from studio.

* Migrate all leftover toasts in studio.

* Add a new toast component with progress. Use it in studio.

* Migrate the design-system app.

* Refactor the consent toast to use sonner.

* Switch docs to use the new sonner toasts.

* Remove toast examples from the design-system app.

* Remove all toast-related components and old code.

* Fix the progress bar in the toast progress component. Also make the bottom components vertically centered.

* Fix the width of the toast progress.

* Use text-foreground-lighter instead of muted for ToastProgress text

* Rename ToastProgress to SonnerProgress.

* Shorten the text in sonner progress.

* Use the correct classes for the close button. Add a const var for the default toast duration. Remove the custom width class from sonner.

* Set the position for all progress toasts to bottom right. Set the duration for all toasts to the default (when reusing a toast id from loading/progress toast, the duration is set to infinity).

* Fix the playwright tests.

* Refactor imports to use ui instead of @ui.

* Change all imports of react-hot-toast with sonner. These components were merged since the last commit to this branch.

* Remove react-hot-toast lib.

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2024-08-31 07:50:51 +08:00
Ivan Vasilov 556ed69298 fix: Add CommandList wrapper to fix a crash in the cmdk feature (#29002)
Wrap the commandGroup into a commandList.
2024-08-30 17:58:53 +02:00
Jonathan Summers-Muir 40770afd43 [Design System] feat: Added Chart component (#27839)
* init

* Update chart.mdx

* Update BarChart.tsx

* Update chart.mdx
2024-08-30 16:51:05 +08:00
jingsam d1dfa7cebe bugfix: make the default theme works (#28940) 2024-08-29 13:52:19 +02:00
Alaister YoungandKevin Grüneberg bee86a9c63 feat: upgrade via pricing page (#28942)
* feat: upgrade via pricing page

* reinstall cmdk

* fix button size

* improve search & autoclose

* Update apps/www/lib/fetchWrapper.ts

Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>

* Update apps/www/lib/fetchWrapper.ts

Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>

* update telemetry events

---------

Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>
2024-08-28 21:43:00 +00:00
Alaister Young 7e854de181 fix: re-add cmdk to ui-patterns (#28944) 2024-08-28 14:18:59 +00:00
Alaister Young dd79d9e2cb chore: update cmdk 1.0.0 (#28937)
* chore: update cmdk 1.0.0

* update react-popover

* fixed disabled states

* address breaking changes from cmdk update

* fix formatting

* update column options popover
2024-08-28 21:53:16 +08:00
Jonathan Summers-Muir 4b6c2cbec0 feat: add compute badge (#23234) 2024-08-27 18:23:21 +02:00
Terry SuttonandIvan Vasilov 66518f8d70 Break words on labels (#28896)
* Break words on labels

* Add break-all to the form layout label.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-08-27 09:14:10 -02:30
Kevin Grüneberg 7d6eb26ede chore: prep (#28690) 2024-08-27 09:20:18 +02:00
Alaister Young 4c68e41b0c fix: spend cap permissions tooltip (#28897) 2024-08-26 19:24:49 +00:00
Terry Sutton 1d65841542 Chore/snippet folder nudges (#28889)
SQL Editor nudges
2024-08-26 15:52:40 +00:00
Paul Cioanca 3e3777d1c5 chore: switch West EU (London) to West Europe (London) (#28842) 2024-08-26 15:49:03 +03:00
Francesco Sansalvadore e77f8b9f39 fix inline code word break (#28840) 2024-08-23 17:07:20 +02:00
790c7ce369 Vercel marketplace (#28786)
* Add Vercel Marketplace login flow page

* Add alternative Vercel Marketplace flow with for popup windows

* Automatically redirect user to project after Vercel Marketplace login

* added PartnerIcon

* Update partner-icon.tsx

* refactor partner icon

* hide invoices when on vercel marketplace

* vercel marketplace – payment method / billing address / tax numbers | empty states

* add tooltip to memebers

* always show invoices tab

* Update InvoicesSettings.tsx

* add partner id

* update cta urls

* add vercel managed org banner

* add billing coming soon warning

* remove sign-in-vercel-marketplace routes

* re-enable plan upgrades

* Update api.d.ts

* Fix type checking

* fix vercel links

* improve ts

---------

Co-authored-by: Kamil Ogórek <kamil.ogorek@gmail.com>
Co-authored-by: Alaister Young <a@alaisteryoung.com>
Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-08-23 08:06:15 +00:00
Francesco Sansalvadore 8a1e7e21df Fix muted text (#28822)
* fix button icon text

* fix menu toggle bg

* fix more muted text
2024-08-23 13:34:54 +08:00
Div AroraandJoshen Lim fada3c0391 [wip] feat: add support for additional AWS regions (#28806)
* feat: add support for additional AWS regions

* Add flags

* Add comment

* Feature flag new regions

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-08-23 12:20:34 +07:00
Terry SuttonandIvan Vasilov 024ccfcc04 Update to 4o-mini (#28818)
* Update to 4o-mini

* Package lock

* Copy packagelock from master, use specific model version

* Fix the package.lock.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-08-22 15:42:58 +00:00
Jonathan Summers-Muir 644525e2d1 fix/ bg of nav menu (#28732)
Update index.tsx
2024-08-19 14:05:44 +07:00
Francesco Sansalvadore 1d87cabf96 Lw12 end (#28715) 2024-08-18 15:05:33 +02:00
Francesco Sansalvadore 2b378b10c9 d5 follow up (#28696)
promo toast
2024-08-16 09:30:47 -04:00
753327d13e whale 5 (#28695)
* d5 init

* LW12-5: Blog PostgREST (#28672)

* add lw12 day 5 postgrest blog post

* add images

* Update apps/www/_blog/2024-08-16-postgrest-12-2.mdx

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

---------

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

* LW12-5: Blog vec2pg (#28673)

* add lw12 day 5 vec2pg blog post

* Update apps/www/_blog/2024-08-16-vec2pg.mdx

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

---------

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

* LW12-5: Blog pg_graphql (#28675)

* add lw12 day 5 pg_graphql blog post

* prettier fixes

* Update apps/www/_blog/2024-08-16-pg_graphql-1-5-7.mdx

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

---------

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

* LW12-5: Blog Wrappers (#28619)

* blog: inital blog post for lw12 day 5

* blog: prettify blog post

* blog: fix wrong section

* fix: replace note tag

* chore: adjust heading

* format example code

* update images

* fix template repo link

* add access control blog

* add build items

* remove full stop

* LW12: Add python support blog post (#28682)

* Adds the top 10 post

* fix underscores in blog names

* minor fixes

* feat: intro/outro python blog

* fix: format python doc

* add summary build card

* fix: python links

* add video

* Update apps/www/_blog/2024-08-16-python-support.mdx

---------

Co-authored-by: Oliver Rice <github@oliverrice.com>
Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>
Co-authored-by: Bo Lu <burmecia@users.noreply.github.com>
Co-authored-by: Inian <inian1234@gmail.com>
Co-authored-by: Guilherme Souza <grsouza@pm.me>
Co-authored-by: awalias <antwilson@hotmail.co.uk>
Co-authored-by: Ant Wilson <awalias@users.noreply.github.com>
2024-08-16 15:18:08 +02:00
Francesco Sansalvadore d05b4bcf0f fix consent toast first hover (#28660)
* fix consent toast first hover

* more delay

* delay consent toast in studio
2024-08-16 17:59:24 +07:00
Kevin Grüneberg deaa67beef fix: number of free edge functions (#28684) 2024-08-16 13:52:00 +08:00
39cc19de5b whale 4 (#28664)
* d4 init

* fix navbar transparency

* fix close color

* update blog post og and thumb

* blog: initial blog post for day 4 (#28586)

* blog: initial blog post for day 4

* blog: update categories

* blog: spelling

* blog: update header

* update blog

* update blog

* update blog

* review suggestions

* blog post  og and thumb

* blog: more content on architecture changes

* blog: spell check

* docs: add edge function log drains guide

* docs: update admonition

* reorder sections

* blog: add link to edge function guide

---------

Co-authored-by: Inian <inian1234@gmail.com>
Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>

* Update apps/www/_blog/2024-08-15-log-drains.mdx

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

* Update apps/www/_blog/2024-08-15-log-drains.mdx

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

* Update apps/www/_blog/2024-08-15-log-drains.mdx

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

* Update apps/www/_blog/2024-08-15-log-drains.mdx

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

* Update apps/www/_blog/2024-08-15-log-drains.mdx

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

* Update apps/www/_blog/2024-08-15-log-drains.mdx

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

* add video

---------

Co-authored-by: Ziinc <Ziinc@users.noreply.github.com>
Co-authored-by: Inian <inian1234@gmail.com>
Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>
2024-08-15 15:18:18 +02:00
Charis 343fde2773 fix: repeated responses in docs search (#28607)
Fixes a bug in docs search from duplicated code (I moved the
useEffect into a new component and forgot to delete the old one,
so it runs the on-entry query submit twice, resulting in a double
conversation in production.)

In dev, there is actually a _quadruple_ -_-" converstation, due to
useEffect running twice as designed, with no cleanup. Added a
cleanup function to reset after the first useEffect, so it only
runs once on dev as well.

This only happens when there is an existing query to send when you
hit the AI page, so to reproduce the current bug, type in the
command input _before_ selecting "Supabase AI". If you select
"Supabase AI" before entering your prompt, it won't occur, which is
how I guess this bug slipped past manual testing.
2024-08-14 12:15:08 -04:00
Charis ec94638e9f feat: snippet commands (#28573)
Add commands to studio cmd k for searching and running snippets (doesn't actually run them directly cause that would take a lot of duplicated logic, just links to sql editor with them loaded)
2024-08-14 10:32:04 -04:00
e5819415ef blog: lw12 day 3 (#28628)
* d3 init

* blog: add auth day blog post lw 12

* d3

* new post

* fix callouts

* small changes

* update title

* update Promo toast

* fix last build item

* rss

* add video in blog post

---------

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>
2024-08-14 15:03:34 +02:00
Ziinc a692a30932 docs: add pricing adjustment for log drains / auth features (#28375)
- Added Multi-Factor Auth - TOTP
- Added Multi-Factor Auth - Phone
- Added Third-Party MAUs
- Added Log Drains
- Changed PITR pricing to clarify per month pricing and retention 
- Added Log Drain to bandwidth tooltips/info
- Added Auth user data ownership
2024-08-14 15:02:36 +08:00
Charis 097e268130 clean: remove old command menu code (#28491) 2024-08-13 10:23:11 -04:00
cc53d5006d whale 2 (#28591)
* whale d2

* video id

* cleanup meetups

* realtime: Blog for Realtime Broadcast and Presence Authz (#27691)

* realtime: Blog for Realtime Broadcast and Presence Authz

Blog post to be used for Realtime Broadcast and Presence authorization

---------

Co-authored-by: Wen Bo Xie <wenbo.xie3@gmail.com>

* add lw tags to blog post

* Adds edits

* prettier run

---------

Co-authored-by: Filipe Cabaço <filipe@supabase.io>
Co-authored-by: Wen Bo Xie <wenbo.xie3@gmail.com>
Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>
Co-authored-by: Filipe Cabaço <filipecabaco@gmail.com>
2024-08-13 13:30:22 +00:00
a8f6b74dd3 docs: add http auth hook docs (#25880)
* feat: add http auth hook docs

* fix: add more notes

* fix: add send sms and send email stubs

* fix: add jsonschemas

* fix: add jsonschema for tab

* fix: restructure docs

* feat: add more http examples

* fix: add more examples

* feat: add sql hooks

* fix: patch vale errors

* fix: remove more uses of we

* fix: correct label

* fix: apply suggestions

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

* fix: move to shared config

* fix: update mfa and password examples

* fix: add line about jsonschema

* fix: remove HTTP examples for MFA Verification and Password Verification

* chore: update hook secret description

* chore: cleanup overview and add subtitle

* chore: reorganize examples into tabs

* chore: reorganize sections

* chore: format input / outputs into tables

* chore: move each hook into separate pages

* chore: cleanup content

* chore: fix more formatting

* chore: add hooks to sidenav

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
Co-authored-by: Kang Ming <kang.ming1996@gmail.com>
2024-08-12 18:29:27 -07:00
Francesco Sansalvadore c3397dc93a whale 1 edit (#28556)
fix build item
2024-08-12 16:08:26 +02:00
d0a3332a38 Whale 1 (#28553)
* whale d1 init

* complete sticky nav

* meetups setup

* d1

* awards

* video link

* fix meetups scroll offset

* update lw12 og

* edits

* Thor/whale d1 (#28534)

* blog: whale d1 omt

* some gramattical changes

---------

Co-authored-by: thorwebdev <thor@supabase.io>

* add build linkgs

* fix breakpoint

* update d1 title

* Update apps/www/_blog/2024-08-12-github-copilot-extension-for-vs-code.mdx

* Update apps/www/_blog/2024-08-12-github-copilot-extension-for-vs-code.mdx

* update announcements

* update og image

* blog link

* feat: postgres.new blog post

* caiptalization

---------

Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>
Co-authored-by: thorwebdev <thor@supabase.io>
Co-authored-by: Ant Wilson <awalias@users.noreply.github.com>
Co-authored-by: Greg Richardson <greg.nmr@gmail.com>
2024-08-12 15:36:59 +02:00
Terry Sutton bee6afe899 Chore/update local lints (#28421)
* Update lints

* Add new lint type, update api types

* Update lints again

* Update types
2024-08-09 12:07:10 -02:30