20031: Preselect current collection in move/copy to existing collection tree picker
authorStephen Smith <stephen@curii.com>
Thu, 27 Apr 2023 14:36:19 +0000 (10:36 -0400)
committerStephen Smith <stephen@curii.com>
Thu, 27 Apr 2023 14:36:19 +0000 (10:36 -0400)
commit0de2dbbdaa1c0906e105cfc685affdb3d03dc9e7
treeba0961fd93c5f0046419a6d3b741540bec349263
parent39bdc716190a21ee7c70d9450fc121a0513ff8ba
20031: Preselect current collection in move/copy to existing collection tree picker

* Add collection support to ancestor service
* Initialize copy/move to existing collection form with current collection
* Use initial form value and ancestor service to preload tree picker with initial selection
* Add refresh action to tree picker search actions to populate initial expanded tree picker items after preselection
* Allow pristine copy/move to existing form to be submitted with initial value (relies on form validation to disable submit if no initial value)

Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>
src/services/ancestors-service/ancestors-service.ts
src/services/services.ts
src/store/collections/collection-partial-copy-actions.ts
src/store/collections/collection-partial-move-actions.ts
src/store/tree-picker/tree-picker-actions.ts
src/store/tree-picker/tree-picker-middleware.ts
src/views-components/dialog-copy/dialog-collection-partial-copy-to-existing-collection.tsx
src/views-components/dialog-move/dialog-collection-partial-move-to-existing-collection.tsx
src/views-components/projects-tree-picker/projects-tree-picker.tsx
src/views-components/projects-tree-picker/tree-picker-field.tsx