Commit Graph
3910 Commits
Author SHA1 Message Date
Terry Sutton 46514d8955 Chore/csp round two (#27524)
Avatars, round two
2024-06-25 10:35:37 -02:30
Ivan VasilovandJoshen Lim 02b3d50207 feat: Support private channels in the realtime inspector (#27362)
* Add the new realtime js library under an alias.

* Add a isChannelPrivate property to realtime config.

* Use the aliased realtime-js library to connect to the realtime server.

* Add a new switch to enable users to connect to a private channel.

* Hide the public/private switch behind a feature flag.

* Fix an import.

* Add description to the switch.

* Small updates, add documentation button in choose channel popover

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-06-25 14:49:52 +02:00
Terry Sutton e0510c4f95 Chore/add change email instructions (#27093)
* Add instructions for changing email

* Check users account type

* Lists
2024-06-25 10:13:31 -02:30
Terry Sutton 103bd26197 Chore/avatar csp (#27504)
Github avatar csp
2024-06-25 09:03:38 -02:30
Terry Sutton f667deaaea Chore/longer toast time (#27506)
Feedback toast disappears before it can be read
2024-06-25 08:50:37 -02:30
Joshen Lim 683b8f87bc Tiny copy change for database password (#27521) 2024-06-25 18:23:04 +08:00
Jonathan Summers-MuirandJoshen Lim eb55650d76 [Dashboard] add data api option to new project form (#26809)
* init layouts in project settings

* Update general.tsx

* update gap

* Update Scaffold.tsx

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx

* spacing issues

* now added a enabled switch

* Revert "now added a enabled switch"

This reverts commit f22050302a.

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx

* revert

* Update project-postgrest-config-update-mutation.ts

* add bottom padding

* init changes

* Update PostgrestConfig.tsx

* Update [slug].tsx

* add radio group

* add types

* Update PostgrestConfig.tsx

* fix

* Update PostgrestConfig.tsx

* Update project-create-mutation.ts

* update API types

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx

* Update api.d.ts

* Update API codegen typings

* fix: issue with booleans in radios

* add warning box

* Update [slug].tsx

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-06-25 15:47:24 +08:00
Alaister Young c918aea9ee chore: new project statuses (#27213)
* chore: new project statuses

* add restarting layout

* add restore failed state

* update project cards

* update wording

* fix ts errors

* address feedback

* add pause failed state
2024-06-24 16:06:58 +08:00
angelico d038b26751 fix: smol nit (#27484)
* fix: smol nit

* chore: feedback
2024-06-24 15:29:04 +08:00
Joshen Lim d80befbae2 More auth related sentry whitelist errors (#27481)
* More auth related sentry whitelist errors

* Make pretty
2024-06-24 14:29:12 +08:00
Joshen Lim 45066f6b65 Handle if flag is false for restore disable check (#27483) 2024-06-24 14:17:16 +08:00
Joshen Lim 0bf85c32d6 Update restore validity logic for paused projects behind feature flag (#27404)
* Reinstate 90 day restore disable logic with feature flag

* Update types

* Fix

* Fix conditionalg

* Fix minor UI papercuts

* Add exact date for pause disable

* Error handler for pause status

* Update flag nmame
2024-06-24 13:43:52 +08:00
Kevin Grüneberg eecafc41e0 fix: Updating EU tax ids (#27440) 2024-06-22 17:19:53 +08:00
Charis 253668fd93 fix: types (#27433) 2024-06-21 12:22:42 -04:00
Terry Sutton d95a0fdfd4 Add link to smtp settings (#27429) 2024-06-21 09:46:36 -02:30
Kevin GrünebergandThomas bcda19a3bc chore: text adjustments for upcoming invoice section (#27419)
Co-authored-by: Thomas <31189692+ecktoteckto@users.noreply.github.com>
2024-06-21 17:26:57 +08:00
Charis 9d6d29c4db feat(cmd menu): add hooks (#27044) 2024-06-20 19:17:32 -04:00
Terry Sutton 6fa71c6c8e Chore/allow index advisor for postgrest queries (#27364)
* Run index advisor on postgrest queries

* Fix loading state
2024-06-20 17:47:30 +03:00
Kamil Ogórek 18e4f72b1d ref: Do not disable branching when removing GitHub connection (#27412) 2024-06-20 20:43:40 +08:00
Joshen Lim 8a703de845 Temp fix show tooltip message for restore project button (#27408) 2024-06-20 16:08:58 +08:00
Ivan Vasilov 57197f5c05 fix: Minor fixes for turborepo in Vercel and Docker (#27376)
* Passthrough the sentry env vars to studio so that the sourcemaps are uploaded correctly.

* Fix the Turbo command in the Dockerfile.

* More fixes to the Dockerfile.
2024-06-19 10:31:13 +00:00
Terry SuttonandJoshen Lim d6f9cb53f9 Set the primary key as the default sort if no other sort exists (#27097)
* Set the primary key as the default sort if no other sort exists

* Rename

* Add contextual toast messages when trying to update/delete row on table with no PKs

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-06-19 14:58:48 +08:00
Kevin Grüneberg f541107196 chore: use new tax id endpoints (#27246)
Adapts the tax id view to the new MGMT-API endpoints. Users can now only manage a single tax id instead of adding multiple.

Besides
- Use non-deprecated fetchers
- Use Shadcn components
2024-06-19 12:19:20 +08:00
Terry Sutton cae67a747a Chore/add dupe table button (#27359)
Add duplicate table button
2024-06-18 21:40:04 +03:00
Monica KhouryandTerry Sutton c3af755d29 Chore: preserve whitespace in SQL Editor result table (#27324)
* Chore: preserve whitespace in result

* Update apps/studio/components/interfaces/SQLEditor/UtilityPanel/Results.tsx

* Update apps/studio/components/interfaces/SQLEditor/UtilityPanel/Results.tsx

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2024-06-18 12:38:20 -02:30
Terry Sutton 45998fd31a Chore/fix limit in sql query (#27179)
* Dont append limit on fetch first queries

* Add some tests
2024-06-18 20:46:00 +08:00
Ivan Vasilov a63731bbf8 chore: Bump turbo to v2 (#27182)
* Bump the version of turbo to 2.0.3.

* Fix the breaking changes in turbo config.

* Make the npm version more loose.

* Fix the build command for the database-design app.

* Try adding some env vars to the turbo for www.

* Add more missing env vars.

* Bump the turbo version to 2.0.4.

* Remove SUPABASE_SERVICE_ROLE_KEY from docs#build since it's used by other scripts, not by build.
2024-06-18 12:32:36 +02:00
Terry Sutton 6b869dc9bc Case insensitive search (#27337) 2024-06-18 17:49:51 +08:00
Ivan Vasilov 3738cebbd7 feat: Unify ESLint configs for Next.js apps (#27275)
* Move the eslint preset into a separate package.

* Import the next package into all apps. Remove redundant packages.

* Import the new eslint rules.

* Update the package-lock.
2024-06-17 12:17:01 +02:00
Kevin Grüneberg 0ccc842e54 chore: clarify costs on project creation (#27268)
One of our bigger papercuts in terms of billing is customers not understand compute pricing and that they cannot launch unlimited projects for $25 in total per month. Customers also get confused with "Compute Hours" on their bill.

We already show a breakdown of compute hours/compute costs on the organization billing and usage pages. While that can be improved in the future, this PR aims to make compute costs much more clear when launching a new project.

This should avoid "surprise" compute charges and serves as kaizen improvement. Info is only shown for paid plan organizations, as it's irrelevant for free plan organization.
2024-06-14 20:22:30 +08:00
Ivan Vasilov 30f43b05b1 chore: Address the Failed to construct 'URL': Invalid URL error report in Sentry (#27245)
* If the error is Failed to construct 'URL': Invalid URL, send it only 1% of the cases it happened.

* Fix a type error.
2024-06-14 11:40:25 +02:00
hallidayoandKevin Grüneberg 5737c4adcf feat: studio - replace swift svg (#27260)
Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>
2024-06-14 13:03:14 +08:00
Kevin Grüneberg e559600d76 chore: handle invoice issued status and adjust pay now link (#27233) 2024-06-13 15:39:20 +08:00
Joshen Lim 8fb4f4f985 Remove 90 day check on paused project (#27232) 2024-06-13 11:35:16 +07:00
Long Hoang c106aea52a chore: highlight preferred option (#27173) 2024-06-13 11:11:54 +07:00
Charis 95062ff952 test: mock next/compat/router (#27223) 2024-06-12 19:26:45 -04:00
Ivan VasilovandAlaister Young 3c6c3db48f fix: Make the copy in the Create User modal clearer (#27205)
* Separate the message because it's not connected to the checkbox.

* Fix obsolete fields.

* Update apps/studio/components/interfaces/Auth/Users/CreateUserModal.tsx

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

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2024-06-12 13:18:33 +00:00
Ivan Vasilov 4af88e92c0 fix: Make studio work without importing the storybook dependency (#27176)
* Revert "Add storybook dependency back so that prod studio works. (#27174)"

This reverts commit 118b4123a8.

* Remove the fallbackNodePolyfills flag since it disables the process.env functionality in Nextjs.
2024-06-12 13:25:10 +02:00
Terry Sutton 950370b0df New link for interpreting disk io (#27190) 2024-06-11 17:07:37 -02:30
Mankirat Singh 59b7eed1df Fix template overflow (#27156) 2024-06-11 09:24:42 -02:30
Joshen LimandAlaister Young a6b2b93f92 Disable restores if project paused for longer than 90 days (#27053)
* Disable restores if project paused for longer than 30 days

* Update to 90 days

* Update copy

* PRetty

* Update based on API changfes

* Prettier

* Update

* Minor copy fix

* simplify wording

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
2024-06-11 18:02:56 +07:00
Jānis RuduksandCharis e8ca554bee fix: .env variable typo (#22884)
typo fix

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-06-11 05:18:03 +00:00
Alaister Young 08955bfe68 chore: enable webpackBuildWorker (#27145)
* chore: enable webpackBuildWorker

* prettier
2024-06-10 17:20:53 +02:00
Ivan Vasilov 9b72cd8cf6 fix: Move the sentry user generation logic into the telemetry component (#27152)
* Move the sentry user generation logic into the telemetry component.

* Fix a missing import.
2024-06-10 14:41:18 +00:00
Joel Lee 7547c52e4f fix: revoke role on public for hooks (#27077)
* fix: revoke role on public for hooks

* fix: update SQL editor queries

* fix: update examples

* fix: update RBAC doc

* fix: update description to describe why we revoke public

* fix: correct use of we

* fix: run prettier

* fix: remove unintentionally added files
2024-06-07 22:03:12 +02:00
Ivan Vasilov 5847ad54cf fix: Test the playwright tests in Github actions (#26799)
* Add an API page for run-lints endpoint.

* Fix the playwright test.

* Make the check mandatory in the github action.

* Fix a console.log.

* Use a more stable way of waiting for buttons before clicking them.

* Add helper method for dismissing toasts.

* Wait for the other toast.

* Try and fix the flakiness of the toasts.

* Minor fix.

* Upload artifacts at the end of the github action run.

* Fix yaml stuff.

* Use the newer action for uploading. Shorten the retention period to 7 days.

* Add waitForResponse for the entity types API call.

* snapshot.

* Wait for the page to be loaded.

* Make the timeout bigger when waiting for response.

* Try to fix the timeouts.

* Minor restructuring of the test.

* Add another test and few minor todo tests.

* Fix the table names.

* Don't render hcaptcha in test mode.

* Expand the test to include sorting and filtering.

* Add a test for checking if the other schemas are can be listed.

* Make the sort popover button more stable.

* Fix a unused forward ref in the NavMenuItem component.

* Don't render the Toaster container when in test mode.

* Simplify starting the dev server when testing.

* Fix all inputs to have proper test ids.

* Fix the command for testing.
2024-06-07 17:44:28 +02:00
Alaister YoungandIvan Vasilov a82bf1311d chore: branches tabs use url state (#27085)
* chore: branches tabs use url state

* break out tab type

* Add extra type niceness.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-06-07 22:13:06 +08:00
Monica KhouryandTerry Sutton 538b59b698 Feat: Populate docs search on support form subject field (#23667)
* Draft: Docs Search

* Add: Command_Shadcn_

* Fix: typecheck error

* Fix: typecheck null error

* Fix: docs search when the subject field is emptied

* Make the design more compact and show only 5 results

* Add inset around results

* Fix inset

* Fix conflict errors

* Fix hover effect

* replace commands with links

* Fix broken links

* Nudges

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2024-06-07 10:16:01 -02:30
Ivan Vasilov cc47815af9 fix: Show the notice only on local/staging (#27089)
Show the notice only on local/staging.
2024-06-07 17:40:18 +07:00
Alaister Young e169e47171 fix: create preview branch modal (#27083)
* fix: create preview branch modal

* remove console.log
2024-06-07 08:26:08 +00:00