* fix: error with quotes in search results
Search results with double quotes in the title need to be escaped or
cmdk's
`document.querySelector` will throw an error for invalid selector (since
the selector is wrapped in double quotes).
Also add and error boundary so errors in command menu don't crash the
entire site.
* format
Force mount docs search across all command menus. There's probably a
good question here about whether www/dashboard want docs search to be
stuck at the top all the time, but that's out of scope. For now, just
make sure users can search long strings of text without the search
option disappearing on them.
Also refactor force mounting to use cmdk's native option, which is now
released.
* Dashboard-bug-fix: in Enumerated type > Create type > SidePanel Opens add value field count fixed
* Small refactor
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Begin the process of moving our MDX files into their own content directory.
Fixed a few minor bugs re: ToC and tabs not rerendering consistently on page navigation. (The ToC thing wasn't a problem before the refactor, the tabs thing is a problem on prod.)
Moved MDX files can't import their own components, so everything they require needs to be back in the component prop for mdx-remote's serializer. Cleaned this up a bit and lazy-loaded heavy/rare stuff. Also, the component prop doesn't take arbitrary objects (only actual components), so imported data has to be wrapped in a component.
* Reset state and set enable form actions for add role sidebar.
* Update apps/studio/components/interfaces/Database/Roles/CreateRolePanel.tsx
* Update apps/studio/components/interfaces/Database/Roles/CreateRolePanel.tsx
* Revert
---------
Co-authored-by: Santosh Pisini <>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
* Updated Flutter docs to have better contains and contained by example
* Add data source to Flutter docs
* Tidy up the using filters section
* fix: show the data directly in sample response
* Fix typo row-level-security.mdx
The sentence was missing the noun.
* Run prettier on apps/*
* Revert "Run prettier on apps/*"
This reverts commit c24de2591c.
* revert prettier config changes
---------
Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
* very wip
* add expandable rows
* fix table layout, collapsible row, spacing issues
* use new query with filters everywhere
* rm unused queries
* rm unused fn
* improve loading state
* fix text overflowing in role
* rm padding so that table doesn't always need scroll
* fix icon in search input
* add latency to table row heading to clarify what col youre sorting with
* rm unused imports
* run prettier
* align sql with row content
* add syntax highlighting and sort icons
* rm copy btn
* move tailwind dep to correct package, rm unused syntax highlighting, rm unused component
* Add create, update and delete mutations for tables.
* Use the new mutations instead of the table store.
* Fully remove the TableStore from the MetaStore.
* Move the methods from MetaStore into pure functions in SidePanelEditor utils.
* Remove TableStore.
* Refactor the onError callbacks to be on the mutations.
* Convert some of the UIStore invocations.
* Fixed not closing the modal in case of an error. Migrate some uses of uiStore.
* Use onSettled on all RQ hooks.
* Remove the ui param to the create/updateTable functions.
* Add a missing connection string.
* Add progress bar for loading UI for importing rows
* Update apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.utils.tsx
Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
* chore: increase react-query stale time
* keep staleTime: 0 for table rows
* use staleTime: 0 for all user sql queries
* use staleTime: 0 for all pg-meta queries
* Some fixes
* fix updating tables
* fix bug while editing column names
* Fix deleting column in database/tables column list not revalidating UI
* Fix updating column in database/tables column list throwing ane rror
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>