* fix: remove unnecessary condition in MemberRow
* Don't show tooltip for role is 0 projects
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
* Confirm before setting cell to null
* Small fixes
* New prop for ignoring outside clicks
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
* Move auth lints to query
* Add exmaple components
* Cleanup
* Add sidebar badge
* type issue
* Remove home warning
* Add loader state
* Small style changes
* Small lint
* Only show navbar dot if we have lints
* Revalidate the lint query when sql editor snippets run
* Fix imports
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
* Fix highlighted state in nav bar for V1 auto docs when selecting a store procedure
* Fix RPC parameters in V2 auto docs
* Replace database functions create function button cta with ButtonTooltip
* Add AAL2 toggle for user impersonation
* Move AAL toggle into user selector & tweak styles
- Since the AAL level can only be toggled before a user is selected, move the toggle into the user selection area
- Also display the AAL status in the UserImpersonatingRow and the RoleImpersonationPopover
- Improve display styles
* Run prettier
* - fixes light mode text issue
- adds "Advanced options" collapsible
- adds info tooltip linking to MFA docs
---------
Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
Co-authored-by: Alaister Young <a@alaisteryoung.com>
* add main log drain form and navigation
* fix submit and select
* add mutation and update form
* fix submit issue
* fix issues with validation
* fix typeerrs
* add log drain table
* update create log drain mutation
* add delete log drain mutation
* update get log drains query
* fix new log drain click in cards
* add delete mutation
* add delete log drain
* refactor gzip switch
* refactor radiogroup to use formfield
* add headers form
* fix validation, custom headers errors
* refactor to support update in form
* format
* add log drains to nav
* update api spec and list logdrains query
* wire backend
* fix datadog region values
* make api input password
* fix url elastic
* fix typerr
* rm unnecessary value setter
* fix state issue log drains update form
* Add default values setting in useEffect to fix form issues
* format
* Update LogDrains table header width to 250px
* add upgrade plan card when free plan
* fix dumb if statement
* fix the freaking headers
* fix upgrade to team state
* fix plan check and loading state
* disable type update
* Add link to documentation in Log Drains settings
* show add destination only after empty state
* fix bug with inputs not resetting
* add gzip tooltip
* rm command
* defaultValue to value
* add defaultValue
* rm consolelog
* rm anys
- Add new metric Disk Size GB-Hrs (only exposed to paid plans on Orb)
- Adjusted some texts as preparation of new billing plans
- Fixed some visual bugs with the usage summary grid
- Project allocations in tooltips are now sorted by usage (descending)
- Project allocations with too little usage (<0.01) now display "<0.01" instead of just "0"
- Usage formatter supports usage that is broken down to hours
- Stop showing percentages when the usage is 0 (previously showed "<1%"
This change is backwards compatible and can be merged. Note that there will be full overhaul in the feature of the entire usage page, this is just the least invasive change to make the transition work.
* Add queries and mutations for third party auth.
* Show the ThirdPartyAuth form in the auth settings.
* Minor fixes to the mutations.
* Add a comment for TODO.
* Add all components for third party auth.
* Minor fixes.
* Update the firebase icons.
* Update the api-types.
* Fix the barrel file imports.
* Make the sheets more intuitive.
* Add a dialog for adding RLS policies for the firebase integration.
* Hide the 3rd party auth section behind a form.
* Fix a type error.
* Update the wording on the Add RLS policy dialog.
* Replace the sheets with dialogs.
* Add fixes for the comments on github.
* Minor fixes.
* Fix a type error.
* Make the delete integration awaitable.
* feat(docs), refactor(docs,studio): add regions list to docs
Adds list of supported AWS regions to docs.
Pulls the region information into `shared-data` package to provide common source of truth for dashboard and docs.
* style: format
* Email now checks for period in email
* Convert form to zod for email validation
* Reset field values after submit
* Fix modal size to be closer to original
* Cleanup: Remove unused imports
* Adjust padding to match original
* re-add the input icons using hack
* small styling changes
---------
Co-authored-by: Alaister Young <a@alaisteryoung.com>
Advisor warns about missing search_path on the handle_new_user function,
which we supply in docs and SQL starter templates.
We have updated this in some docs but haven't pulled it through to everything
* add paddle wrapper
* add snowflake wrapper
* Small style fixes
* fix editing and deleting wasm wrappers
* use alert for minimum version not met
* update wording
* Minor style fix
* small fix
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
* Init changes for sql fodlers
* Added upsert logic in sql-editor-v2 valtio, hooked up with templates and quickstarts
* Do up logic for creating new snippets by typing in /new or by clicking new query button
* Do up logic for updating and deleting snippets
* Do up logic for favourites and shared snippets
* Do up logic for favourites and shared snippets
* Fix
* Fix saving indicator, add empty states for favorites and shared snippets
* Implement sorting
* Some minor QOL improvements
* Minor fix on empty state for private snippets
* Add delete folder mutation
* Implement create and update folder
* Fix reinstate with AI renaming for new snippets under folder
* Support controlled multi select behaviour in private snippets
* Undo changes to tree-view-multi-select
* Support bulk deletes
* Support moving queries + rendering queries in folders
* Support deleting folders and creating a new folder when moving a query
* Fix bug where renaming query removes content
* Add initial loading state in sql editor nav + handle fallback if cannot retrieve content by id
* Fix some spelling
* Fix TS issue in sql folders mutation keys
* Fix toggling favorite
* Lint
* Revert fallback behaviour in ]id] for now
* Fix favorites and shared snippets not showing
* Fix moving currently opened snippet leads to loading
* Support bulk moving
* Improve multi select logic a little
* Nit lint
* Reinstate AI retitling for untitled snippets when running query
* Remove hardcode in useAFlag
* Support creating new snippet in a folder directly
* Fix sharing snippets that are within a folder
* Fix sharing snippets within a folder
* Fix favorite
* Add loading state when fetching folder contents
* Fix favoriting snippets in folders