Commit Graph
23 Commits
Author SHA1 Message Date
Ivan Vasilov 59a109a78f fix: Remove all csp rules for non-platform studio (#21666)
Remove all csp rules for non-platform studio.
2024-03-01 10:33:16 +01:00
Alaister Young f8b21c5e2d fix: supabase project ws csp issue (#21586) 2024-02-27 14:41:08 +11:00
Ivan Vasilov 49b945e7e5 fix: Various fixes and improvements for the local build (#21560)
* Add git to enable libpg build.

* Fix a copy-paste issue.

* Enable the realtime inspector in local and selfhosted environments.
2024-02-26 15:43:09 +01:00
Jonathan Summers-MuirandIvan Vasilov d8ae6de7a8 feat: add new Icons package for custom made icons (#21477)
* feat: add new Icons package

* Create README.md

* add more icons

* add "Home" icon and "Postgres" icon

* reduce helpers

* remove old files

* make dev deps

* Delete package-lock.json

* Update README.md

* add to packages for other apps

* remove from db.design

* Update README.md

* Move the build-icons package in the packages folder.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-02-26 09:40:56 +01:00
Ivan Vasilov 66ae36e005 feat: Playwright tests (#21083)
* initial commit for testing the github action.

* Improvements to the Github action.

* Add docker caching.

* Fix an issue in the github action.

* Another fix for the action.

* Just delete the db after the tests.

* Add a supabase app to the playwright-tests.

* Delete .env.testing.

* Remove the docker image caching from the Playwright github action.

* Add a README.md.

* Add an example test for the table editor.

* Ignore the generated keys.json.

* Add commands for running and writing tests.

* Remove Auth tests.

* Only show the react-query tool when not in test mode.

* Add data-testids to the buttons and use them in the test.

* Handle a case where SUPABASE_URL isn't defined.

* Fix the button test id.

* Remove some dependency.

* Try setting a timeout for an action.

* Add timeout to another action.

* Add some timeouts before the save button.

* Add some timeout before clicking save.

* Enable the video recording only during local testing.

* Minor fixes.

* Expand the README.
2024-02-19 12:12:54 +01:00
Kevin Grüneberg efda654789 chore: sign impersonation JWT with browser crypto (#20212) 2024-02-19 15:16:42 +08:00
Ivan VasilovandTerry Sutton 5754c23abb feat: Move some components into ui-patterns (#20774)
* Change all imports in the ui package which import via the @ui shortcut.

* Add a new ui-patterns package. Add it to all apps.

* Migrate PrivacySettings from ui to ui-patterns.

* Migrate ConsentToast from ui to ui-patterns.

* Remove providers folder from ui package.

* Move GlassPanel.

* Migrate IconPanel.

* Migrate TweetCard.

* Migrate ThemeImage.

* Remove LWXCountdownBanner.

* Migrate CountdownWidget.

* Migrate SchemaTableNode.

* Migrate ExpandableVideo.

* Migrate ThemeToggle.

* Fix bunch of imports in the docs app.

* Revert some unnecessary changes.

* Expand the README.md.

* Fix the tailwind configs, they were using old folder structure.

* Fix leftover merge conflicts.

* Remove a deleted page in master.

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2024-02-12 12:44:00 +01:00
Ivan Vasilov f868f1f5cf fix: Add the API URL to the studio CSP to make local environment work. (#21159)
Add the API URL to the  studio CSP to make local environment work.
2024-02-10 11:22:58 +08:00
Ivan Vasilov b145c8613f fix: Handle a case where API_URL is not defined while building studio (#21016)
If the env var is not defined, the next.config.js throws an error and breaks local building of studio.
2024-02-05 16:37:16 +01:00
Alaister Young d51934fcb0 fix: include raw.githubusercontent.com in csp (#20800) 2024-01-28 17:44:32 +08:00
Alaister Young 0a322d38d6 fix: include github api in csp (#20798) 2024-01-28 09:17:49 +00:00
Kevin Grüneberg 6bf59c2409 fix: invalid next config warning (#20757) 2024-01-27 13:58:54 +08:00
Joshen Lim 2bf174335e Fix CSP for storage preview (#20667) 2024-01-23 17:59:23 +07:00
Alaister Young caa5f4c5fa fix: include websockets in CSP (#20657) 2024-01-23 18:26:32 +11:00
Terry SuttonandAlaister Young 554fcb2531 Add worker to csp (#20644)
* Add worker to csp

* Prettier

* Prettier

* Prettier

* Prettier

* fix prettier

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
2024-01-22 22:46:44 -03:30
Joshen Lim bf500447a6 Update CSP for staging storage (#20633)
* Update CSP for staging storage

* Update
2024-01-22 15:00:57 +00:00
Alaister Young 677f7aada5 chore: update dashboard CSP (#20519)
* chore: update dashboard CSP

* allow images from supabase.com

* allow vercel thingy on preview

* more vercel thingy things

* fix incorrect semicolons

* add gotrue url

* allow connecting to projects

* more fixes for vercel

* add stripe

* add stripe frame

* add 1.1.1.1

* add cloudflare url

* add more domains
2024-01-22 21:33:46 +11:00
Ivan Vasilov 7073c51baa fix: Enable the Node polyfills flag (#19965)
Enable the fallback node polyfills flag
2023-12-22 12:19:21 +01:00
Kevin Grüneberg 9a1bd73339 chore: stop polyfilling node modules (#19909) 2023-12-21 11:31:32 +01:00
Ivan Vasilov efa055f068 fix: RLS Editor with Streaming AI - second attempt (#19462)
* Reapply all changes from the reverted PR.

* Move the API route to pages folder.

* Turn off outputFileTracing.
2023-12-06 15:54:22 +01:00
Beng EuandAlaister Young 744c61c1d7 Speed up Studio development via SWC and keeping built pages in memory for longer (#19192)
* fix: enable `useDefineForClassFields` in Studio `tsconfig.json`

Per https://mobx.js.org/installation.html#use-spec-compliant-transpilation-for-class-properties. Needed to switch to SWC.

* fix: remove Studio `.babelrc` to enable SWC

This was tried previously and reverted. I believe that it should work now with `useDefineForClassField` enabled in the previous commit, support for which was added to Next.js in https://github.com/vercel/next.js/pull/36335.

* fix: set Studio `onDemandEntries` options `maxInactiveAge` to 1 day, `pagesBufferLength` to 100

This will keep up to 100 built pages in memory for 1 day, speeding up development. You'd expect that this speed up would come at the cost of memory usage, but in my unscientific testing involving clicking around every page I could get to, with SWC compilation, memory usage maxed out at ~3.3 GB with these options enabled, and no compilation was needed for any revisited pages, whereas without these options, memory usage maxed out at ~4 GB(?!), and revisited pages were compiled once they were out of the buffer. Perhaps the recompilation actually worsens memory usage.

* fix prettier

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
2023-11-24 11:34:44 +01:00
Alaister Young 2794a7bd08 fix: make base path redirect non-permanent (#19139) 2023-11-22 20:19:38 +11:00
Ivan Vasilov 436bdb10ae chore: Move the studio app to apps/studio (#18915)
* Move all studio files from /studio to /apps/studio.

* Move studio specific prettier ignores.

* Fix the ui references from studio.

* Fix the css imports.

* Fix all package.json issues.

* Fix the prettier setup for the studio app.

* Add .turbo folder to prettierignore.

* Fix the github workflows.
2023-11-15 12:38:55 +01:00