diff --git a/interface/app/$libraryId/Explorer/OptionsPanel.tsx b/interface/app/$libraryId/Explorer/OptionsPanel.tsx index ab9dbe005..8f440d499 100644 --- a/interface/app/$libraryId/Explorer/OptionsPanel.tsx +++ b/interface/app/$libraryId/Explorer/OptionsPanel.tsx @@ -40,7 +40,6 @@ export default () => { { getExplorerStore().gridItemSize = value[0] || 100; - console.log({ value: value, gridItemSize: explorerStore.gridItemSize }); }} defaultValue={[explorerStore.gridItemSize]} max={200} @@ -87,7 +86,6 @@ export default () => { label="Show Object size" name="showBytesInGridView" onCheckedChange={(value) => { - console.log(value); if (typeof value === 'boolean') { getExplorerStore().showBytesInGridView = value; } diff --git a/interface/app/$libraryId/settings/library/locations/AddLocationDialog.tsx b/interface/app/$libraryId/settings/library/locations/AddLocationDialog.tsx index 57011f5c7..a400cce5a 100644 --- a/interface/app/$libraryId/settings/library/locations/AddLocationDialog.tsx +++ b/interface/app/$libraryId/settings/library/locations/AddLocationDialog.tsx @@ -1,6 +1,5 @@ import { ErrorMessage } from '@hookform/error-message'; import { RSPCError } from '@rspc/client'; -import { useQueryClient } from '@tanstack/react-query'; import { useEffect, useMemo, useState } from 'react'; import { Controller } from 'react-hook-form'; import { useLibraryMutation, useLibraryQuery } from '@sd/client'; @@ -44,7 +43,7 @@ export const openDirectoryPickerDialog = async (platform: Platform): Promise { const dialog = useDialog(dialogProps); const platform = usePlatform(); - const queryClient = useQueryClient(); + const listLocations = useLibraryQuery(['locations.list']); const createLocation = useLibraryMutation('locations.create'); const relinkLocation = useLibraryMutation('locations.relink'); const listIndexerRules = useLibraryQuery(['locations.indexer_rules.list']); @@ -146,10 +145,9 @@ export const AddLocationDialog = ({ path, ...dialogProps }: Props) => { : '' } onSubmit={(event) => - onLocationSubmit(event).then( - () => queryClient.invalidateQueries(['library.list']), - onLocationSubmitError - ) + onLocationSubmit(event).then(async () => { + await listLocations.refetch(); + }, onLocationSubmitError) } ctaLabel="Add" > diff --git a/interface/components/AlertDialog.tsx b/interface/components/AlertDialog.tsx index 76aecc80c..6ad919c5b 100644 --- a/interface/components/AlertDialog.tsx +++ b/interface/components/AlertDialog.tsx @@ -16,6 +16,7 @@ const AlertDialog = (props: Props) => { // maybe a copy-to-clipboard button would be beneficial too return ( {})} dialog={dialog} diff --git a/package.json b/package.json index cca0201fa..924019cf7 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "prettier": "^2.8.7", "prettier-plugin-tailwindcss": "^0.2.6", "rimraf": "^4.3", - "turbo": "^1.5.5", + "turbo": "^1.9.3", "turbo-ignore": "^0.3.0", "typescript": "^4.9.4" }, diff --git a/packages/ui/src/Select.tsx b/packages/ui/src/Select.tsx index 58b8b7fc1..7c7da1d04 100644 --- a/packages/ui/src/Select.tsx +++ b/packages/ui/src/Select.tsx @@ -7,7 +7,7 @@ import { PropsWithChildren } from 'react'; export const selectStyles = cva( [ - 'rounded-md border text-sm flex pl-3 pr-[10px] items-center justify-between', + 'flex items-center justify-between rounded-md border pl-3 pr-[10px] text-sm', 'shadow-sm outline-none transition-all focus:ring-2', 'radix-placeholder:text-ink-faint' ], diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ed8de2543..e11b29995 100644 Binary files a/pnpm-lock.yaml and b/pnpm-lock.yaml differ