Commit Graph
1221 Commits
Author SHA1 Message Date
Alaister Young 40322b20b6 fix: error on invalid mime types (#29337)
* fix: error on invalid mime types

* allow server to check mime type instead of client

* swap ?? for ||

* fix upload icon import
2024-09-17 07:40:40 +00:00
Joshen Lim 71a184738c Chore/more disk mgt UI updates (#29333)
* Only show new disk billing UI for AWS provider projects

* Fix DiskSpaceBar autoscaling should be fixed at 90%

* Change all MiB to MB and GiB to GB

* Prettier
2024-09-17 15:22:18 +08:00
Terry SuttonandJoshen Lim 7f0a216c40 Chore/fix move folder 2 (#29326)
* Conditional schema for move query

* Small change

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-09-17 10:26:00 +08:00
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
Alaister Young 4506ebaa8c fix: github auth loading state (#29322) 2024-09-16 23:31:20 +08:00
Kamil Ogórek 7dd11016a4 ref: Use local state to improve GitHub integration security (#29321) 2024-09-16 16:46:33 +02:00
Joshen Lim cc9dca8825 Fix styling on SSL switch (#29320) 2024-09-16 11:25:23 -02:30
Joshen Lim d61a4ab1db Fix type error CSV import (#29314) 2024-09-16 17:25:35 +08:00
Joshen Lim a7c25d3186 Chore/disk mgt UI updates (#29313)
* Add note regarding final usable IOPS

* Ensure that its GiB and not GB for disk mgt ui

* Adjust language of IOPS and throughput fields, use GiB and not TiB

* PRettier

* Add note for max throughput based on compute size

* Prettier

* Small fix
2024-09-16 15:47:55 +08:00
Joshen LimandAlaister Young 706f28563f Improve table editor pagination input field (#29245)
* Improve table editor pagination input field

* sync input value with actual page value

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
2024-09-16 15:19:08 +08:00
Long HoangandAlaister Young df978a171a feat: prefill org and project name for first org/project (#29281)
* feat: prefill first org name and first project name

* chore: move prefill logic to new page

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2024-09-16 15:13:40 +08:00
Monica KhouryandJoshen Lim 63f2c8916f Chore: Add links to documentation to the Auth Providers page (#29259)
* Chore: Add links to documentation to the  Auth Providers page

* Update position of documentation button in provider form

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-09-13 15:02:51 +08:00
Joshen Lim 0c619de140 Fix sharing favorite queries (#29276) 2024-09-13 14:50:04 +08:00
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
Joshen Lim 35ab4e8ada Support up to 5 RRs for XL compute and above (#29250)
* Support up to 5 RRs for XL compute and above

* Fix hardcode

* Small style fix
2024-09-13 11:28:22 +08:00
Charis ed73af27d4 feat: command to query a table (#28683) 2024-09-12 18:12:06 -04:00
Jordi Enric 18b83e6e61 fix log explorer styles (#29267)
* undo change

* undo change in collections sidebar
2024-09-12 18:07:21 -02:30
Terry Sutton e4c2643bc4 Chore/index crash (#29258)
filter items with null colums
2024-09-12 16:53:10 -02:30
Jordi Enric 3d9b509fb1 Logs layout fixes (#29249)
* fix layout shift on refresh, fix scroll issues in side panel and table

* fix height when theres no results
2024-09-12 20:58:51 +02: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
Thomas 93053bbb07 fix: usage summary for stripe org [GEN-10963] (#29224)
fix: usage summary for log drains and third party users for stripe org
2024-09-12 13:48:22 +02:00
Ivan Vasilov a35f7d7484 chore: Bump various dependencies with vulnerabilities (#29226)
* Bump path-to-regexp to fix a vulnerability.

* Bump micromatch.

* Bump svelte.

* Bump webpack.
2024-09-12 11:05:24 +02:00
Long Hoang db35ef9f3c feat: show new org page on first login for subset of users (#29188)
* feat: show new org page on first login for subset of users

* chore: keep local storage key in constants
2024-09-12 16:21:01 +08:00
Stojan DimitrovskiandJoel Lee 78deede996 feat: update email rate-limit notice to inform about template change restrictions (#29087)
* feat: update email rate-limit notice to inform about template change restrictions

* apply suggestion from @J0

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

---------

Co-authored-by: Joel Lee <lee.yi.jie.joel@gmail.com>
2024-09-11 19:26:34 +02:00
Terry SuttonandMohammed Yasin Mulla 3681003181 style: change margin value for the documentaion button in PolicyEdito… (#29229)
style: change margin value for the documentaion button in PolicyEditorModal

Co-authored-by: Mohammed Yasin Mulla <yasinspy1999@gmail.com>
2024-09-11 14:39:55 -02:30
cf04f86ab7 Add RLS policy template to "Enable users to view their own data only" (#28778)
* Add RLS policy template to "Enable users to view their own data only"

* fix: sql definition for policy

* Update apps/studio/components/interfaces/Auth/Policies/PolicyEditorModal/PolicyEditorModal.constants.ts

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
Co-authored-by: Terry Sutton <saltcod@gmail.com>
2024-09-11 17:02:13 +00:00
Joshen Lim 548e32cb3c Project filter status, active will only show active projects, not all (#29223) 2024-09-11 20:43:05 +08: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
Joshen LimandAlaister Young 193e1531e8 Fix weird wide resizeable panel if load table editor or sql editor from a fresh browser session (#29205)
* Fix weird wide resizeable panel if load table editor or sql editor from a fresh browser session

* Update apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsx

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

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2024-09-11 13:47:09 +08:00
Joshen Lim 3e1d760f9f Fix grid checkbox styles (#29202) 2024-09-11 01:13:54 +08:00
Joshen Lim 4dfadb6c03 Fix extensions docs button for exts with no docs url (#29203) 2024-09-10 14:18:23 -02:30
Joshen Lim 942a2589f7 Allow access to the database backups page irregardless of project status (#29170)
* Allow access to the database backups page irregardless of project status

* Remove access to backups page for pause, pause failed and pausing states

* Remove access to backups page for pause, pause failed and pausing states

* Restoring state show PITR

* Add state to handle project offline for PITR page
2024-09-11 00:12:29 +08:00
Stojan Dimitrovski fc48231093 feat: add saml encrypted assertion support (#28996) 2024-09-10 12:35:14 +02:00
Joshen Lim b371266203 Chore/refactor auth users page to use data grid (#29105)
* Convert auth users page to use data grid

* Deprecate old components for auth users

* Remove unused state

* Remove unnecessary file

* Add copy cell value

* Reload -> Refresh

* Fix spelling

* Adjust sizing of search and dropdown

* Add feature flag and reinstate original auth/users UI

* Remove font mono on auth users data grid header and row cells

* Address comments
2024-09-10 11:02:25 +08: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
Thomas 13eeb941d8 chore: exclude Log Drains and MFA Phone from list of removed addons in downgrade modal (#29181)
chore: excludes Log Drains and MFA Phone from list of removed addons on downgrade modal
2024-09-09 16:53:31 +02:00
Joshen Lim d1a9447a85 Add client side validation for payload size in sql editor (#29173) 2024-09-09 20:55:05 +08:00
Joshen Lim 10f6433796 Chore/fix resource exhaustion banner (#29177)
* Fix layout in resource exhaustion banner

* lint
2024-09-09 20:29:31 +08:00
Joshen Lim adae94506c Minor improvement to schema visualizer layout of nodes without saved positions (#29169) 2024-09-09 20:14:02 +08:00
Joshen LimandCharis 9110cb827f Update stripe wrappers with more tables (#29141)
* Update stripe wrappers with more tables

* Update apps/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts

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

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-09-09 11:19:36 +08:00
Joshen Lim 17fd107f50 Chore/persist schema visualizer node positions (#29136)
* Midway implementing persist schema visualizer node positions

* Implement persisting node positions in local storage

* Fix SupportForm

* Improve default positions of new nodes
2024-09-09 11:11:32 +08:00
Joshen Lim 080a61c8e6 Fix sharing snippet without opening snippet no content (#29153) 2024-09-07 23:19:47 +08:00
Joshen Lim 2c7abaee95 Fix padding in join page (#29137)
* Fix padding in join page

* Don't show decline or join button if there's an error
2024-09-06 22:46:25 +08:00
Charis 534a248485 fix: restrict ai edge function regions (#29085)
AI edge functions error if Vercel runs them in a region that is not
supported by OpenAI. To prevent this, restrict the Edge Function regions
to the OpenAI-supported regions.
2024-09-05 10:47:09 -04:00
Ivan Vasilov f0505b2454 fix: Fix various bugs in Text Editor and JSON editor (#28766)
* Pass the edited row instead of the original row to JSON and Text editor.

* Reset the mutation when you close the json/text panel.

* Simplify the JSON editor to use the edited row value.

* Add some types to the input field component.

* Fix the behavior when opening the JSON editor from a JSON field cell.

* Another fix for the inline cell editor.
2024-09-04 23:45:16 +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
Kevin Grüneberg a27cae5c88 chore(vercel-marketplace): allow team plan (#29059)
Team plan is fully self-serve on Vercel marketplace now.
2024-09-04 10:43:01 +02:00
Joshen LimandTerry Sutton 454fda86bf Refactor SupportForm to use react hook form + new form components (#28836)
* Dont hide org field when project is selected

* Refactor SupportForm to use new form components and fix UX oddities identified

* Add scroll area to docs search results

* Address feedback

* Small padding nudge

* Add check

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2024-09-04 16:35:54 +08:00
Terry SuttonandIvan Vasilov f8228f1f48 Chore/update opt in message (#28846)
* Working

* Allow for opting-in in place on the SQL Editor page

* Show a warning after the first message

* Fix width

* Remove import

* Add context to schema dropdown

* Cleanup

* no message

* Revert the package-lock.json.

* Remove the extra div.

* Move the confirmation modal outside so that it can be triggered by the first message alert.

* Add another alert to guide the user to selecting a schema.

* Fix imports

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-09-03 15:04:01 -02:30