From: Peter Amstutz Date: Fri, 9 Dec 2022 21:55:16 +0000 (-0500) Subject: 19783: Increase search debounce a bit X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/0950a5eb6f6188df4ec099f02b662dbcf4b559a4 19783: Increase search debounce a bit Trying to find a good tradeoff between responsiveness and firing off redundant searches while the user is actually still typing. Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- diff --git a/src/store/search-bar/search-bar-tree-actions.ts b/src/store/search-bar/search-bar-tree-actions.ts index 7d05a320fe..b0bad2f3c2 100644 --- a/src/store/search-bar/search-bar-tree-actions.ts +++ b/src/store/search-bar/search-bar-tree-actions.ts @@ -3,7 +3,7 @@ // SPDX-License-Identifier: AGPL-3.0 import { getTreePicker, TreePicker } from "store/tree-picker/tree-picker"; -import { getNode, getNodeAncestorsIds, initTreeNode, TreeNodeStatus } from "models/tree"; +import { getNode, getNodeAncestorsIds, initTreeNode } from "models/tree"; import { Dispatch } from "redux"; import { RootState } from "store/store"; import { getUserUuid } from "common/getuser"; diff --git a/src/views-components/form-fields/search-bar-form-fields.tsx b/src/views-components/form-fields/search-bar-form-fields.tsx index 6bd6b8c292..be28ba2a29 100644 --- a/src/views-components/form-fields/search-bar-form-fields.tsx +++ b/src/views-components/form-fields/search-bar-form-fields.tsx @@ -3,16 +3,12 @@ // SPDX-License-Identifier: AGPL-3.0 import React from "react"; -import { Field, WrappedFieldProps, FieldArray } from 'redux-form'; +import { Field, FieldArray } from 'redux-form'; import { TextField, DateTextField } from "components/text-field/text-field"; import { CheckboxField } from 'components/checkbox-field/checkbox-field'; import { NativeSelectField } from 'components/select-field/select-field'; import { ResourceKind } from 'models/resource'; -import { HomeTreePicker } from 'views-components/projects-tree-picker/home-tree-picker'; -import { SEARCH_BAR_ADVANCED_FORM_PICKER_ID } from 'store/search-bar/search-bar-actions'; import { SearchBarAdvancedPropertiesView } from 'views-components/search-bar/search-bar-advanced-properties-view'; -import { TreeItem } from "components/tree/tree"; -import { ProjectsTreePickerItem } from "store/tree-picker/tree-picker-middleware"; import { PropertyKeyField, } from 'views-components/resource-properties-form/property-key-field'; import { PropertyValueField } from 'views-components/resource-properties-form/property-value-field'; import { connect } from "react-redux"; diff --git a/src/views-components/projects-tree-picker/projects-tree-picker.tsx b/src/views-components/projects-tree-picker/projects-tree-picker.tsx index 2711c77725..6ef295be56 100644 --- a/src/views-components/projects-tree-picker/projects-tree-picker.tsx +++ b/src/views-components/projects-tree-picker/projects-tree-picker.tsx @@ -142,9 +142,9 @@ export const ProjectsTreePicker = connect(mapStateToProps, mapDispatchToProps)( }; return
- + {this.props.includeCollections && - } + }