Joshen Lim
5d0d63284b
Support using API schema in create project ( #27918 )
...
* Support using API schema in create project
* Fixes
2024-07-12 10:25:34 +08:00
Francesco Sansalvadore
6b0ea89f5b
cmdk mobile improvements ( #27815 )
...
mobile cmdk new layout and animation
2024-07-10 10:30:07 +02:00
Jonathan Summers-Muir
8ce8c7ae14
[Design System] fix: change default size of Input to "small" ( #27234 )
...
Update input.tsx
2024-07-08 12:37:14 +01:00
Francesco Sansalvadore
0d657df42e
feat: docs global top nav ( #26917 )
...
Docs global top nav
2024-07-04 11:51:13 +02:00
Alaister Young and Kevin Grüneberg
70da0f1d1d
chore: cleanup packages ( #27770 )
...
* chore: cleanup packages
- Avoid circular imports
- Export API-types as types
- pg-format without depending on Node internal Buffer (not browser-compatible)
- Avoid importing from barrel files in ui dir
* chore: avoid barrel file imports in studio (#27771 )
* chore: avoid barrel file imports
- Removes some unused imports
- Avoids barrel file import for faster builds + less memory
* add eslint rule
* type fixes
* delete layouts barrel
* delete components/grid barrel file
* delete components/grid/utils barrel file
* delete components/grid/components/common barrel file
* delete components/grid/components/editor barrel file
* delete components/grid/components/formatter barrel file
* delete components/grid/components/grid barrel file
* delete components/grid/components/header/filter barrel file
* remote components/grid/store barrel file
* remove components/interfaces/Auth/Policies barrel file
* delete components/interfaces/Settings/Logs barrel file
* delete components/ui/CodeEditor barrel file
* delete components/ui/Forms barrel file
* delete components/ui/Shimmers barrel file
* delete data/analytics barrel file
* delete hooks barrel file
* cleanup lib/common/fetch barrel file
* final * barral files cleanup
* global react-data-grid styles
* remove console.log
---------
Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com >
* fix build
---------
Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com >
2024-07-04 14:48:10 +08:00
Charis
f4779d4844
refactor: migrate guides to app router ( #23101 )
...
Migrate guides to App Router.
2024-07-03 10:25:06 -04:00
Francesco Sansalvadore
efc5ee6ec4
global image component ( #27410 )
...
* global ui Image component
* migrate docs images to new global component
* use Image component in www mdx components
* update Image description
* remove redundant props
* better ZoomContent types
* remove ThemeImage
* remove ZommableImg component
* add use client to Image component
2024-07-03 13:02:13 +02:00
Jonathan Summers-Muir
97385256a9
fix: add overflow-hidden to Dialog component's <DialogSection /> ( #27557 )
2024-07-02 11:46:24 +00:00
Jonathan Summers-Muir
a3e532a482
[Design System] chore: <DropdownMenu /> modal prop set to false as default ( #27369 )
...
chore: `<DropdownMenu />` `modal` prop set to `false` as default
2024-07-02 18:42:53 +08:00
1127c4ba88
Project Level Permissions ( #27347 )
...
* fix: update Permission params
* fix: upgrade check permission hook to support project level role
* fix: usePermissionsLoaded
* fix: Permission params can be undefined
* Scaffold new access management UI
* Add validation
* Update roles view
* Add tooltip
* Add button to apply role to all projects
* Update UI to select projects first instead of roles
* Merge master update UI
* Midway trying to implementation project level perms API
* First pass implementating updating project level permissions
* Add client side validation for assigning/removing roles
* Midway implementing new invites
* Integrate most of the project level permissions functionality
* fix: filter out org-level permissions before checking
* Add relevant UI guards in org level pages for project role POV
* Minor refactors
* Small refactors
* More fixes
* Moar refactors
* More fixes
* More fixes
* Refactor update role logic and smack some test cases on it
* Fixes
* Fix type issue
* Fix type
* more fixes, refactors, adding checks...
* MORE fixes
* Add perms checking for replicas
* Add ButtonTooltip component and use them to prevent repetition of pointer events auto for buttons with tooltips
* Convert all buttons with tooltips to use ButtonTooltip
* refactor
* PRettier
* Small fix
* Remove commented out code in organization-invitation-accept-mutation
* fix: switch to use the platform oauth authorizations routes
* Add perms checking for org audit logs and org oauth apps
* PRettier
* Fix incorrect URL for oauth app flow
* Fix incorrect URL for oauth app flow
* Fix
* Add perms checking for warehouse related UI
* Update roles helper icon
* remove unused lib
* Update package lock... again
* Update package lock... again
* Smalllll update
* Update some checks
* Add gate for project level permissions
* Last fix
* update codegen
* Update warehouse endpoint routes
* Fix
---------
Co-authored-by: phamhieu <phamhieu1998@gmail.com >
Co-authored-by: Alaister Young <a@alaisteryoung.com >
2024-07-01 17:59:54 +08:00
Ivan Vasilov
491f9803e0
chore: Bump typescript to version 5.5 ( #27590 )
...
Bump typescript to 5.5 in all apps and packages.
2024-06-28 12:26:57 +02:00
Jonathan Summers-Muir and Joshen 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
Charis
ac192a5024
refactor(docs): migrate home page to app router ( #27221 )
2024-06-24 18:47:53 -04:00
Jonathan Summers-Muir
faabe40472
[Design system] fix: text sizes in context-menu ( #27342 )
...
Update context-menu.tsx
2024-06-19 09:56:40 +08: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
Jonathan Summers-Muir
7e7eec81db
[Design System] Iterate Button styles ( #27055 )
...
* init
* Update button.mdx
* Update button.mdx
* update primary button
2024-06-12 18:38:35 +08:00
Jonathan Summers-Muir
c077d53fc4
[Design System] Fix: Select Scroll behaviour ( #27198 )
...
* init
* Update select.tsx
2024-06-12 18:14:50 +08:00
Ivan Vasilov
118b4123a8
Add storybook dependency back so that prod studio works. ( #27174 )
2024-06-11 12:37:24 +02:00
Jonathan Summers-Muir
9b8cc37a34
Start removing storybook ( #26599 )
...
* init deletion
* Update package-lock.json
* remove shadcn stories
* update TS errors
* Update package-lock.json
2024-06-11 11:07:21 +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
Jonathan Summers-Muir
4b1780b764
[Dashboard] fix: dialog branching, add block ( #27064 )
...
* fix: dialog branching
* TS fixes
2024-06-06 16:23:36 +02:00
Jonathan Summers-Muir
36dcd0b63e
[Design System] fix: <Sheet /> z-index value ( #27058 )
...
* Update sheet.tsx
* Update defaultTheme.ts
2024-06-06 18:53:30 +08:00
Jonathan Summers-Muir
972773ca87
[Dashboard] Chore: update Modal component to use new components ( #26844 )
...
* init
* add more examples
* update modal
* update modals
* more modals updated
* update modal
* Update NewAccessTokenButton.tsx
* Update NewAccessTokenButton.tsx
* fix: issue with scale on dialog opening. chore: added bg-dialog color
* fix modals
* add deprecation notices
* revert bg
* revert
* Update Modal.tsx
* Update PITRSelection.tsx
* update dialog docs
* fix: issue with payment method modal
* update terminal instructions
* update padding defaults
2024-06-05 10:06:55 +00:00
Jonathan Summers-Muir
5e6a3438eb
[Design System] chore: add scroll example of Navigation Menu ( #26974 )
...
* init
* Update navigation-menu.mdx
* Update navigation-menu.tsx
2024-06-03 16:40:32 +02:00
Jordi Enric
aa84f7f60b
fix warehouse rows & update UI for event detail ( #26891 )
...
* ui fixes, rendering data in warehouse table fixed
* reduce padding in header
* rm test of copy button since it was moved elsewhere
2024-05-31 20:59:28 +02:00
Terry Sutton
ce9c0a7711
Fix/stacking error ( #26885 )
...
Bump react-resizable-panels
2024-05-30 11:06:08 -02:30
Francesco Sansalvadore
7f42a81dce
Chore/custom html elements cleanup ( #26836 )
...
* clean up CustomHTMLElements duplication
* save file
* docs --passWithNoTests
* update CustomHTMLElements.utils.test file to tsx
2024-05-30 10:45:57 +02:00
Terry Sutton
0c7d5dc306
Fix value set for storage upload unit ( #26803 )
...
* Fix value set for storage upload unit
* Convert to RHF
* Update select
* Load config properly
* Cleanup
2024-05-28 12:13:36 -02:30
Jonathan Summers-Muir
d69b44bd4a
[packages/ui] chore: deprecate old components ( #26817 )
...
init deprecation
2024-05-28 19:14:17 +08:00
Jonathan Summers-Muir
73ff6c1085
[Design System] Chore: add tree-view documentation ( #26821 )
...
* chore: init docs
* remove old stories
* update source panels
2024-05-28 17:22:37 +08:00
Jordi Enric
33abcaa873
fix url query breaking active tab ( #25953 )
...
* fix
* rm unused arg
* forwardRef NavMenuItem
2024-05-28 11:03:22 +02:00
Jonathan Summers-Muir
2109d22c46
[Dashboard] init layouts in project settings ( #26790 )
...
* init layouts in project settings
* Update general.tsx
* update gap
* Update Scaffold.tsx
* spacing issues
* add bottom padding
* Update api.tsx
2024-05-28 05:28:23 +00:00
Jonathan Summers-Muir
ec760d4e97
add Admonition to Design System ( #26710 )
...
* add Admonition to Design System
* added notices about FormLabel
* Update label.mdx
2024-05-24 09:21:41 +00:00
Jonathan Summers-Muir
6dff3a7369
[Design System] feat: Multi Select ( #26719 )
...
* chore: deprecate old files. add new one with first story
* init multi select
* docs
* Update multi-select.mdx
* deprecation notices
* Delete MultiSelect.stories.tsx
2024-05-24 15:54:51 +08:00
Jonathan Summers-Muir
0acd2afa80
add surface-75 for dark ( #26734 )
2024-05-24 14:33:25 +08:00
8643c2549e
Feat [atom component] stacked radio group / card radio group ( #26612 )
...
* init site
* add nav menu
* add props table component
* init all the examples
• also includes moving a bunch of ./ui files to ./ui-patterns
* update package
• might need to remove some of these
* Update rehype-component.ts
* move nav
* more changes
* add new source information to contentlayer
* fix copy buttons
* add text-confirm. start new concept of "fragments"
* move base path. add homepage. add theme selection
* added colors
* add form-item-layout
* temporary fix code blocks in light mode. they currently don't switch theme to theme
* start adding code themes
* Update dark.json
* update code block themes
* fix animations
* add cdmk search
* export registry of icons in ./icons package
* add comments
* add icon copy stuff
* Update icons.tsx
* more docs
* more docs. cleaned up colors and icons docs
* Update theming.mdx
* add more docs
* update
* add package
* Update tailwind.config.js
* update content
* Update drawer-demo.tsx
* Update aspect-ratio-demo.tsx
* add new blocks
* Update source-panel.tsx
* Update source-panel.tsx
* Update source-panel.tsx
* add new source block
* Update source-panel.tsx
* Update _app.tsx
* Update page.tsx
* Delete layout-old.tsx
* remove old themes
* remove old ui registry
* comment out nav items
* Update package-lock.json
* Update AssistantChatForm.tsx
* move back
* move again
* update
* Update index.tsx
* Update package-lock.json
* Update package-lock.json
* Update package-lock.json
* update package
* udpate prettier
* fix tag issues
* Update package-lock.json
* update to contentlayer2
* update package-lock.json
* fix type errors
* ignore spelling
* feat: add RadioGroupStacked
* feat: add `slot` behaviour to `<FormItem/>`
* sneaky add in better line highlighting
* add RadioGroupCard
* update colors
* Update package-lock.json
* Update avoid-typos.yml
* Update navigation-menu-demo.tsx
* Add a redirect from / to the base path.
---------
Co-authored-by: Alaister Young <a@alaisteryoung.com >
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com >
2024-05-23 17:44:45 +02:00
b8243e06d8
Feat/design system site ( #26586 )
...
* init site
* add nav menu
* add props table component
* init all the examples
• also includes moving a bunch of ./ui files to ./ui-patterns
* update package
• might need to remove some of these
* Update rehype-component.ts
* move nav
* more changes
* add new source information to contentlayer
* fix copy buttons
* add text-confirm. start new concept of "fragments"
* move base path. add homepage. add theme selection
* added colors
* add form-item-layout
* temporary fix code blocks in light mode. they currently don't switch theme to theme
* start adding code themes
* Update dark.json
* update code block themes
* fix animations
* add cdmk search
* export registry of icons in ./icons package
* add comments
* add icon copy stuff
* Update icons.tsx
* more docs
* more docs. cleaned up colors and icons docs
* Update theming.mdx
* add more docs
* update
* add package
* Update tailwind.config.js
* update content
* Update drawer-demo.tsx
* Update aspect-ratio-demo.tsx
* add new blocks
* Update source-panel.tsx
* Update source-panel.tsx
* Update source-panel.tsx
* add new source block
* Update source-panel.tsx
* Update _app.tsx
* Update page.tsx
* Delete layout-old.tsx
* remove old themes
* remove old ui registry
* comment out nav items
* Update package-lock.json
* Update AssistantChatForm.tsx
* move back
* move again
* update
* Update index.tsx
* Update package-lock.json
* Update package-lock.json
* Update package-lock.json
* update package
* udpate prettier
* fix tag issues
* Update package-lock.json
* update to contentlayer2
* update package-lock.json
* fix type errors
* ignore spelling
* Update avoid-typos.yml
* Update avoid-typos.yml
* Update package-lock.json
* Use ui type definitions.
* move tsconfig base stuff. fix content layer issue
* Update package-lock.json
* Update package-lock.json
---------
Co-authored-by: Alaister Young <a@alaisteryoung.com >
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com >
2024-05-23 17:39:56 +08:00
Greg Richardson and Charis
3f1df65bba
SQL to REST translator ( #25978 )
...
* feat: sql-to-rest poc
* feat: sql-to-supabase-js poc
* chore: upgrade to libpg-query@15
* feat: sql-to-rest docs tool
* docs(sql-to-rest): add introduction
* docs: wording improvements
* fix: theme
* chore: tailwind placeholder
* feat(sql-to-rest): limit, offset, and range
* feat(sql-to-rest): sort by
* fix(sql-to-rest): ui theme
* feat(sql-to-rest): casts
* feat(sql-to-rest): dynamic faqs in ui
* feat(sql-to-rest): improve ui responsiveness
* feat(sql-to-rest): more advanced faqs in ui
* feat(sql-to-rest): http and curl syntax highlighting
* feat(sql-to-rest): baseUrl in http/curl rendering
* docs(sql-to-rest): clarification on curl flags
* feat(sql-to-rest): more faqs
* refactor(sql-to-rest): split faqs into own file
* refactor(sql-to-rest): move formatters to sql-to-rest package
* docs(sql-to-rest): move page to new tools section
* feat(sql-to-rest): joins and resource embeddings
* chore(sql-to-rest): rename 'convert' to 'translate'
* feat(sql-to-rest): add faqs
* feat(sql-to-rest): ui improvements
* feat(sql-to-rest): faq title adjustment
* feat(sql-to-rest): link to client lib docs
* feat(sql-to-rest): assumptions
* feat(sql-to-rest): friendly 'not supported yet' errors
* feat(sql-to-rest): json columns
* feat(sql-to-rest): remove curl -G flag if unused
* feat(sql-to-rest): better error handling
* chore: revert accidental rls ai work
* fix: build errors
* fix(sql-to-rest): theme
* feat(sql-to-rest): change base url
* feat(sql-to-rest): basic aggregate poc
* feat(sql-to-rest): group by
* feat(sql-to-rest): more group by checks
* feat(sql-to-rest): count(*) special case
* fix(sql-to-rest): tests
* feat(sql-to-rest): faq on 'and' operator
* fix(sql-to-rest): error messages
* fix(sql-to-rest): multiple filters on same column
* refactor(sql-to-rest): error hints
* feat(sql-to-rest): match and imatch
* feat(sql-to-rest): in operator
* feat(sql-to-rest): parsing error hints
* feat(sql-to-rest): default language to curl
* feat(sql-to-rest): format on cmd+s
* feat(sql-to-rest): format initial value
* fix(sql-to-rest): turn off tab query group
* feat(sql-to-rest): improve wording in error messages
* feat(sql-to-rest): animated code blocks
* feat(sql-to-rest): more error hints
* fix(sql-to-rest): strip primary relation prefix from columns
* feat(sql-to-rest): json column in order by clause
* feat(sql-to-rest): validate all referenced relations exist in from clause
* refactor(sql-to-rest): split core sql-to-rest lib into separate repo
* feat(sql-to-rest): upgrade to v0.1.1
* feat(sql-to-rest): upgrade to v0.1.2
* feat(sql-to-rest): upgrade to v0.1.4
* chore: upgrade libpg-query
* feat: update 'create a pr' link
* fix: app builds
* fix: prettier
* fix: typecheck
* fix: studio tests
* chore: remove console.log
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com >
* docs(sql-to-rest): remove broken link to client libraries
---------
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com >
2024-05-22 12:37:01 -06:00
Joshen Lim
b638f53ce0
Chore/remove optimistic rendering for spinning up replicas ( #26331 )
...
* Remove optimistic rendering when spinning up read replicas
* Fix missing edge when load balancer renders
* Tiny style fix
2024-05-16 13:04:18 +08:00
Joshen Lim
88bbe7042a
Chore/update filter sort table editor to new popover ( #25832 )
...
* Update table editor FilterPopover to new popover component
* Update table editor SortPopover to new popover component
* Don't close popovers
* Address feedback
2024-05-13 12:36:51 +08:00
Joshen Lim and TzeYiing
d025e0f739
chore/fix studio jest tests ( #25872 )
...
* Fix tests in tests/unit, tests/components and files under tests, looking into tests/pages
* Fix tests under pages/projects root
* Fix
* Comment out broken tests that im stuck with
* Fix api-report.test
* Fix storage-report-test
* chore: fix some tests
* chore: remove logging
* Fix LogsPreviewer.test.js
* Fix most of logs-query-test
* Skip broken tests instead of false positiving them
---------
Co-authored-by: TzeYiing <ty@tzeyiing.com >
2024-05-11 12:05:25 +02:00
Alaister Young
155570bfa7
fix: allow sql language functions ( #25986 )
2024-05-10 09:48:49 -02:30
Jonathan Summers-Muir and Jordi Enric
e19b3f53bf
Chore/tidy s3 creds ( #25871 )
...
* chore: use standard primitives for dialog
* chore: remove gap-4 from dialogs
* chore: missing DialogSection
* update stories
* Update S3Connection.tsx
* Update S3Connection.tsx
* Update S3Connection.tsx
* Update S3Connection.tsx
* add which credential youre deleting in the dialog
---------
Co-authored-by: Jordi Enric <jordi.err@gmail.com >
2024-05-08 17:08:04 +02:00
ec86bbc4fe
feat: new auth ia ( #22812 )
...
Co-authored-by: Kang Ming <kang.ming1996@gmail.com >
Co-authored-by: Joel Lee <lee.yi.jie.joel@gmail.com >
2024-05-07 20:15:06 +00:00
Charis
94c906b377
refactor: clean up useClient ( #23280 )
...
Move useClients to the actual file instead of index files, so that (a) we don't
ship unnecessary client-side code and (b) we don't get the "can't dot into
client component from server" error when trying to use MDX in RSCs.
2024-05-06 15:57:44 -04:00
Terry Sutton and Jonathan Summers-Muir
d7d90f81e8
Chore/connect font colours ( #23450 )
...
* Fix connect tab colours
* update tabs
* Update styles
---------
Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com >
2024-05-03 16:38:27 -02:30
Charis
2f4f0adbd1
rework tabs query state to work better across both routers ( #23253 )
...
Refactor tabs so that:
- Behavior add-ons, such as query params, are HOCs in ui-patterns, to keep the basic Tabs minimal
- No dependency on next/router (this is to smooth out a separate App Router migration PR)
- No dependency on useSearchParams either (this is to preserve static generation of as much HTML content as
possible, for SEO purposes -- see comment about client-rendering bailout when using useSearchParams)
- Syncing behavior better localized in a hook
Minor enhancement to save tab preferences to local storage so they are remembered between sessions
2024-05-02 14:50:07 -04:00
Joshen Lim
0d292c668d
Contextual error toasts for deleting referenced rows ( #23135 )
...
* Contextual error toasts for deleting referenced rows
* Update message
2024-05-02 13:58:52 +08:00
Jonathan Summers-Muir and Joshen Lim
8f44716e72
feat: TreeView primitive ( #21960 )
...
* init TreeView
* init
* update stories and type
* editing capability
* Update TreeView.tsx
* Add multiselect example
* clean
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com >
2024-04-26 16:33:29 +07:00
Francesco Sansalvadore
9c452145ae
Eagle end ( #22992 )
2024-04-20 20:45:06 +02:00