Commit Graph
111 Commits
Author SHA1 Message Date
Kevin Grüneberg 11914a55de chore: remove old billing code (#18610) 2023-11-01 10:52:52 +01:00
8057309e51 chore: upgrade next 13 + react 18 (#17839)
* update deps + image codemod (studio)

* update next links (studio)

* update deps

* update links (ui)

* remove next-transpile-modules

* move next-themes dependency

* chore: update ConfirmDialog

* chore: remove old ConfirmModal js file. migrated to TS

* dependency wrangling

* remove empty page

* update next links (www)

* First run bump react-data-grid-v7 beta 4

* fix package-lock.json

* more deps wrangling

* update recharts

* update sentry options

* fix some broken things in www

* studio fixes

* fix graphiql

* fix studio build

* fix menu hydration

* small build error

* update turbo

* fix www typescript errors

* docs image codemod

* links codemod docs

* fix docs typescript errors

* move useConsent to ui to prevent circular deps

* Fix links

* Fix homepage

* Fix links

* move studio/ to apps/

* Revert "move studio/ to apps/"

This reverts commit 1b0a985fcb.

* disable outputFileTracingRoot

* remove outputFileTracingRoot

* fix homepage product cards

* fix PrivacySettings links

* Fix links

* Fix the build for www.

* Minor fixes for JWTGenerator.

* Fix the docs and ui tests.

* Revert codehike back to 0.8.3

* remove ConfirmAlert()

* reenable babel because mobx hates me

* fix blog image and comparison page avatar

* Fix svg errors

* update image synthax

* Fix code hike

* Move the button in a div so that it doesn't inherit its parent height and make the button look weird.

* When components are defined in a component, they get recreated on each render. This makes them unstable in certain cases and causes infinite rerenders.

* Replace the next/head usage with next/script.

* Chore/upgrade next 13 fix table editor (#18431)

* fix table editor styling and fix row deletion logic

* Fix deleting selected rows from header, and fix checkboxes not clearing up

* Fix deleting all rows when filter applied, and fix deleting all rows

* Fix grid size styling issue

* Fix TS error

* Hydration errors

* studio org pages fixes

* fix more studio links

* audit logs fixes

* dropdown icon styling fixes

* fix some images in www

* upgrade to next 14

* try new sentry wrapper for api

* see if this is even invoked

* Revert "see if this is even invoked"

This reverts commit 86c3973ffa.

* Revert "try new sentry wrapper for api"

This reverts commit f67623ebad.

* Revert "upgrade to next 14"

This reverts commit a24dd6131e.

* chore: allow node version 19/20

* Try to fix the LogTable so that it renders with the newer "react-data-grid" version.

* Fix type errors in the log renderer code.

* Fix the replication screen.

* Add the CSS for the GraphiQL.

* Fix SQL editor results rendering

* Lint

* Fix SQL editor results height issue

* Fix auth RLS not invalidating RQ when toggling RLS

* Fix database tables new/edit column regressed

* Fix migrations page empty state if migrations schema not yet created

* Fix API side panel docs temp remove postgrest text for column description PK and FK

* Fix + improve timeout handling in SQL editor

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
Co-authored-by: Terry Sutton <saltcod@gmail.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>
2023-10-31 05:51:46 +00:00
Jonathan Summers-Muir 58225e0d9e chore: remove space and reduce form message weight (#18454) 2023-10-30 19:50:35 +11:00
Joshen Lim 763a2f0067 Fix branching dropdown scrollarea (#18489)
* Fix branching dropdown scrollarea

* Add truncate and title prop to branch options in branch dropdown
2023-10-26 17:12:13 +08:00
Joshen Lim 237fdb8db0 Chore/update branch selection UI (#18402)
* Set up branch selection UI in EnableBranchingModal to be text input

* Scaffold new CreateBranchModal

* Refactor Enable Branching Modal to use RHF and implement async validation

* midway updating create branch modal

* Update create branch modal with branch checking through text input

* Deprecate create branch side panel

* Remove unused import

* Small improvement to validation

* Remove console log
2023-10-24 18:29:42 +08:00
Alaister YoungandJoshen Lim dec916bbb1 chore: better github installation flow (#18066)
* chore: better github installation flow

* Update studio/components/interfaces/Integrations/ProjectLinker.tsx

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

* Update studio/components/interfaces/Integrations/ProjectLinker.tsx

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

* remove organizationIntegrationId state

* open Install Github Integration in current window

* enabledBranching -> enableBranching

* adds loading state for ProjectLinker

* add new project connection opens linker

* filter connections by projectRef

* truncate github repo name

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2023-10-17 17:59:19 +11:00
3dca7ff61c feat: disable features (#17553)
* feat: groundwork for disabling features

* update to use profile endpoint & disable features

* fix ts error

* add useIsFeatureEnabled mock

* fix merge conflicts

* fix test

* upgrade to pro

* prettier

* add more billing enabled feature checks

* disable more stuff

* update useIsFeatureEnabled hook

* Fix database reports disk size

* Fix database reports disk size

* disable log sources

* disable moar things

* Tiny fix

---------

Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2023-10-16 12:59:36 +08:00
Kevin Grüneberg aaf144d7fb fix: org dropdown with two orgs with same name (#18142) 2023-10-12 14:16:22 +02:00
Ivan Vasilov ae4a06f715 Change all occurences of text with text-foreground (#17890)
* Change all occurences of text with text-foreground.

* Minor fix.
2023-10-09 16:11:18 +00:00
Ivan Vasilov 7dea89cc35 Drop the _shadcn_ suffix from the the Dropdown component (#17804)
Replaced all occurrences of _shadcn_ for the Dropdown component.
2023-10-03 13:12:34 +02:00
Joshen LimandJonathan Summers-Muir 0330ef01dc Prompt users to migrate to org billing if trying to enable branching but on legacy billing (#17776)
* Prompt users to migrate to org billing if trying to enable branching but on legacy billing

* Lint

* Update studio/components/layouts/AppLayout/EnableBranchingButton/EnableBranchingModal.tsx

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>

* Update studio/components/layouts/AppLayout/EnableBranchingButton/EnableBranchingModal.tsx

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>

* Update studio/components/layouts/AppLayout/EnableBranchingButton/EnableBranchingModal.tsx

* Lint

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2023-09-29 13:33:34 +08:00
Joshen Lim 32dda1bb23 Feat/UI feature previews (#17775)
* Break me.tsx into smaller components

* Deprecate duplicate app valtio state

* Initialize feature preview modal

* Add telemetry

* Address comments
2023-09-29 13:20:30 +08:00
9910073432 Chore/proper theme switcher (#17635)
* Add theme switcher

* Update

* Update

* Fix docs

* Update

* Fix www

* Componentize ThemeToggle

* Remove unused TopBarRef, rename existing component

* Update apps/www/pages/launch-week/6/index.tsx

Co-authored-by: Greg Richardson <greg.nmr@gmail.com>

* Update apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx

Co-authored-by: Greg Richardson <greg.nmr@gmail.com>

* Update apps/www/pages/launch-week/index.tsx

Co-authored-by: Greg Richardson <greg.nmr@gmail.com>

* Update apps/www/pages/launch-week/7/index.tsx

Co-authored-by: Greg Richardson <greg.nmr@gmail.com>

* Update apps/www/pages/launch-week/tickets/[username].tsx

Co-authored-by: Greg Richardson <greg.nmr@gmail.com>

* Update always-on darkmode pages

* update

* Prettier

* Check resolved theme for images

* use resolved theme

* Fix customer stories

* Update apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx

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

---------

Co-authored-by: Greg Richardson <greg.nmr@gmail.com>
Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
2023-09-26 16:27:45 +00:00
Ivan Vasilov 76db9f27b3 Migrate dropdowns to use the new Dropdown component (#17427)
* Remove unneeded component.

* Update the dropdown content to support size prop (medium by default). Add space-x-2 to the dropdown item. Add flex to DropdownTrigger so that it's more vertically centered.

* Migrate Insert row dropdown in the TableEditor.

* Refactor UserDropdown to use the new Dropdown from shadcn.

* Migrate the ColumnMenu to use the new dropdown.

* Migrate the rest of the dropdowns.

* Remove the size prop and set the w-64 as default.

* Fix build errors.

* More dropdown fixes.

* More fixes.

* More fixes to various dropdowns.

* Remove the flex from the DropdownTrigger and add it in where it's needed.

* Snapshot.

* Remove keys on dropdown separators.

* Fix the dropdown in the SQL editor.

* Minor type fix.

* Remove space-x-2 from DropdownMenuItem and add it to each item where it's needed.

* Remove the space from the dropdown item.

* Fix a build error.

* Fix the item text in some of the dropdowns.

* Remove duplicate CSS from all dropdown items.

* The SubMenuContent text should be lighter to match MenuContent.

* Fix various CSS issues.

* Revert "Remove unneeded component."

This reverts commit ef606f6695.

* Fix migrated CSS classes.

* Last round of feedback fixes.
2023-09-26 15:29:07 +02:00
Ivan Vasilov 6648acacea Migrate CSS classes for light text (#17725)
* Replace all occurences of text-scale-1100 to text-foreground-light.

* Replace all occurences of text-scale-1000 with text-foreground-light.

* Fix double uses of text-foreground-light.
2023-09-26 11:05:28 +02:00
Joshen Lim 7aee78a8b8 Replace all occurences of text-scale-1200 with text-foreground (#17723)
* Replace all occurences of text-scale-1200 with text-foreground

* Fix spelling
2023-09-26 15:53:03 +08:00
df0af69c47 Sync studio <> master (#17652)
* [hotfix studio] Update toast text (#17648)

Update ConsentToast.tsx

* fix: nav org redirect (#17651)

fix: nav v2 org redirect

* hotfix: wrappers tables bug (#17682)

Fix: Resolve null.length TypeError in WrapperRow.tsx (#17679)

* Fix: Resolved null.length TypeError in WrapperRow.tsx

* prettier

* switch to &&

---------

Co-authored-by: Monica Khoury <99693443+monicakh@users.noreply.github.com>

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
Co-authored-by: Monica Khoury <99693443+monicakh@users.noreply.github.com>
2023-09-25 02:54:00 +10:00
Joshen Lim fd1878a614 Update 2023-09-21 14:36:25 +08:00
Joshen Lim 14838dffff Rename alt prop for all branch related components to isNewNav 2023-09-20 19:59:53 +08:00
Joshen Lim a7822ae6fe Address comments 2023-09-20 19:14:22 +08:00
Joshen Lim c4db2d2577 Spelling 2023-09-20 15:20:54 +08:00
Joshen Lim adb4d90c5b Fix and improve loading states + speed when going between projects and branches via header dropdowns 2023-09-20 14:44:19 +08:00
Joshen Lim 03f35e7ddb Deprecate old org and project dropdowns, LayoutHeader to use the new ones under AppLayout 2023-09-20 14:16:16 +08:00
Jonathan Summers-Muir 40d41d7fd3 Update GithubRepositorySelection.tsx 2023-09-20 00:29:34 +08:00
Jonathan Summers-Muir 51585fdb2c Update GithubRepositorySelection.tsx 2023-09-20 00:20:56 +08:00
Jonathan Summers-Muir 6791e1517f Merge branch 'master' into chore/add-branch-dropdown-in-nav-v1 2023-09-20 00:00:50 +08:00
Ivan Vasilov fb56beae08 Put the audit logs page behind a feature flag. All links to it are hidden (even in v2 nav layout). 2023-09-18 17:06:30 +02:00
Joshen Lim 50fa91caff Small fixes on logic to show branching buttons 2023-09-12 15:41:57 +08:00
Jonathan Summers-Muir 0ee793cb5e Merge branch 'master' into chore/add-branch-dropdown-in-nav-v1 2023-09-12 08:18:43 +01:00
Ivan Vasilov 4b6a0f1ac3 Add links to audit logs to all nav panels and dropdowns. 2023-09-07 10:50:19 +02:00
Kevin Grüneberg 611462a0e7 feat: go-live org-based billing 2023-09-04 13:04:27 +02:00
Joshen Lim 1d19861c37 Address comments 2023-08-25 12:55:04 +08:00
Joshen Lim 692cbfc792 Revert changing env 2023-08-24 16:22:35 +08:00
Joshen Lim c988ca489c Fix 2023-08-24 16:12:10 +08:00
Joshen Lim f2cec5c61d Add ENV to lib/constants and update github integration app url to enable branching modal 2023-08-24 16:00:14 +08:00
Joshen Lim d5b6de5996 Add branch dropdown in nav v1 2023-08-24 15:47:53 +08:00
Jonathan Summers-Muir 358ff034d9 Merge branch 'master' into feat/branch-management-2--with-project-settings 2023-08-10 11:54:45 +08:00
Joshen Lim 6bb4fd238c Merge pull request #16268 from supabase/fix/branch-management-ui-fixes
Fix/branch management UI fixes
2023-08-08 00:17:49 +08:00
Joshen Lim 483a275e53 Merge branch 'master' into fix/paper-cuts 2023-08-07 15:16:50 +08:00
Joshen Lim 3bf2a53173 Update BranchDropdown 2023-08-07 11:28:49 +08:00
Jonathan Summers-Muir d75e945b89 build errors 2023-08-05 04:28:01 +08:00
Joshen Lim d7e07d9e72 Merge branch 'feat/branch-management-2' into feat/branch-management-3 2023-08-04 11:51:55 +08:00
Joshen Lim 36e25209e0 Bring changes from master in and resolve conflicts 2023-08-03 21:37:57 +08:00
Ivan Vasilov e28f730bb5 Add ids to buttons on the top bar to make UI testing easier. 2023-08-03 13:38:05 +02:00
Joshen Lim 42838e32b1 Convert app header dropdown buttons to include names 2023-08-03 18:13:01 +08:00
Joshen Lim ff80936450 Project dropdown show all projects irregardless of status 2023-08-03 17:39:23 +08:00
Joshen Lim 41acaf513a Update AppHeader settings tooltip to org settings 2023-08-03 17:28:16 +08:00
Joshen Lim 25c09c4144 Add some scaffolding for vercel integration 2023-08-03 16:53:11 +08:00
Joshen Lim fc54a815bc Merge branch 'feat/branch-management-2' into feat/branch-management-3 2023-08-03 15:58:37 +08:00
Joshen Lim 7c7f462cc5 Fix 2023-08-03 15:58:25 +08:00