Description
Lift Content Drive folder-tree load helpers from the portlet into a shared location (@dotcms/data-access or a shared util usable by both Content Drive and AssetPicker), and harden DotContentDriveService so dialog hosts can provide/use it easily.
Related epic: #36702
Series: AssetPicker 2/7
Depends on / align with: #36733 (shared tree node models)
Helpers to lift (from Content Drive portlet utils/):
getFolderHierarchyByPath
getFolderNodesByPath
- tree node builders (
buildTreeFolderNodes / createTreeNode equivalents)
Service: DotContentDriveService (POST /api/v1/drive/search) — today not providedIn: 'root'; make it easy to provide from AssetPicker dialog providers or document the required providers clearly (prefer providedIn: 'root' if safe).
Acceptance Criteria
Priority
Medium
Additional Context
Independent issue in the AssetPicker N/7 series for epic #36702. Not a tracked sub-issue.
Description
Lift Content Drive folder-tree load helpers from the portlet into a shared location (
@dotcms/data-accessor a shared util usable by both Content Drive and AssetPicker), and hardenDotContentDriveServiceso dialog hosts can provide/use it easily.Related epic: #36702
Series: AssetPicker 2/7
Depends on / align with: #36733 (shared tree node models)
Helpers to lift (from Content Drive portlet
utils/):getFolderHierarchyByPathgetFolderNodesByPathbuildTreeFolderNodes/createTreeNodeequivalents)Service:
DotContentDriveService(POST /api/v1/drive/search) — today notprovidedIn: 'root'; make it easy to provide from AssetPicker dialog providers or document the required providers clearly (preferprovidedIn: 'root'if safe).Acceptance Criteria
DotContentDriveServicecan be used from a non-route host (dialog/picker) without ad-hoc route provider hacks — eitherprovidedIn: 'root'or a documented provider pattern used by Content Drive and AssetPicker/api/v1/drive/searchcontractPriority
Medium
Additional Context
Independent issue in the AssetPicker
N/7series for epic #36702. Not a tracked sub-issue.