@truedat/dd 8.7.0 → 8.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (388) hide show
  1. package/package.json +3 -3
  2. package/src/components/BucketView.js +2 -2
  3. package/src/components/CatalogCustomViewCards.js +1 -1
  4. package/src/components/DictionaryRoutes.js +3 -3
  5. package/src/components/FilteredNav.js +3 -3
  6. package/src/components/Grant.js +4 -4
  7. package/src/components/GrantApprovalRule.js +1 -1
  8. package/src/components/GrantApprovalRuleConditions.js +1 -1
  9. package/src/components/GrantApprovalRuleDeleteButton.js +1 -1
  10. package/src/components/GrantApprovalRuleEdit.js +1 -1
  11. package/src/components/GrantApprovalRuleForm.js +6 -6
  12. package/src/components/GrantApprovalRules.js +1 -1
  13. package/src/components/GrantFilters.js +1 -1
  14. package/src/components/GrantFiltersLoader.js +1 -1
  15. package/src/components/GrantRemovalDirectButton.js +1 -1
  16. package/src/components/GrantRemovalWorkflow.js +2 -2
  17. package/src/components/GrantRemovalWorkflowDropdown.js +1 -1
  18. package/src/components/GrantRequest.js +3 -3
  19. package/src/components/GrantRequestApprovalForm.js +2 -2
  20. package/src/components/GrantRequestApprovalResults.js +1 -1
  21. package/src/components/GrantRequestBulkActions.js +2 -2
  22. package/src/components/GrantRequestBulkRoleSelector.js +1 -1
  23. package/src/components/GrantRequestCartResult.js +13 -3
  24. package/src/components/GrantRequestSummary.js +1 -1
  25. package/src/components/GrantRequests.js +2 -2
  26. package/src/components/GrantRequestsSearchResults.js +7 -7
  27. package/src/components/GrantRoutes.js +3 -9
  28. package/src/components/Grants.js +14 -4
  29. package/src/components/GrantsDownloadButton.js +1 -1
  30. package/src/components/GrantsLabelResults.js +2 -5
  31. package/src/components/GrantsLoader.js +2 -2
  32. package/src/components/GrantsTable.js +3 -8
  33. package/src/components/GraphLoader.js +1 -1
  34. package/src/components/LineageContextMenu.js +1 -1
  35. package/src/components/LineageDownloadButton.js +2 -2
  36. package/src/components/LineageEventsTable.js +1 -1
  37. package/src/components/LineageGraph.js +7 -6
  38. package/src/components/LineageGroup.js +2 -7
  39. package/src/components/LinkLabelsSelector.js +1 -1
  40. package/src/components/MyGrantRequests.js +1 -1
  41. package/src/components/ProfileGroup.js +2 -2
  42. package/src/components/ReferenceDatasetActions.js +1 -1
  43. package/src/components/ReferenceDatasetCreate.js +1 -1
  44. package/src/components/ReferenceDatasetDetail.js +1 -1
  45. package/src/components/ReferenceDatasetFieldSelector.js +5 -5
  46. package/src/components/ReferenceDatasetForm.js +3 -3
  47. package/src/components/ReferenceDatasetSelectorInputField.js +3 -3
  48. package/src/components/ReferenceDatasetsTable.js +1 -1
  49. package/src/components/StructureChildrenRelations.js +1 -1
  50. package/src/components/StructureConfidentialButton.js +1 -1
  51. package/src/components/StructureCrumbs.js +3 -3
  52. package/src/components/StructureDeleteButton.js +1 -1
  53. package/src/components/StructureFields.js +3 -3
  54. package/src/components/StructureFieldsDropdown.js +10 -10
  55. package/src/components/StructureGrantCart.js +3 -3
  56. package/src/components/StructureGrantCartCheckout.js +9 -4
  57. package/src/components/StructureGrantCartInformation.js +2 -7
  58. package/src/components/StructureGrantListButton.js +5 -5
  59. package/src/components/StructureGrantRequestAddCart.js +1 -1
  60. package/src/components/StructureGrantSummaryButton.js +2 -2
  61. package/src/components/StructureGrants.js +2 -2
  62. package/src/components/StructureItem.js +4 -4
  63. package/src/components/StructureItemRoot.js +1 -1
  64. package/src/components/StructureLoader.js +1 -2
  65. package/src/components/StructureMetadata.js +23 -17
  66. package/src/components/StructureNav.js +1 -1
  67. package/src/components/StructureNavClassified.js +1 -1
  68. package/src/components/StructureNoteActions.js +1 -1
  69. package/src/components/StructureNotes.js +3 -3
  70. package/src/components/StructureNotesEdit.js +4 -4
  71. package/src/components/StructureProfileButton.js +1 -1
  72. package/src/components/StructureProperties.js +1 -1
  73. package/src/components/StructureSelector.js +3 -3
  74. package/src/components/StructureSelectorInputFieldJoin.js +2 -2
  75. package/src/components/StructureStructureForm.js +2 -2
  76. package/src/components/StructureStructureLinks.js +5 -5
  77. package/src/components/StructureTabPane.js +5 -5
  78. package/src/components/StructureTabPaneRoutes.js +92 -80
  79. package/src/components/StructureTabRoutes.js +30 -8
  80. package/src/components/StructureTabs.js +17 -16
  81. package/src/components/StructureTagForm.js +2 -2
  82. package/src/components/StructureTags.js +1 -1
  83. package/src/components/StructureTypeForm.js +3 -3
  84. package/src/components/StructureTypeLoader.js +1 -1
  85. package/src/components/StructureTypesLoader.js +1 -1
  86. package/src/components/StructureTypesRoutes.js +1 -1
  87. package/src/components/StructureVersions.js +17 -16
  88. package/src/components/StructureView.js +1 -1
  89. package/src/components/StructuresBulkUpdate.js +4 -4
  90. package/src/components/StructuresDomainsUploadOption.js +1 -1
  91. package/src/components/StructuresDownloadOption.js +1 -1
  92. package/src/components/StructuresGrantRequestView.js +1 -1
  93. package/src/components/StructuresLoader.js +1 -1
  94. package/src/components/StructuresRoutes.js +2 -2
  95. package/src/components/StructuresTable.js +4 -4
  96. package/src/components/StructuresUpdateOption.js +3 -3
  97. package/src/components/StructuresUploadEventsTable.js +9 -9
  98. package/src/components/StructuresUploadOption.js +14 -14
  99. package/src/components/StructuresView.js +1 -1
  100. package/src/components/SystemCards.js +7 -7
  101. package/src/components/SystemForm.js +2 -2
  102. package/src/components/SystemLoader.js +1 -1
  103. package/src/components/SystemStructures.js +2 -2
  104. package/src/components/SystemView.js +3 -3
  105. package/src/components/Task.js +6 -6
  106. package/src/components/Tasks.js +1 -1
  107. package/src/components/ValueConditionStructure.js +2 -2
  108. package/src/components/__tests__/BucketView.spec.js +2 -2
  109. package/src/components/__tests__/CatalogCustomViewCards.spec.js +1 -1
  110. package/src/components/__tests__/CatalogViewConfigForm.spec.js +2 -2
  111. package/src/components/__tests__/CatalogViewConfigs.spec.js +2 -2
  112. package/src/components/__tests__/DictionaryRoutes.spec.js +7 -3
  113. package/src/components/__tests__/EditDomainForm.spec.js +3 -3
  114. package/src/components/__tests__/FilteredNav.spec.js +4 -4
  115. package/src/components/__tests__/Grant.spec.js +4 -4
  116. package/src/components/__tests__/GrantApprovalRuleConditions.spec.js +6 -6
  117. package/src/components/__tests__/GrantApprovalRuleDeleteButton.spec.js +2 -2
  118. package/src/components/__tests__/GrantApprovalRuleForm.spec.js +9 -7
  119. package/src/components/__tests__/GrantApprovalRules.spec.js +3 -3
  120. package/src/components/__tests__/GrantRemoval.spec.js +4 -4
  121. package/src/components/__tests__/GrantRemovalDirectButton.spec.js +8 -8
  122. package/src/components/__tests__/GrantRemovalWorkflow.spec.js +8 -8
  123. package/src/components/__tests__/GrantRequest.spec.js +1 -1
  124. package/src/components/__tests__/GrantRequestApprovalForm.spec.js +6 -6
  125. package/src/components/__tests__/GrantRequestApprovalPopup.spec.js +1 -1
  126. package/src/components/__tests__/GrantRequestBulkActions.spec.js +8 -8
  127. package/src/components/__tests__/GrantRequestBulkApprovalForm.spec.js +2 -2
  128. package/src/components/__tests__/GrantRequestBulkRoleSelector.spec.js +2 -2
  129. package/src/components/__tests__/GrantRequestCartResult.spec.js +13 -3
  130. package/src/components/__tests__/GrantRequestHeader.spec.js +2 -2
  131. package/src/components/__tests__/GrantRequestRow.spec.js +4 -4
  132. package/src/components/__tests__/GrantRequestSummary.spec.js +1 -1
  133. package/src/components/__tests__/GrantRequests.spec.js +2 -2
  134. package/src/components/__tests__/GrantRequestsLabelResults.spec.js +3 -3
  135. package/src/components/__tests__/GrantRequestsSearchResults.spec.js +2 -2
  136. package/src/components/__tests__/GrantRequestsTable.spec.js +1 -1
  137. package/src/components/__tests__/GrantRoutes.spec.js +16 -16
  138. package/src/components/__tests__/GrantsDownloadButton.spec.js +68 -40
  139. package/src/components/__tests__/GrantsLabelResults.spec.js +2 -2
  140. package/src/components/__tests__/GrantsLoader.spec.js +1 -1
  141. package/src/components/__tests__/GrantsTable.spec.js +4 -4
  142. package/src/components/__tests__/LineageForm.spec.js +5 -5
  143. package/src/components/__tests__/LineageGroup.spec.js +6 -6
  144. package/src/components/__tests__/LineageResource.spec.js +5 -5
  145. package/src/components/__tests__/LineageRoutes.spec.js +6 -6
  146. package/src/components/__tests__/PendingStructureNoteRow.spec.js +4 -4
  147. package/src/components/__tests__/PendingStructureNotes.spec.js +1 -1
  148. package/src/components/__tests__/PendingStructureNotesLabelResults.spec.js +1 -1
  149. package/src/components/__tests__/PendingStructureNotesPagination.spec.js +1 -1
  150. package/src/components/__tests__/PendingStructureNotesTable.spec.js +2 -2
  151. package/src/components/__tests__/ProfileExecution.spec.js +2 -2
  152. package/src/components/__tests__/ProfileGroup.spec.js +2 -2
  153. package/src/components/__tests__/ReferenceDataset.spec.js +7 -5
  154. package/src/components/__tests__/ReferenceDatasetCreate.spec.js +1 -1
  155. package/src/components/__tests__/ReferenceDatasetDetail.spec.js +1 -1
  156. package/src/components/__tests__/ReferenceDatasetFieldSelector.spec.js +9 -9
  157. package/src/components/__tests__/ReferenceDatasetForm.spec.js +9 -7
  158. package/src/components/__tests__/ReferenceDatasetRoutes.spec.js +1 -1
  159. package/src/components/__tests__/StructureFieldRow.spec.js +3 -3
  160. package/src/components/__tests__/StructureFieldsDropdown.spec.js +5 -5
  161. package/src/components/__tests__/StructureGrantCartCheckout.spec.js +2 -2
  162. package/src/components/__tests__/StructureGrantCartInformation.spec.js +1 -1
  163. package/src/components/__tests__/StructureGrantCartUserSelector.spec.js +4 -4
  164. package/src/components/__tests__/StructureGrantDropdown.spec.js +3 -3
  165. package/src/components/__tests__/StructureGrantListButton.spec.js +4 -4
  166. package/src/components/__tests__/StructureGrantSummaryButton.spec.js +5 -5
  167. package/src/components/__tests__/StructureItem.spec.js +3 -3
  168. package/src/components/__tests__/StructureMetadata.spec.js +2 -4
  169. package/src/components/__tests__/StructureNavClassified.spec.js +1 -1
  170. package/src/components/__tests__/StructureNoteActions.spec.js +17 -15
  171. package/src/components/__tests__/StructureNoteLink.spec.js +8 -9
  172. package/src/components/__tests__/StructureNotes.spec.js +3 -3
  173. package/src/components/__tests__/StructureNotesDownloadButton.spec.js +15 -15
  174. package/src/components/__tests__/StructureNotesEdit.spec.js +1 -1
  175. package/src/components/__tests__/StructureRelationRow.spec.js +2 -2
  176. package/src/components/__tests__/StructureRelations.spec.js +2 -2
  177. package/src/components/__tests__/StructureRow.spec.js +2 -2
  178. package/src/components/__tests__/StructureSelectorInputField.spec.js +2 -2
  179. package/src/components/__tests__/StructureSelectorInputFieldJoin.spec.js +1 -1
  180. package/src/components/__tests__/StructureStructureForm.spec.js +1 -1
  181. package/src/components/__tests__/StructureStructureLinks.spec.js +15 -15
  182. package/src/components/__tests__/StructureSummary.spec.js +1 -1
  183. package/src/components/__tests__/StructureTabPane.spec.js +10 -12
  184. package/src/components/__tests__/StructureTabRoutes.spec.js +1 -1
  185. package/src/components/__tests__/StructureTabs.spec.js +24 -8
  186. package/src/components/__tests__/StructureTag.spec.js +11 -11
  187. package/src/components/__tests__/StructureTagForm.spec.js +17 -17
  188. package/src/components/__tests__/StructureTypesRoutes.spec.js +4 -4
  189. package/src/components/__tests__/StructureVersions.spec.js +0 -1
  190. package/src/components/__tests__/StructuresBulkUpdate.spec.js +3 -3
  191. package/src/components/__tests__/StructuresDownloadOption.spec.js +3 -3
  192. package/src/components/__tests__/StructuresEditableDownloadOption.spec.js +2 -2
  193. package/src/components/__tests__/StructuresGrantRequestView.spec.js +2 -2
  194. package/src/components/__tests__/StructuresLabelResults.spec.js +1 -1
  195. package/src/components/__tests__/StructuresLoader.spec.js +1 -1
  196. package/src/components/__tests__/StructuresOptions.spec.js +15 -9
  197. package/src/components/__tests__/StructuresRoutes.spec.js +1 -1
  198. package/src/components/__tests__/StructuresSearchResults.spec.js +2 -2
  199. package/src/components/__tests__/StructuresTable.spec.js +5 -5
  200. package/src/components/__tests__/StructuresUpdateOption.spec.js +2 -2
  201. package/src/components/__tests__/StructuresUploadOption.spec.js +2 -2
  202. package/src/components/__tests__/StructuresView.spec.js +6 -6
  203. package/src/components/__tests__/SystemCards.spec.js +2 -2
  204. package/src/components/__tests__/SystemFilteredNav.spec.js +1 -1
  205. package/src/components/__tests__/SystemStructuresLoader.spec.js +1 -1
  206. package/src/components/__tests__/SystemsRoutes.spec.js +1 -1
  207. package/src/components/__tests__/TagForm.spec.js +7 -5
  208. package/src/components/__tests__/TagsRoutes.spec.js +1 -1
  209. package/src/components/__tests__/Tasks.spec.js +9 -9
  210. package/src/components/__tests__/TasksRoutes.spec.js +1 -1
  211. package/src/components/__tests__/ValueConditionStructure.spec.js +2 -2
  212. package/src/hooks/useBucketPaths.js +1 -1
  213. package/src/hooks/useBucketStructures.js +1 -1
  214. package/src/hooks/useCustomTabs.js +1 -1
  215. package/src/hooks/useGrant.js +7 -3
  216. package/src/hooks/useGrantRequest.js +4 -4
  217. package/src/hooks/useStructures.js +4 -5
  218. package/src/hooks/useTemplatesByIds.js +10 -5
  219. package/src/messages/en.js +1 -2
  220. package/src/messages/es.js +1 -2
  221. package/src/messages/index.js +1 -1
  222. package/src/reducers/__tests__/bulkUpdateStructuresLoading.spec.js +5 -5
  223. package/src/reducers/__tests__/creatingGrantRequestApproval.spec.js +3 -3
  224. package/src/reducers/__tests__/csvGraphDownloading.spec.js +4 -4
  225. package/src/reducers/__tests__/ddMessage.spec.js +3 -3
  226. package/src/reducers/__tests__/grantFilters.spec.js +1 -1
  227. package/src/reducers/__tests__/grantQuery.spec.js +6 -6
  228. package/src/reducers/__tests__/grantRequests.spec.js +2 -2
  229. package/src/reducers/__tests__/grantRequestsCart.spec.js +31 -31
  230. package/src/reducers/__tests__/grantRequestsLoading.spec.js +3 -3
  231. package/src/reducers/__tests__/grantRequestsQuery.spec.js +2 -2
  232. package/src/reducers/__tests__/grants.spec.js +2 -2
  233. package/src/reducers/__tests__/graph.spec.js +1 -1
  234. package/src/reducers/__tests__/graphLoading.spec.js +6 -4
  235. package/src/reducers/__tests__/graphRedirect.spec.js +11 -7
  236. package/src/reducers/__tests__/lineageEventsLoading.spec.js +2 -2
  237. package/src/reducers/__tests__/lineageQuery.spec.js +6 -6
  238. package/src/reducers/__tests__/nodes.spec.js +1 -1
  239. package/src/reducers/__tests__/nodesLoading.spec.js +2 -2
  240. package/src/reducers/__tests__/profileExecution.spec.js +6 -6
  241. package/src/reducers/__tests__/profileExecutionLoading.spec.js +5 -3
  242. package/src/reducers/__tests__/profileGroup.spec.js +12 -12
  243. package/src/reducers/__tests__/profileGroupLoading.spec.js +6 -6
  244. package/src/reducers/__tests__/referenceDatasetSaving.spec.js +8 -4
  245. package/src/reducers/__tests__/selectedGroups.spec.js +2 -2
  246. package/src/reducers/__tests__/selectedNode.spec.js +5 -5
  247. package/src/reducers/__tests__/selectedResources.spec.js +5 -5
  248. package/src/reducers/__tests__/selectedUserSearchFilter.spec.js +3 -3
  249. package/src/reducers/__tests__/structure.spec.js +2 -2
  250. package/src/reducers/__tests__/structureActions.spec.js +4 -4
  251. package/src/reducers/__tests__/structureAncestry.spec.js +6 -6
  252. package/src/reducers/__tests__/structureChildren.spec.js +2 -2
  253. package/src/reducers/__tests__/structureFields.spec.js +5 -5
  254. package/src/reducers/__tests__/structureImpactGraph.spec.js +6 -6
  255. package/src/reducers/__tests__/structureImpactId.spec.js +7 -7
  256. package/src/reducers/__tests__/structureLineageGraph.spec.js +7 -7
  257. package/src/reducers/__tests__/structureLineageId.spec.js +7 -7
  258. package/src/reducers/__tests__/structureLinks.spec.js +6 -6
  259. package/src/reducers/__tests__/structureLoading.spec.js +2 -2
  260. package/src/reducers/__tests__/structureNotes.spec.js +1 -1
  261. package/src/reducers/__tests__/structureParents.spec.js +2 -2
  262. package/src/reducers/__tests__/structureProfile.spec.js +9 -6
  263. package/src/reducers/__tests__/structureQuery.spec.js +4 -4
  264. package/src/reducers/__tests__/structureRedirect.spec.js +9 -9
  265. package/src/reducers/__tests__/structureRelations.spec.js +4 -4
  266. package/src/reducers/__tests__/structureSiblings.spec.js +2 -2
  267. package/src/reducers/__tests__/structureSystem.spec.js +3 -3
  268. package/src/reducers/__tests__/structureTagSaving.spec.js +2 -2
  269. package/src/reducers/__tests__/structureType.spec.js +2 -2
  270. package/src/reducers/__tests__/structureTypeLoading.spec.js +6 -6
  271. package/src/reducers/__tests__/structureVersion.spec.js +4 -4
  272. package/src/reducers/__tests__/structureVersions.spec.js +9 -5
  273. package/src/reducers/__tests__/structures.spec.js +3 -3
  274. package/src/reducers/__tests__/structuresAliasNameMode.spec.js +5 -5
  275. package/src/reducers/__tests__/structuresUploadEvents.spec.js +1 -1
  276. package/src/reducers/__tests__/structuresUploadEventsLoading.spec.js +4 -4
  277. package/src/reducers/__tests__/system.spec.js +2 -2
  278. package/src/reducers/__tests__/systemId.spec.js +3 -3
  279. package/src/reducers/__tests__/systemStructures.spec.js +3 -3
  280. package/src/reducers/__tests__/systemStructuresLoading.spec.js +2 -2
  281. package/src/reducers/ddMessage.js +1 -1
  282. package/src/reducers/grantFilters.js +1 -1
  283. package/src/reducers/grantRequestsCart.js +16 -13
  284. package/src/reducers/grantSelectedFilter.js +1 -1
  285. package/src/reducers/profileGroup.js +1 -1
  286. package/src/reducers/selectedResources.js +1 -1
  287. package/src/reducers/selectedUserSearchFilter.js +1 -1
  288. package/src/reducers/structure.js +1 -1
  289. package/src/reducers/structureImpactGraph.js +1 -1
  290. package/src/reducers/structureLineageGraph.js +1 -1
  291. package/src/reducers/structureRedirect.js +1 -1
  292. package/src/reducers/structuresAliasNameMode.js +1 -1
  293. package/src/reducers/structuresUploadEvents.js +1 -1
  294. package/src/reducers/systemId.js +1 -1
  295. package/src/reducers/userSearchFilters.js +1 -1
  296. package/src/routines.js +31 -32
  297. package/src/sagas/__tests__/createGrantApprovalRule.spec.js +1 -1
  298. package/src/sagas/__tests__/createGrantRequestApproval.spec.js +1 -1
  299. package/src/sagas/__tests__/createGrantRequestStatus.spec.js +1 -1
  300. package/src/sagas/__tests__/createGraph.spec.js +5 -5
  301. package/src/sagas/__tests__/createProfileGroup.spec.js +10 -10
  302. package/src/sagas/__tests__/deleteGrantApprovalRule.spec.js +1 -1
  303. package/src/sagas/__tests__/deleteStructureStructureLink.spec.js +1 -1
  304. package/src/sagas/__tests__/doStructureNoteAction.spec.js +6 -6
  305. package/src/sagas/__tests__/downloadCsvGraph.spec.js +2 -2
  306. package/src/sagas/__tests__/fetchGrantFilters.spec.js +1 -1
  307. package/src/sagas/__tests__/fetchGrantRequestsFilters.spec.js +3 -3
  308. package/src/sagas/__tests__/fetchProfileExecution.spec.js +3 -3
  309. package/src/sagas/__tests__/fetchProfileGroup.spec.js +6 -6
  310. package/src/sagas/__tests__/fetchStructureNotes.spec.js +3 -3
  311. package/src/sagas/__tests__/fetchStructures.spec.js +2 -2
  312. package/src/sagas/__tests__/fetchStructuresUploadEvents.spec.js +1 -1
  313. package/src/sagas/__tests__/fetchSystemStructures.spec.js +4 -4
  314. package/src/sagas/__tests__/requestGrantRemoval.spec.js +2 -2
  315. package/src/sagas/__tests__/updateGrantApprovalRule.spec.js +1 -1
  316. package/src/sagas/__tests__/updateStructure.spec.js +1 -1
  317. package/src/sagas/__tests__/uploadStructuresDomains.spec.js +3 -3
  318. package/src/sagas/bulkUpdateStructures.js +1 -1
  319. package/src/sagas/createGrantApprovalRule.js +1 -1
  320. package/src/sagas/createGrantRequestApproval.js +1 -1
  321. package/src/sagas/createGrantRequestStatus.js +2 -2
  322. package/src/sagas/createGraph.js +3 -3
  323. package/src/sagas/createProfileGroup.js +1 -1
  324. package/src/sagas/createSystem.js +2 -2
  325. package/src/sagas/deleteCatalogViewConfig.js +1 -1
  326. package/src/sagas/deleteGrantApprovalRule.js +1 -1
  327. package/src/sagas/deleteStructureStructureLink.js +1 -1
  328. package/src/sagas/doStructureNoteAction.js +9 -4
  329. package/src/sagas/downloadCsvGraph.js +2 -2
  330. package/src/sagas/downloadReferenceDataset.js +1 -1
  331. package/src/sagas/fetchGrantRequestsFilters.js +1 -1
  332. package/src/sagas/fetchGraph.js +1 -1
  333. package/src/sagas/fetchStructuresUploadEvents.js +1 -1
  334. package/src/sagas/graph/polling.js +4 -4
  335. package/src/sagas/linkStructureToStructure.js +2 -2
  336. package/src/sagas/requestGrantRemoval.js +1 -1
  337. package/src/sagas/updateGrantApprovalRule.js +1 -1
  338. package/src/sagas/updateStructure.js +1 -1
  339. package/src/sagas/uploadStructuresDomains.js +2 -2
  340. package/src/sagas/upsertCatalogViewConfig.js +1 -1
  341. package/src/selectors/__tests__/getActiveTab.spec.js +99 -28
  342. package/src/selectors/__tests__/getBusinessConceptsLinksToStructuresColumnsSelector.spec.js +1 -1
  343. package/src/selectors/__tests__/getGrantRequestsColumns.spec.js +2 -2
  344. package/src/selectors/__tests__/getGrantRequestsSearchColumns.spec.js +1 -1
  345. package/src/selectors/__tests__/getGrantsColumns.spec.js +4 -4
  346. package/src/selectors/__tests__/getParsedEvents.spec.js +1 -1
  347. package/src/selectors/__tests__/getSortedRelations.spec.js +5 -5
  348. package/src/selectors/__tests__/getStructureFieldColumns.spec.js +1 -1
  349. package/src/selectors/__tests__/getStructureRelations.spec.js +1 -1
  350. package/src/selectors/__tests__/getTabVisibility.spec.js +38 -28
  351. package/src/selectors/__tests__/messages.spec.js +4 -4
  352. package/src/selectors/getActiveTab.js +16 -4
  353. package/src/selectors/getBusinessConceptsLinksToStructuresColumnsSelector.js +1 -1
  354. package/src/selectors/getGrantAvailableFilters.js +2 -2
  355. package/src/selectors/getGrantRequestTemplate.js +1 -1
  356. package/src/selectors/getGrantRequests.js +2 -2
  357. package/src/selectors/getGrantRequestsColumns.js +6 -6
  358. package/src/selectors/getGrantRequestsQuery.js +1 -1
  359. package/src/selectors/getGrantRequestsSearchColumns.js +2 -2
  360. package/src/selectors/getGrantSelectedFilters.js +1 -1
  361. package/src/selectors/getGrantsColumns.js +5 -5
  362. package/src/selectors/getLineageLevels.js +1 -1
  363. package/src/selectors/getLinkedImplementationsToStructuresColumns.js +1 -1
  364. package/src/selectors/getRelationSortingCriteria.js +1 -1
  365. package/src/selectors/getSortedRelations.js +5 -5
  366. package/src/selectors/getSortedStructureNotes.js +4 -4
  367. package/src/selectors/getStructureDeletedAt.js +2 -2
  368. package/src/selectors/getStructureFieldColumns.js +1 -1
  369. package/src/selectors/getStructureLinks.js +1 -1
  370. package/src/selectors/getStructureParent.js +2 -2
  371. package/src/selectors/getStructureProperties.js +1 -1
  372. package/src/selectors/getStructureRelations.js +4 -4
  373. package/src/selectors/getStructureSortingCriteria.js +1 -1
  374. package/src/selectors/getStructureUpdatedAt.js +1 -1
  375. package/src/selectors/getStructuresFields.js +5 -5
  376. package/src/selectors/getStructuresUploadEventColumns.js +1 -1
  377. package/src/selectors/getSystem.js +1 -1
  378. package/src/selectors/getSystemTemplate.js +1 -1
  379. package/src/selectors/getTabVisibility.js +2 -2
  380. package/src/selectors/groupOptionsSelector.js +2 -2
  381. package/src/selectors/leafClassesSelector.js +1 -1
  382. package/src/selectors/messages.js +1 -1
  383. package/src/selectors/metadataViewsSelector.js +6 -6
  384. package/src/selectors/resourceOptionsSelector.js +2 -2
  385. package/src/selectors/structureColumnsSelector.js +2 -2
  386. package/src/selectors/structureNotesColumnsSelector.js +1 -1
  387. package/src/selectors/templateNamesSelector.js +1 -1
  388. package/src/selectors/utils/decorators.js +32 -20
@@ -18,7 +18,12 @@ export const StructureMetadata = () => {
18
18
  variables: { dataStructureId: id, version: "latest" },
19
19
  });
20
20
  const metadata = data?.dataStructureVersion?.metadata;
21
- const options = useSelector((state) => metadataViewsSelector({ structure: state.structure, structureMetadata: metadata }))
21
+ const options = useSelector((state) =>
22
+ metadataViewsSelector({
23
+ structure: state.structure,
24
+ structureMetadata: metadata,
25
+ }),
26
+ );
22
27
 
23
28
  useEffect(() => {
24
29
  if (!selectedOption && !_.isEmpty(options)) {
@@ -29,16 +34,16 @@ export const StructureMetadata = () => {
29
34
  const formatContent = (value) =>
30
35
  _.isObject(value)
31
36
  ? {
32
- content: (
33
- <div>
34
- <Accordion.Accordion
35
- exclusive={false}
36
- defaultActiveIndex={_.range(0, _.size(value))}
37
- panels={toPanels(value)}
38
- />
39
- </div>
40
- ),
41
- }
37
+ content: (
38
+ <div>
39
+ <Accordion.Accordion
40
+ exclusive={false}
41
+ defaultActiveIndex={_.range(0, _.size(value))}
42
+ panels={toPanels(value)}
43
+ />
44
+ </div>
45
+ ),
46
+ }
42
47
  : _.toString(value);
43
48
 
44
49
  const toPanels = _.flow(
@@ -50,7 +55,7 @@ export const StructureMetadata = () => {
50
55
  defaultMessage: k,
51
56
  }),
52
57
  content: formatContent(v),
53
- }))
58
+ })),
54
59
  );
55
60
 
56
61
  const items = options.map((option, key) => ({
@@ -64,7 +69,9 @@ export const StructureMetadata = () => {
64
69
  const fields = selectedOption?.fields;
65
70
  const defaultActiveIndex = _.range(0, _.size(fields));
66
71
 
67
- return loading ? <Loader active={loading} /> : !_.isEmpty(fields) ? (
72
+ return loading ? (
73
+ <Loader active={loading} />
74
+ ) : !_.isEmpty(fields) ? (
68
75
  <>
69
76
  {items?.length > 1 ? (
70
77
  <Menu pointing attached="top" secondary items={items} />
@@ -77,10 +84,9 @@ export const StructureMetadata = () => {
77
84
  styled
78
85
  />
79
86
  </>
80
- ) : <Message
81
- warning
82
- header={formatMessage({ id: "structure.notes.empty" })}
83
- />;
87
+ ) : (
88
+ <Message warning header={formatMessage({ id: "structure.notes.empty" })} />
89
+ );
84
90
  };
85
91
 
86
92
  export default StructureMetadata;
@@ -11,7 +11,7 @@ import StructureNavClassified from "./StructureNavClassified";
11
11
  export const navClasses = _.flow(
12
12
  _.prop("classes"),
13
13
  _.keys,
14
- _.without(["_grantable"])
14
+ _.without(["_grantable"]),
15
15
  );
16
16
  export const hasNavClass = _.flow(navClasses, _.negate(_.isEmpty));
17
17
 
@@ -32,7 +32,7 @@ export const StructureNavClassified = ({
32
32
  const entries = _.flow(
33
33
  _.groupBy(classLabel),
34
34
  _.entries,
35
- _.sortBy(_.head)
35
+ _.sortBy(_.head),
36
36
  )(structures);
37
37
  return entries.map(([label, children], key) => (
38
38
  <Fragment key={key}>
@@ -123,7 +123,7 @@ export const StructureNoteActions = ({
123
123
  }
124
124
  : baseAction;
125
125
  }),
126
- _.sortBy((action) => (action.value === "deleted" ? 1 : 0))
126
+ _.sortBy((action) => (action.value === "deleted" ? 1 : 0)),
127
127
  )(actions);
128
128
 
129
129
  return _.isEmpty(parsedActions) ? null : (
@@ -15,12 +15,12 @@ import {
15
15
  import StructureNoteActions from "./StructureNoteActions";
16
16
 
17
17
  const DynamicFormViewer = lazy(
18
- () => import("@truedat/df/components/DynamicFormViewer")
18
+ () => import("@truedat/df/components/DynamicFormViewer"),
19
19
  );
20
20
 
21
21
  const StructureNote = ({ structureNote, template, structure, notesSize }) => {
22
22
  const [collapsed, setCollapsed] = useState(
23
- structureNote?.status !== "published"
23
+ structureNote?.status !== "published",
24
24
  );
25
25
  const actions = _.getOr({}, "_actions")(structureNote);
26
26
  const showPublishedHeader =
@@ -171,7 +171,7 @@ const mapStateToProps = (state) => {
171
171
  structureNotes,
172
172
  structure,
173
173
  template: _.find(
174
- _.propEq("id", _.path("structure_type.template_id")(structure))
174
+ _.propEq("id", _.path("structure_type.template_id")(structure)),
175
175
  )(templates),
176
176
  };
177
177
  };
@@ -15,7 +15,7 @@ import { getLatestDfContent } from "../selectors/getSortedStructureNotes";
15
15
  const DynamicForm = lazy(() => import("@truedat/df/components/DynamicForm"));
16
16
 
17
17
  const TemplateLoader = lazy(
18
- () => import("@truedat/df/templates/components/TemplateLoader")
18
+ () => import("@truedat/df/templates/components/TemplateLoader"),
19
19
  );
20
20
 
21
21
  export const StructureNotesEdit = ({
@@ -30,7 +30,7 @@ export const StructureNotesEdit = ({
30
30
  }) => {
31
31
  const [content, setContent] = useState(latestDfContent);
32
32
  const aiSuggestionsUrl = _.prop("_actions.ai_suggestions.href")(
33
- structureNotes
33
+ structureNotes,
34
34
  );
35
35
 
36
36
  const isModification = !_.isEmpty(latestDfContent);
@@ -56,7 +56,7 @@ export const StructureNotesEdit = ({
56
56
  const draftNoteAction = _.flow(
57
57
  _.get("structureNotes"),
58
58
  _.find({ status: "draft" }),
59
- _.get("_actions.edited")
59
+ _.get("_actions.edited"),
60
60
  )(structureNotes);
61
61
  const action = draftNoteAction
62
62
  ? draftNoteAction
@@ -124,7 +124,7 @@ StructureNotesEdit.propTypes = {
124
124
  const findTemplate = ({ templates, structure: { structure_type } = {} }) =>
125
125
  _.defaultTo(
126
126
  _.head(templates),
127
- _.find(_.propEq("id", _.prop("template_id")(structure_type)))(templates)
127
+ _.find(_.propEq("id", _.prop("template_id")(structure_type)))(templates),
128
128
  );
129
129
 
130
130
  const mapStateToProps = (state) => {
@@ -45,5 +45,5 @@ const mapDispatchToProps = {
45
45
 
46
46
  export default connect(
47
47
  mapStateToProps,
48
- mapDispatchToProps
48
+ mapDispatchToProps,
49
49
  )(StructureProfileButton);
@@ -49,7 +49,7 @@ export const mapStateToProps = (state) => ({
49
49
 
50
50
  properties: _.flow(
51
51
  getStructureProperties,
52
- _.reject((p) => _.flow(columnDecorator(p), _.isEmpty)(state.structure))
52
+ _.reject((p) => _.flow(columnDecorator(p), _.isEmpty)(state.structure)),
53
53
  )(state),
54
54
  });
55
55
 
@@ -8,11 +8,11 @@ import {
8
8
  SearchContextProvider,
9
9
  useSearchContext,
10
10
  } from "@truedat/core/search/SearchContext";
11
- import translations from "../utils/structureCustomTranslations";
12
11
  import {
13
12
  useDataStructureFilters,
14
13
  useDataStructureSearch,
15
14
  } from "@truedat/dd/hooks/useStructures";
15
+ import translations from "../utils/structureCustomTranslations";
16
16
  import { defaultColumnsForStructureSelector } from "../selectors";
17
17
 
18
18
  import StructuresSearchResults from "./StructuresSearchResults";
@@ -74,11 +74,11 @@ export const StructureSelector = (props) => {
74
74
  const withDataFields = _.prop("withDataFields")(props);
75
75
  const withLinkStructures = _.prop("withLinkStructures")(props);
76
76
  const defaultOverwriteColumns = useSelector(
77
- defaultColumnsForStructureSelector
77
+ defaultColumnsForStructureSelector,
78
78
  );
79
79
  const overwriteColumns = _.propOr(
80
80
  defaultOverwriteColumns,
81
- "overwriteColumns"
81
+ "overwriteColumns",
82
82
  )(props);
83
83
 
84
84
  const enrichSearchPayload = {
@@ -19,9 +19,9 @@ const getParentStructures = (structures, selectedStructure) => {
19
19
  _.filter(
20
20
  (s) =>
21
21
  _.path("alias.index")(s) !==
22
- _.path("alias.index")(selectedStructure)
22
+ _.path("alias.index")(selectedStructure),
23
23
  ),
24
- _.defaultTo([])
24
+ _.defaultTo([]),
25
25
  )(structures)
26
26
  : [];
27
27
  };
@@ -10,7 +10,7 @@ import { linkStructureToStructure as linkStructureToStructureRoutine } from "../
10
10
  import LinkLabelsSelector from "./LinkLabelsSelector";
11
11
 
12
12
  const StructureSelector = lazy(
13
- () => import("@truedat/dd/components/StructureSelector")
13
+ () => import("@truedat/dd/components/StructureSelector"),
14
14
  );
15
15
 
16
16
  export const StructureStructureForm = ({
@@ -85,5 +85,5 @@ const mapStateToProps = ({ structure }) => ({
85
85
 
86
86
  export default connect(
87
87
  mapStateToProps,
88
- mapDispatchToProps
88
+ mapDispatchToProps,
89
89
  )(StructureStructureForm);
@@ -60,7 +60,7 @@ export const Edge = ({ structureId, structureLink }) => (
60
60
  >
61
61
  {_.flow(
62
62
  _.map((label) => label?.name),
63
- _.join(", ")
63
+ _.join(", "),
64
64
  )(structureLink?.labels)}
65
65
  </textPath>
66
66
  </text>
@@ -101,7 +101,7 @@ export const DeleteLink = ({ deleteStructureStructureLink, structureLink }) => {
101
101
  sourceStructureId,
102
102
  targetStructureId,
103
103
  }),
104
- (destructuredLink) => deleteStructureStructureLink(destructuredLink)
104
+ (destructuredLink) => deleteStructureStructureLink(destructuredLink),
105
105
  )(structureLink)
106
106
  }
107
107
  onOpen={(e) => e.stopPropagation()}
@@ -151,7 +151,7 @@ export const StructureStructureLinks = ({
151
151
  alias: relatedStructure.alias,
152
152
  }}
153
153
  />
154
- )
154
+ ),
155
155
  )(structureId, structureLink),
156
156
  },
157
157
  ];
@@ -230,13 +230,13 @@ const mapStateToProps = (state) => {
230
230
  return {
231
231
  canLinkStructureToStructure: _.has(
232
232
  "create_struct_to_struct_link",
233
- structureActions
233
+ structureActions,
234
234
  ),
235
235
  };
236
236
  };
237
237
 
238
238
  const StructureStructureLinksConnected = connect(mapStateToProps)(
239
- StructureStructureLinks
239
+ StructureStructureLinks,
240
240
  );
241
241
 
242
242
  export const StructuresStructureLinksLoader = () => {
@@ -27,21 +27,21 @@ import StructureStructureLinks from "./StructureStructureLinks";
27
27
  import StructureStructureForm from "./StructureStructureForm";
28
28
 
29
29
  const StructureLinks = lazy(
30
- () => import("@truedat/lm/components/StructureLinks")
30
+ () => import("@truedat/lm/components/StructureLinks"),
31
31
  );
32
32
 
33
33
  const StructureProfile = lazy(() => import("@truedat/profile"));
34
34
 
35
35
  const StructureRelationForm = lazy(
36
- () => import("@truedat/lm/components/StructureRelationForm")
36
+ () => import("@truedat/lm/components/StructureRelationForm"),
37
37
  );
38
38
 
39
39
  const StructureSuggestionLinkForm = lazy(
40
- () => import("@truedat/lm/components/StructureSuggestionLinkForm")
40
+ () => import("@truedat/lm/components/StructureSuggestionLinkForm"),
41
41
  );
42
42
 
43
43
  const RuleImplementationsTable = lazy(
44
- () => import("@truedat/dq/components/SimpleRuleImplementationsTable")
44
+ () => import("@truedat/dq/components/SimpleRuleImplementationsTable"),
45
45
  );
46
46
 
47
47
  const CustomTab = ({ tabs, activeTab }) => {
@@ -55,7 +55,7 @@ export const StructureTabPane = ({ path }) => {
55
55
  const tabVisibility = useSelector(getTabVisibility);
56
56
  const structureTabsOrder = useSelector((state) => state.structureTabsOrder);
57
57
  const columns = useSelector((state) =>
58
- getLinkedImplementationsToStructuresColumns(state)
58
+ getLinkedImplementationsToStructuresColumns(state),
59
59
  );
60
60
  const ruleImplementations = useSelector((state) => state.ruleImplementations);
61
61
 
@@ -22,101 +22,113 @@ import {
22
22
  STRUCTURE_VERSIONS,
23
23
  STRUCTURE_VERSION_VERSIONS,
24
24
  } from "@truedat/core/routes";
25
- import { useStructureCustomTabs } from "../hooks/useCustomTabs";
26
25
  import { useParams } from "react-router";
26
+ import { useStructureCustomTabs } from "../hooks/useCustomTabs";
27
27
  import StructureTabPane from "./StructureTabPane";
28
28
 
29
29
  const EventsLoader = lazy(
30
- () => import("@truedat/audit/components/EventsLoader")
30
+ () => import("@truedat/audit/components/EventsLoader"),
31
31
  );
32
32
  const StructureEventsLoader = () => {
33
33
  const { id } = useParams();
34
34
  return <EventsLoader resource_id={id} resource_type="data_structure" />;
35
35
  };
36
36
 
37
- export const StructureTabPaneRoutes = ({ }) => {
37
+ export const StructureTabPaneRoutes = ({}) => {
38
38
  const customTabs = useStructureCustomTabs();
39
- return <Routes>
40
- <Route index exact element={<StructureTabPane path={STRUCTURE} />} />
39
+ return (
40
+ <Routes>
41
+ <Route index exact element={<StructureTabPane path={STRUCTURE} />} />
41
42
 
42
- <Route path="versions">
43
- <Route index element={<StructureTabPane path={STRUCTURE_VERSIONS} />} />
43
+ <Route path="versions">
44
+ <Route index element={<StructureTabPane path={STRUCTURE_VERSIONS} />} />
44
45
 
45
- <Route path=":version">
46
- <Route index element={<StructureTabPane path={STRUCTURE_VERSION} />} />
47
- <Route
48
- path="versions"
49
- element={<StructureTabPane path={STRUCTURE_VERSION_VERSIONS} />}
50
- />
51
- <Route
52
- path="fields"
53
- element={<StructureTabPane path={STRUCTURE_VERSION_FIELDS} />}
54
- />
46
+ <Route path=":version">
47
+ <Route
48
+ index
49
+ element={<StructureTabPane path={STRUCTURE_VERSION} />}
50
+ />
51
+ <Route
52
+ path="versions"
53
+ element={<StructureTabPane path={STRUCTURE_VERSION_VERSIONS} />}
54
+ />
55
+ <Route
56
+ path="fields"
57
+ element={<StructureTabPane path={STRUCTURE_VERSION_FIELDS} />}
58
+ />
59
+ </Route>
55
60
  </Route>
56
- </Route>
57
61
 
58
- <Route
59
- path="profile"
60
- element={<StructureTabPane path={STRUCTURE_PROFILE} />}
61
- />
62
- <Route
63
- path="links/*"
64
- element={<StructureTabPane path={STRUCTURE_LINKS} />}
65
- />
66
- <Route
67
- path="structureLinks/*"
68
- element={<StructureTabPane path={STRUCTURE_STRUCTURE_LINKS} />}
69
- />
70
- <Route
71
- path="events"
72
- element={
73
- <>
74
- <StructureEventsLoader />
75
- <StructureTabPane path={STRUCTURE_EVENTS} />
76
- </>
77
- }
78
- />
79
- <Route
80
- path="metadata"
81
- element={<StructureTabPane path={STRUCTURE_METADATA} />}
82
- />
83
- <Route
84
- path="notes/*"
85
- element={<StructureTabPane path={STRUCTURE_NOTES} />}
86
- />
87
- <Route
88
- path="members"
89
- element={<StructureTabPane path={STRUCTURE_MEMBERS} />}
90
- />
91
- <Route path="rules" element={<StructureTabPane path={STRUCTURE_RULES} />} />
92
- <Route
93
- path="lineage"
94
- element={<StructureTabPane path={STRUCTURE_LINEAGE} />}
95
- />
96
- <Route
97
- path="children"
98
- element={<StructureTabPane path={STRUCTURE_CHILDREN} />}
99
- />
100
- <Route
101
- path="fields"
102
- element={<StructureTabPane path={STRUCTURE_FIELDS} />}
103
- />
104
- <Route
105
- path="parents"
106
- element={<StructureTabPane path={STRUCTURE_PARENTS} />}
107
- />
108
- <Route
109
- path="impact"
110
- element={<StructureTabPane path={STRUCTURE_IMPACT} />}
111
- />
112
- <Route
113
- path="grants"
114
- element={<StructureTabPane path={STRUCTURE_GRANTS} />}
115
- />
116
- {_.map((tab) => (
117
- <Route path={tab.name} element={<StructureTabPane path={tab.route} />} />
118
- ))(customTabs)}
119
- </Routes>
62
+ <Route
63
+ path="profile"
64
+ element={<StructureTabPane path={STRUCTURE_PROFILE} />}
65
+ />
66
+ <Route
67
+ path="links/*"
68
+ element={<StructureTabPane path={STRUCTURE_LINKS} />}
69
+ />
70
+ <Route
71
+ path="structureLinks/*"
72
+ element={<StructureTabPane path={STRUCTURE_STRUCTURE_LINKS} />}
73
+ />
74
+ <Route
75
+ path="events"
76
+ element={
77
+ <>
78
+ <StructureEventsLoader />
79
+ <StructureTabPane path={STRUCTURE_EVENTS} />
80
+ </>
81
+ }
82
+ />
83
+ <Route
84
+ path="metadata"
85
+ element={<StructureTabPane path={STRUCTURE_METADATA} />}
86
+ />
87
+ <Route
88
+ path="notes/*"
89
+ element={<StructureTabPane path={STRUCTURE_NOTES} />}
90
+ />
91
+ <Route
92
+ path="members"
93
+ element={<StructureTabPane path={STRUCTURE_MEMBERS} />}
94
+ />
95
+ <Route
96
+ path="rules"
97
+ element={<StructureTabPane path={STRUCTURE_RULES} />}
98
+ />
99
+ <Route
100
+ path="lineage"
101
+ element={<StructureTabPane path={STRUCTURE_LINEAGE} />}
102
+ />
103
+ <Route
104
+ path="children"
105
+ element={<StructureTabPane path={STRUCTURE_CHILDREN} />}
106
+ />
107
+ <Route
108
+ path="fields"
109
+ element={<StructureTabPane path={STRUCTURE_FIELDS} />}
110
+ />
111
+ <Route
112
+ path="parents"
113
+ element={<StructureTabPane path={STRUCTURE_PARENTS} />}
114
+ />
115
+ <Route
116
+ path="impact"
117
+ element={<StructureTabPane path={STRUCTURE_IMPACT} />}
118
+ />
119
+ <Route
120
+ path="grants"
121
+ element={<StructureTabPane path={STRUCTURE_GRANTS} />}
122
+ />
123
+ {_.map((tab) => (
124
+ // eslint-disable-next-line react/jsx-key
125
+ <Route
126
+ path={tab.name}
127
+ element={<StructureTabPane path={tab.route} />}
128
+ />
129
+ ))(customTabs)}
130
+ </Routes>
131
+ );
120
132
  };
121
133
 
122
134
  export default StructureTabPaneRoutes;
@@ -51,17 +51,26 @@ export const StructureTabRoutes = () => {
51
51
  path="profile"
52
52
  element={<StructureTabs path={STRUCTURE_PROFILE} />}
53
53
  />
54
- <Route path="links/*" element={<StructureTabs path={STRUCTURE_LINKS} />} />
54
+ <Route
55
+ path="links/*"
56
+ element={<StructureTabs path={STRUCTURE_LINKS} />}
57
+ />
55
58
  <Route
56
59
  path="structureLinks/*"
57
60
  element={<StructureTabs path={STRUCTURE_STRUCTURE_LINKS} />}
58
61
  />
59
- <Route path="events" element={<StructureTabs path={STRUCTURE_EVENTS} />} />
62
+ <Route
63
+ path="events"
64
+ element={<StructureTabs path={STRUCTURE_EVENTS} />}
65
+ />
60
66
  <Route
61
67
  path="metadata"
62
68
  element={<StructureTabs path={STRUCTURE_METADATA} />}
63
69
  />
64
- <Route path="notes/*" element={<StructureTabs path={STRUCTURE_NOTES} />} />
70
+ <Route
71
+ path="notes/*"
72
+ element={<StructureTabs path={STRUCTURE_NOTES} />}
73
+ />
65
74
  <Route
66
75
  path="members"
67
76
  element={<StructureTabs path={STRUCTURE_MEMBERS} />}
@@ -75,18 +84,31 @@ export const StructureTabRoutes = () => {
75
84
  path="children"
76
85
  element={<StructureTabs path={STRUCTURE_CHILDREN} />}
77
86
  />
78
- <Route path="fields" element={<StructureTabs path={STRUCTURE_FIELDS} />} />
87
+ <Route
88
+ path="fields"
89
+ element={<StructureTabs path={STRUCTURE_FIELDS} />}
90
+ />
79
91
  <Route
80
92
  path="parents"
81
93
  element={<StructureTabs path={STRUCTURE_PARENTS} />}
82
94
  />
83
- <Route path="impact" element={<StructureTabs path={STRUCTURE_IMPACT} />} />
84
- <Route path="grants" element={<StructureTabs path={STRUCTURE_GRANTS} />} />
95
+ <Route
96
+ path="impact"
97
+ element={<StructureTabs path={STRUCTURE_IMPACT} />}
98
+ />
99
+ <Route
100
+ path="grants"
101
+ element={<StructureTabs path={STRUCTURE_GRANTS} />}
102
+ />
85
103
  {_.map((tab) => (
86
- <Route path={tab.name} element={<StructureTabs path={`/structures/:id/${tab.name}`} />} />
104
+ // eslint-disable-next-line react/jsx-key
105
+ <Route
106
+ path={tab.name}
107
+ element={<StructureTabs path={`/structures/:id/${tab.name}`} />}
108
+ />
87
109
  ))(customTabs)}
88
110
  </Routes>
89
- )
111
+ );
90
112
  };
91
113
 
92
114
  export default StructureTabRoutes;
@@ -184,22 +184,23 @@ export const StructureTabs = ({ path }) => {
184
184
  ])
185
185
  : null;
186
186
 
187
- const sortedItems = items && structureTabsOrder
188
- ? items.sort((a, b) => {
189
- const aIndex = _.indexOf(a.key)(structureTabsOrder);
190
- const bIndex = _.indexOf(b.key)(structureTabsOrder);
191
- if (aIndex !== -1 && bIndex !== -1) {
192
- return aIndex - bIndex;
193
- }
194
- if (aIndex !== -1) {
195
- return -1;
196
- }
197
- if (bIndex !== -1) {
198
- return 1;
199
- }
200
- return 0;
201
- })
202
- : items;
187
+ const sortedItems =
188
+ items && structureTabsOrder
189
+ ? items.sort((a, b) => {
190
+ const aIndex = _.indexOf(a.key)(structureTabsOrder);
191
+ const bIndex = _.indexOf(b.key)(structureTabsOrder);
192
+ if (aIndex !== -1 && bIndex !== -1) {
193
+ return aIndex - bIndex;
194
+ }
195
+ if (aIndex !== -1) {
196
+ return -1;
197
+ }
198
+ if (bIndex !== -1) {
199
+ return 1;
200
+ }
201
+ return 0;
202
+ })
203
+ : items;
203
204
 
204
205
  return (
205
206
  <>
@@ -34,14 +34,14 @@ export const StructureTagForm = ({
34
34
  value: id,
35
35
  text: name,
36
36
  description: description,
37
- }))
37
+ })),
38
38
  )(structureTag);
39
39
  const { handleSubmit, control, formState, setValue } = useForm({
40
40
  mode: "all",
41
41
  defaultValues: {
42
42
  ...DEFAULT_VALUES,
43
43
  ..._.pick(["dataStructureId", "id", "inherit", "comment", "tagId"])(
44
- structureTag
44
+ structureTag,
45
45
  ),
46
46
  },
47
47
  });
@@ -11,7 +11,7 @@ export const StructureTags = ({ structureId, structureTags, tags }) => {
11
11
  const editableIds = _.map("id")(tags);
12
12
  const taggedIds = _.flow(
13
13
  _.reject("inherited"),
14
- _.map("tag.id")
14
+ _.map("tag.id"),
15
15
  )(structureTags);
16
16
  const availableTags = _.reject(({ id }) => _.includes(id)(taggedIds))(tags);
17
17
  return (