@truedat/dd 8.7.0 → 8.7.2

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 (389) hide show
  1. package/package.json +3 -3
  2. package/src/api/queries.js +1 -0
  3. package/src/components/BucketView.js +2 -2
  4. package/src/components/CatalogCustomViewCards.js +1 -1
  5. package/src/components/DictionaryRoutes.js +3 -3
  6. package/src/components/FilteredNav.js +3 -3
  7. package/src/components/Grant.js +4 -4
  8. package/src/components/GrantApprovalRule.js +1 -1
  9. package/src/components/GrantApprovalRuleConditions.js +1 -1
  10. package/src/components/GrantApprovalRuleDeleteButton.js +1 -1
  11. package/src/components/GrantApprovalRuleEdit.js +1 -1
  12. package/src/components/GrantApprovalRuleForm.js +6 -6
  13. package/src/components/GrantApprovalRules.js +1 -1
  14. package/src/components/GrantFilters.js +1 -1
  15. package/src/components/GrantFiltersLoader.js +1 -1
  16. package/src/components/GrantRemovalDirectButton.js +1 -1
  17. package/src/components/GrantRemovalWorkflow.js +2 -2
  18. package/src/components/GrantRemovalWorkflowDropdown.js +1 -1
  19. package/src/components/GrantRequest.js +3 -3
  20. package/src/components/GrantRequestApprovalForm.js +2 -2
  21. package/src/components/GrantRequestApprovalResults.js +1 -1
  22. package/src/components/GrantRequestBulkActions.js +2 -2
  23. package/src/components/GrantRequestBulkRoleSelector.js +1 -1
  24. package/src/components/GrantRequestCartResult.js +13 -3
  25. package/src/components/GrantRequestSummary.js +1 -1
  26. package/src/components/GrantRequests.js +2 -2
  27. package/src/components/GrantRequestsSearchResults.js +7 -7
  28. package/src/components/GrantRoutes.js +3 -9
  29. package/src/components/Grants.js +14 -4
  30. package/src/components/GrantsDownloadButton.js +1 -1
  31. package/src/components/GrantsLabelResults.js +2 -5
  32. package/src/components/GrantsLoader.js +2 -2
  33. package/src/components/GrantsTable.js +3 -8
  34. package/src/components/GraphLoader.js +1 -1
  35. package/src/components/LineageContextMenu.js +1 -1
  36. package/src/components/LineageDownloadButton.js +2 -2
  37. package/src/components/LineageEventsTable.js +1 -1
  38. package/src/components/LineageGraph.js +7 -6
  39. package/src/components/LineageGroup.js +2 -7
  40. package/src/components/LinkLabelsSelector.js +1 -1
  41. package/src/components/MyGrantRequests.js +1 -1
  42. package/src/components/ProfileGroup.js +2 -2
  43. package/src/components/ReferenceDatasetActions.js +1 -1
  44. package/src/components/ReferenceDatasetCreate.js +1 -1
  45. package/src/components/ReferenceDatasetDetail.js +1 -1
  46. package/src/components/ReferenceDatasetFieldSelector.js +5 -5
  47. package/src/components/ReferenceDatasetForm.js +3 -3
  48. package/src/components/ReferenceDatasetSelectorInputField.js +3 -3
  49. package/src/components/ReferenceDatasetsTable.js +1 -1
  50. package/src/components/StructureChildrenRelations.js +1 -1
  51. package/src/components/StructureConfidentialButton.js +1 -1
  52. package/src/components/StructureCrumbs.js +3 -3
  53. package/src/components/StructureDeleteButton.js +1 -1
  54. package/src/components/StructureFields.js +3 -3
  55. package/src/components/StructureFieldsDropdown.js +10 -10
  56. package/src/components/StructureGrantCart.js +3 -3
  57. package/src/components/StructureGrantCartCheckout.js +9 -4
  58. package/src/components/StructureGrantCartInformation.js +2 -7
  59. package/src/components/StructureGrantListButton.js +5 -5
  60. package/src/components/StructureGrantRequestAddCart.js +1 -1
  61. package/src/components/StructureGrantSummaryButton.js +2 -2
  62. package/src/components/StructureGrants.js +2 -2
  63. package/src/components/StructureItem.js +4 -4
  64. package/src/components/StructureItemRoot.js +1 -1
  65. package/src/components/StructureLoader.js +1 -2
  66. package/src/components/StructureMetadata.js +23 -17
  67. package/src/components/StructureNav.js +1 -1
  68. package/src/components/StructureNavClassified.js +1 -1
  69. package/src/components/StructureNoteActions.js +1 -1
  70. package/src/components/StructureNotes.js +3 -3
  71. package/src/components/StructureNotesEdit.js +4 -4
  72. package/src/components/StructureProfileButton.js +1 -1
  73. package/src/components/StructureProperties.js +1 -1
  74. package/src/components/StructureSelector.js +3 -3
  75. package/src/components/StructureSelectorInputFieldJoin.js +2 -2
  76. package/src/components/StructureStructureForm.js +2 -2
  77. package/src/components/StructureStructureLinks.js +5 -5
  78. package/src/components/StructureTabPane.js +5 -5
  79. package/src/components/StructureTabPaneRoutes.js +92 -80
  80. package/src/components/StructureTabRoutes.js +30 -8
  81. package/src/components/StructureTabs.js +17 -16
  82. package/src/components/StructureTagForm.js +2 -2
  83. package/src/components/StructureTags.js +1 -1
  84. package/src/components/StructureTypeForm.js +3 -3
  85. package/src/components/StructureTypeLoader.js +1 -1
  86. package/src/components/StructureTypesLoader.js +1 -1
  87. package/src/components/StructureTypesRoutes.js +1 -1
  88. package/src/components/StructureVersions.js +17 -16
  89. package/src/components/StructureView.js +1 -1
  90. package/src/components/StructuresBulkUpdate.js +4 -4
  91. package/src/components/StructuresDomainsUploadOption.js +1 -1
  92. package/src/components/StructuresDownloadOption.js +1 -1
  93. package/src/components/StructuresGrantRequestView.js +1 -1
  94. package/src/components/StructuresLoader.js +1 -1
  95. package/src/components/StructuresRoutes.js +2 -2
  96. package/src/components/StructuresTable.js +4 -4
  97. package/src/components/StructuresUpdateOption.js +3 -3
  98. package/src/components/StructuresUploadEventsTable.js +9 -9
  99. package/src/components/StructuresUploadOption.js +14 -14
  100. package/src/components/StructuresView.js +1 -1
  101. package/src/components/SystemCards.js +7 -7
  102. package/src/components/SystemForm.js +2 -2
  103. package/src/components/SystemLoader.js +1 -1
  104. package/src/components/SystemStructures.js +2 -2
  105. package/src/components/SystemView.js +3 -3
  106. package/src/components/Task.js +6 -6
  107. package/src/components/Tasks.js +1 -1
  108. package/src/components/ValueConditionStructure.js +2 -2
  109. package/src/components/__tests__/BucketView.spec.js +2 -2
  110. package/src/components/__tests__/CatalogCustomViewCards.spec.js +1 -1
  111. package/src/components/__tests__/CatalogViewConfigForm.spec.js +2 -2
  112. package/src/components/__tests__/CatalogViewConfigs.spec.js +2 -2
  113. package/src/components/__tests__/DictionaryRoutes.spec.js +7 -3
  114. package/src/components/__tests__/EditDomainForm.spec.js +3 -3
  115. package/src/components/__tests__/FilteredNav.spec.js +4 -4
  116. package/src/components/__tests__/Grant.spec.js +4 -4
  117. package/src/components/__tests__/GrantApprovalRuleConditions.spec.js +6 -6
  118. package/src/components/__tests__/GrantApprovalRuleDeleteButton.spec.js +2 -2
  119. package/src/components/__tests__/GrantApprovalRuleForm.spec.js +9 -7
  120. package/src/components/__tests__/GrantApprovalRules.spec.js +3 -3
  121. package/src/components/__tests__/GrantRemoval.spec.js +4 -4
  122. package/src/components/__tests__/GrantRemovalDirectButton.spec.js +8 -8
  123. package/src/components/__tests__/GrantRemovalWorkflow.spec.js +8 -8
  124. package/src/components/__tests__/GrantRequest.spec.js +1 -1
  125. package/src/components/__tests__/GrantRequestApprovalForm.spec.js +6 -6
  126. package/src/components/__tests__/GrantRequestApprovalPopup.spec.js +1 -1
  127. package/src/components/__tests__/GrantRequestBulkActions.spec.js +8 -8
  128. package/src/components/__tests__/GrantRequestBulkApprovalForm.spec.js +2 -2
  129. package/src/components/__tests__/GrantRequestBulkRoleSelector.spec.js +2 -2
  130. package/src/components/__tests__/GrantRequestCartResult.spec.js +13 -3
  131. package/src/components/__tests__/GrantRequestHeader.spec.js +2 -2
  132. package/src/components/__tests__/GrantRequestRow.spec.js +4 -4
  133. package/src/components/__tests__/GrantRequestSummary.spec.js +1 -1
  134. package/src/components/__tests__/GrantRequests.spec.js +2 -2
  135. package/src/components/__tests__/GrantRequestsLabelResults.spec.js +3 -3
  136. package/src/components/__tests__/GrantRequestsSearchResults.spec.js +2 -2
  137. package/src/components/__tests__/GrantRequestsTable.spec.js +1 -1
  138. package/src/components/__tests__/GrantRoutes.spec.js +16 -16
  139. package/src/components/__tests__/GrantsDownloadButton.spec.js +68 -40
  140. package/src/components/__tests__/GrantsLabelResults.spec.js +2 -2
  141. package/src/components/__tests__/GrantsLoader.spec.js +1 -1
  142. package/src/components/__tests__/GrantsTable.spec.js +4 -4
  143. package/src/components/__tests__/LineageForm.spec.js +5 -5
  144. package/src/components/__tests__/LineageGroup.spec.js +6 -6
  145. package/src/components/__tests__/LineageResource.spec.js +5 -5
  146. package/src/components/__tests__/LineageRoutes.spec.js +6 -6
  147. package/src/components/__tests__/PendingStructureNoteRow.spec.js +4 -4
  148. package/src/components/__tests__/PendingStructureNotes.spec.js +1 -1
  149. package/src/components/__tests__/PendingStructureNotesLabelResults.spec.js +1 -1
  150. package/src/components/__tests__/PendingStructureNotesPagination.spec.js +1 -1
  151. package/src/components/__tests__/PendingStructureNotesTable.spec.js +2 -2
  152. package/src/components/__tests__/ProfileExecution.spec.js +2 -2
  153. package/src/components/__tests__/ProfileGroup.spec.js +2 -2
  154. package/src/components/__tests__/ReferenceDataset.spec.js +7 -5
  155. package/src/components/__tests__/ReferenceDatasetCreate.spec.js +1 -1
  156. package/src/components/__tests__/ReferenceDatasetDetail.spec.js +1 -1
  157. package/src/components/__tests__/ReferenceDatasetFieldSelector.spec.js +9 -9
  158. package/src/components/__tests__/ReferenceDatasetForm.spec.js +9 -7
  159. package/src/components/__tests__/ReferenceDatasetRoutes.spec.js +1 -1
  160. package/src/components/__tests__/StructureFieldRow.spec.js +3 -3
  161. package/src/components/__tests__/StructureFieldsDropdown.spec.js +5 -5
  162. package/src/components/__tests__/StructureGrantCartCheckout.spec.js +2 -2
  163. package/src/components/__tests__/StructureGrantCartInformation.spec.js +1 -1
  164. package/src/components/__tests__/StructureGrantCartUserSelector.spec.js +4 -4
  165. package/src/components/__tests__/StructureGrantDropdown.spec.js +3 -3
  166. package/src/components/__tests__/StructureGrantListButton.spec.js +4 -4
  167. package/src/components/__tests__/StructureGrantSummaryButton.spec.js +5 -5
  168. package/src/components/__tests__/StructureItem.spec.js +3 -3
  169. package/src/components/__tests__/StructureMetadata.spec.js +2 -4
  170. package/src/components/__tests__/StructureNavClassified.spec.js +1 -1
  171. package/src/components/__tests__/StructureNoteActions.spec.js +17 -15
  172. package/src/components/__tests__/StructureNoteLink.spec.js +8 -9
  173. package/src/components/__tests__/StructureNotes.spec.js +3 -3
  174. package/src/components/__tests__/StructureNotesDownloadButton.spec.js +15 -15
  175. package/src/components/__tests__/StructureNotesEdit.spec.js +1 -1
  176. package/src/components/__tests__/StructureRelationRow.spec.js +2 -2
  177. package/src/components/__tests__/StructureRelations.spec.js +2 -2
  178. package/src/components/__tests__/StructureRow.spec.js +2 -2
  179. package/src/components/__tests__/StructureSelectorInputField.spec.js +2 -2
  180. package/src/components/__tests__/StructureSelectorInputFieldJoin.spec.js +1 -1
  181. package/src/components/__tests__/StructureStructureForm.spec.js +1 -1
  182. package/src/components/__tests__/StructureStructureLinks.spec.js +15 -15
  183. package/src/components/__tests__/StructureSummary.spec.js +1 -1
  184. package/src/components/__tests__/StructureTabPane.spec.js +10 -12
  185. package/src/components/__tests__/StructureTabRoutes.spec.js +1 -1
  186. package/src/components/__tests__/StructureTabs.spec.js +24 -8
  187. package/src/components/__tests__/StructureTag.spec.js +11 -11
  188. package/src/components/__tests__/StructureTagForm.spec.js +17 -17
  189. package/src/components/__tests__/StructureTypesRoutes.spec.js +4 -4
  190. package/src/components/__tests__/StructureVersions.spec.js +0 -1
  191. package/src/components/__tests__/StructuresBulkUpdate.spec.js +3 -3
  192. package/src/components/__tests__/StructuresDownloadOption.spec.js +3 -3
  193. package/src/components/__tests__/StructuresEditableDownloadOption.spec.js +2 -2
  194. package/src/components/__tests__/StructuresGrantRequestView.spec.js +2 -2
  195. package/src/components/__tests__/StructuresLabelResults.spec.js +1 -1
  196. package/src/components/__tests__/StructuresLoader.spec.js +1 -1
  197. package/src/components/__tests__/StructuresOptions.spec.js +15 -9
  198. package/src/components/__tests__/StructuresRoutes.spec.js +1 -1
  199. package/src/components/__tests__/StructuresSearchResults.spec.js +2 -2
  200. package/src/components/__tests__/StructuresTable.spec.js +5 -5
  201. package/src/components/__tests__/StructuresUpdateOption.spec.js +2 -2
  202. package/src/components/__tests__/StructuresUploadOption.spec.js +2 -2
  203. package/src/components/__tests__/StructuresView.spec.js +6 -6
  204. package/src/components/__tests__/SystemCards.spec.js +2 -2
  205. package/src/components/__tests__/SystemFilteredNav.spec.js +1 -1
  206. package/src/components/__tests__/SystemStructuresLoader.spec.js +1 -1
  207. package/src/components/__tests__/SystemsRoutes.spec.js +1 -1
  208. package/src/components/__tests__/TagForm.spec.js +7 -5
  209. package/src/components/__tests__/TagsRoutes.spec.js +1 -1
  210. package/src/components/__tests__/Tasks.spec.js +9 -9
  211. package/src/components/__tests__/TasksRoutes.spec.js +1 -1
  212. package/src/components/__tests__/ValueConditionStructure.spec.js +2 -2
  213. package/src/hooks/useBucketPaths.js +1 -1
  214. package/src/hooks/useBucketStructures.js +1 -1
  215. package/src/hooks/useCustomTabs.js +1 -1
  216. package/src/hooks/useGrant.js +7 -3
  217. package/src/hooks/useGrantRequest.js +4 -4
  218. package/src/hooks/useStructures.js +4 -5
  219. package/src/hooks/useTemplatesByIds.js +10 -5
  220. package/src/messages/en.js +1 -2
  221. package/src/messages/es.js +1 -2
  222. package/src/messages/index.js +1 -1
  223. package/src/reducers/__tests__/bulkUpdateStructuresLoading.spec.js +5 -5
  224. package/src/reducers/__tests__/creatingGrantRequestApproval.spec.js +3 -3
  225. package/src/reducers/__tests__/csvGraphDownloading.spec.js +4 -4
  226. package/src/reducers/__tests__/ddMessage.spec.js +3 -3
  227. package/src/reducers/__tests__/grantFilters.spec.js +1 -1
  228. package/src/reducers/__tests__/grantQuery.spec.js +6 -6
  229. package/src/reducers/__tests__/grantRequests.spec.js +2 -2
  230. package/src/reducers/__tests__/grantRequestsCart.spec.js +31 -31
  231. package/src/reducers/__tests__/grantRequestsLoading.spec.js +3 -3
  232. package/src/reducers/__tests__/grantRequestsQuery.spec.js +2 -2
  233. package/src/reducers/__tests__/grants.spec.js +2 -2
  234. package/src/reducers/__tests__/graph.spec.js +1 -1
  235. package/src/reducers/__tests__/graphLoading.spec.js +6 -4
  236. package/src/reducers/__tests__/graphRedirect.spec.js +11 -7
  237. package/src/reducers/__tests__/lineageEventsLoading.spec.js +2 -2
  238. package/src/reducers/__tests__/lineageQuery.spec.js +6 -6
  239. package/src/reducers/__tests__/nodes.spec.js +1 -1
  240. package/src/reducers/__tests__/nodesLoading.spec.js +2 -2
  241. package/src/reducers/__tests__/profileExecution.spec.js +6 -6
  242. package/src/reducers/__tests__/profileExecutionLoading.spec.js +5 -3
  243. package/src/reducers/__tests__/profileGroup.spec.js +12 -12
  244. package/src/reducers/__tests__/profileGroupLoading.spec.js +6 -6
  245. package/src/reducers/__tests__/referenceDatasetSaving.spec.js +8 -4
  246. package/src/reducers/__tests__/selectedGroups.spec.js +2 -2
  247. package/src/reducers/__tests__/selectedNode.spec.js +5 -5
  248. package/src/reducers/__tests__/selectedResources.spec.js +5 -5
  249. package/src/reducers/__tests__/selectedUserSearchFilter.spec.js +3 -3
  250. package/src/reducers/__tests__/structure.spec.js +2 -2
  251. package/src/reducers/__tests__/structureActions.spec.js +4 -4
  252. package/src/reducers/__tests__/structureAncestry.spec.js +6 -6
  253. package/src/reducers/__tests__/structureChildren.spec.js +2 -2
  254. package/src/reducers/__tests__/structureFields.spec.js +5 -5
  255. package/src/reducers/__tests__/structureImpactGraph.spec.js +6 -6
  256. package/src/reducers/__tests__/structureImpactId.spec.js +7 -7
  257. package/src/reducers/__tests__/structureLineageGraph.spec.js +7 -7
  258. package/src/reducers/__tests__/structureLineageId.spec.js +7 -7
  259. package/src/reducers/__tests__/structureLinks.spec.js +6 -6
  260. package/src/reducers/__tests__/structureLoading.spec.js +2 -2
  261. package/src/reducers/__tests__/structureNotes.spec.js +1 -1
  262. package/src/reducers/__tests__/structureParents.spec.js +2 -2
  263. package/src/reducers/__tests__/structureProfile.spec.js +9 -6
  264. package/src/reducers/__tests__/structureQuery.spec.js +4 -4
  265. package/src/reducers/__tests__/structureRedirect.spec.js +9 -9
  266. package/src/reducers/__tests__/structureRelations.spec.js +4 -4
  267. package/src/reducers/__tests__/structureSiblings.spec.js +2 -2
  268. package/src/reducers/__tests__/structureSystem.spec.js +3 -3
  269. package/src/reducers/__tests__/structureTagSaving.spec.js +2 -2
  270. package/src/reducers/__tests__/structureType.spec.js +2 -2
  271. package/src/reducers/__tests__/structureTypeLoading.spec.js +6 -6
  272. package/src/reducers/__tests__/structureVersion.spec.js +4 -4
  273. package/src/reducers/__tests__/structureVersions.spec.js +9 -5
  274. package/src/reducers/__tests__/structures.spec.js +3 -3
  275. package/src/reducers/__tests__/structuresAliasNameMode.spec.js +5 -5
  276. package/src/reducers/__tests__/structuresUploadEvents.spec.js +1 -1
  277. package/src/reducers/__tests__/structuresUploadEventsLoading.spec.js +4 -4
  278. package/src/reducers/__tests__/system.spec.js +2 -2
  279. package/src/reducers/__tests__/systemId.spec.js +3 -3
  280. package/src/reducers/__tests__/systemStructures.spec.js +3 -3
  281. package/src/reducers/__tests__/systemStructuresLoading.spec.js +2 -2
  282. package/src/reducers/ddMessage.js +1 -1
  283. package/src/reducers/grantFilters.js +1 -1
  284. package/src/reducers/grantRequestsCart.js +16 -13
  285. package/src/reducers/grantSelectedFilter.js +1 -1
  286. package/src/reducers/profileGroup.js +1 -1
  287. package/src/reducers/selectedResources.js +1 -1
  288. package/src/reducers/selectedUserSearchFilter.js +1 -1
  289. package/src/reducers/structure.js +2 -1
  290. package/src/reducers/structureImpactGraph.js +1 -1
  291. package/src/reducers/structureLineageGraph.js +1 -1
  292. package/src/reducers/structureRedirect.js +1 -1
  293. package/src/reducers/structuresAliasNameMode.js +1 -1
  294. package/src/reducers/structuresUploadEvents.js +1 -1
  295. package/src/reducers/systemId.js +1 -1
  296. package/src/reducers/userSearchFilters.js +1 -1
  297. package/src/routines.js +31 -32
  298. package/src/sagas/__tests__/createGrantApprovalRule.spec.js +1 -1
  299. package/src/sagas/__tests__/createGrantRequestApproval.spec.js +1 -1
  300. package/src/sagas/__tests__/createGrantRequestStatus.spec.js +1 -1
  301. package/src/sagas/__tests__/createGraph.spec.js +5 -5
  302. package/src/sagas/__tests__/createProfileGroup.spec.js +10 -10
  303. package/src/sagas/__tests__/deleteGrantApprovalRule.spec.js +1 -1
  304. package/src/sagas/__tests__/deleteStructureStructureLink.spec.js +1 -1
  305. package/src/sagas/__tests__/doStructureNoteAction.spec.js +6 -6
  306. package/src/sagas/__tests__/downloadCsvGraph.spec.js +2 -2
  307. package/src/sagas/__tests__/fetchGrantFilters.spec.js +1 -1
  308. package/src/sagas/__tests__/fetchGrantRequestsFilters.spec.js +3 -3
  309. package/src/sagas/__tests__/fetchProfileExecution.spec.js +3 -3
  310. package/src/sagas/__tests__/fetchProfileGroup.spec.js +6 -6
  311. package/src/sagas/__tests__/fetchStructureNotes.spec.js +3 -3
  312. package/src/sagas/__tests__/fetchStructures.spec.js +2 -2
  313. package/src/sagas/__tests__/fetchStructuresUploadEvents.spec.js +1 -1
  314. package/src/sagas/__tests__/fetchSystemStructures.spec.js +4 -4
  315. package/src/sagas/__tests__/requestGrantRemoval.spec.js +2 -2
  316. package/src/sagas/__tests__/updateGrantApprovalRule.spec.js +1 -1
  317. package/src/sagas/__tests__/updateStructure.spec.js +1 -1
  318. package/src/sagas/__tests__/uploadStructuresDomains.spec.js +3 -3
  319. package/src/sagas/bulkUpdateStructures.js +1 -1
  320. package/src/sagas/createGrantApprovalRule.js +1 -1
  321. package/src/sagas/createGrantRequestApproval.js +1 -1
  322. package/src/sagas/createGrantRequestStatus.js +2 -2
  323. package/src/sagas/createGraph.js +3 -3
  324. package/src/sagas/createProfileGroup.js +1 -1
  325. package/src/sagas/createSystem.js +2 -2
  326. package/src/sagas/deleteCatalogViewConfig.js +1 -1
  327. package/src/sagas/deleteGrantApprovalRule.js +1 -1
  328. package/src/sagas/deleteStructureStructureLink.js +1 -1
  329. package/src/sagas/doStructureNoteAction.js +9 -4
  330. package/src/sagas/downloadCsvGraph.js +2 -2
  331. package/src/sagas/downloadReferenceDataset.js +1 -1
  332. package/src/sagas/fetchGrantRequestsFilters.js +1 -1
  333. package/src/sagas/fetchGraph.js +1 -1
  334. package/src/sagas/fetchStructuresUploadEvents.js +1 -1
  335. package/src/sagas/graph/polling.js +4 -4
  336. package/src/sagas/linkStructureToStructure.js +2 -2
  337. package/src/sagas/requestGrantRemoval.js +1 -1
  338. package/src/sagas/updateGrantApprovalRule.js +1 -1
  339. package/src/sagas/updateStructure.js +1 -1
  340. package/src/sagas/uploadStructuresDomains.js +2 -2
  341. package/src/sagas/upsertCatalogViewConfig.js +1 -1
  342. package/src/selectors/__tests__/getActiveTab.spec.js +99 -28
  343. package/src/selectors/__tests__/getBusinessConceptsLinksToStructuresColumnsSelector.spec.js +1 -1
  344. package/src/selectors/__tests__/getGrantRequestsColumns.spec.js +2 -2
  345. package/src/selectors/__tests__/getGrantRequestsSearchColumns.spec.js +1 -1
  346. package/src/selectors/__tests__/getGrantsColumns.spec.js +4 -4
  347. package/src/selectors/__tests__/getParsedEvents.spec.js +1 -1
  348. package/src/selectors/__tests__/getSortedRelations.spec.js +5 -5
  349. package/src/selectors/__tests__/getStructureFieldColumns.spec.js +1 -1
  350. package/src/selectors/__tests__/getStructureRelations.spec.js +1 -1
  351. package/src/selectors/__tests__/getTabVisibility.spec.js +49 -38
  352. package/src/selectors/__tests__/messages.spec.js +4 -4
  353. package/src/selectors/getActiveTab.js +16 -4
  354. package/src/selectors/getBusinessConceptsLinksToStructuresColumnsSelector.js +1 -1
  355. package/src/selectors/getGrantAvailableFilters.js +2 -2
  356. package/src/selectors/getGrantRequestTemplate.js +1 -1
  357. package/src/selectors/getGrantRequests.js +2 -2
  358. package/src/selectors/getGrantRequestsColumns.js +6 -6
  359. package/src/selectors/getGrantRequestsQuery.js +1 -1
  360. package/src/selectors/getGrantRequestsSearchColumns.js +2 -2
  361. package/src/selectors/getGrantSelectedFilters.js +1 -1
  362. package/src/selectors/getGrantsColumns.js +5 -5
  363. package/src/selectors/getLineageLevels.js +1 -1
  364. package/src/selectors/getLinkedImplementationsToStructuresColumns.js +1 -1
  365. package/src/selectors/getRelationSortingCriteria.js +1 -1
  366. package/src/selectors/getSortedRelations.js +5 -5
  367. package/src/selectors/getSortedStructureNotes.js +4 -4
  368. package/src/selectors/getStructureDeletedAt.js +2 -2
  369. package/src/selectors/getStructureFieldColumns.js +1 -1
  370. package/src/selectors/getStructureLinks.js +1 -1
  371. package/src/selectors/getStructureParent.js +2 -2
  372. package/src/selectors/getStructureProperties.js +1 -1
  373. package/src/selectors/getStructureRelations.js +4 -4
  374. package/src/selectors/getStructureSortingCriteria.js +1 -1
  375. package/src/selectors/getStructureUpdatedAt.js +1 -1
  376. package/src/selectors/getStructuresFields.js +5 -5
  377. package/src/selectors/getStructuresUploadEventColumns.js +1 -1
  378. package/src/selectors/getSystem.js +1 -1
  379. package/src/selectors/getSystemTemplate.js +1 -1
  380. package/src/selectors/getTabVisibility.js +5 -6
  381. package/src/selectors/groupOptionsSelector.js +2 -2
  382. package/src/selectors/leafClassesSelector.js +1 -1
  383. package/src/selectors/messages.js +1 -1
  384. package/src/selectors/metadataViewsSelector.js +6 -6
  385. package/src/selectors/resourceOptionsSelector.js +2 -2
  386. package/src/selectors/structureColumnsSelector.js +2 -2
  387. package/src/selectors/structureNotesColumnsSelector.js +1 -1
  388. package/src/selectors/templateNamesSelector.js +1 -1
  389. package/src/selectors/utils/decorators.js +32 -20
@@ -61,7 +61,7 @@ describe("<PendingStructureNotesTable />", () => {
61
61
  <SearchContext value={searchProps}>
62
62
  <PendingStructureNotesTable {...props} />
63
63
  </SearchContext>,
64
- renderOpts
64
+ renderOpts,
65
65
  );
66
66
  expect(container).toMatchSnapshot();
67
67
 
@@ -84,7 +84,7 @@ describe("<PendingStructureNotesTable />", () => {
84
84
  <SearchContext value={newSearchProps}>
85
85
  <PendingStructureNotesTable {...props} />
86
86
  </SearchContext>,
87
- renderOpts
87
+ renderOpts,
88
88
  );
89
89
  expect(container).toMatchSnapshot();
90
90
  await waitFor(() => {
@@ -39,12 +39,12 @@ describe("<ProfileExecution />", () => {
39
39
  const embeddedProp = { ..._embedded, profile_events: [] };
40
40
  const executionProp = { ...execution, _embedded: embeddedProp };
41
41
  const rendered = render(
42
- <ProfileExecution profileExecution={executionProp} />
42
+ <ProfileExecution profileExecution={executionProp} />,
43
43
  );
44
44
  await waitForLoad(rendered);
45
45
  expect(rendered.getByText(/execution.pending.header/i)).toBeInTheDocument();
46
46
  expect(
47
- rendered.getByText(/execution.pending.content/i)
47
+ rendered.getByText(/execution.pending.content/i),
48
48
  ).toBeInTheDocument();
49
49
  });
50
50
 
@@ -37,7 +37,7 @@ describe("<ProfileGroup />", () => {
37
37
 
38
38
  it("renders null when profileGroupLoading is true", async () => {
39
39
  const rendered = render(
40
- <ProfileGroup {...{ ...props, profileGroupLoading: true }} />
40
+ <ProfileGroup {...{ ...props, profileGroupLoading: true }} />,
41
41
  );
42
42
  await waitForLoad(rendered);
43
43
  expect(rendered.container.firstChild).toBeNull();
@@ -47,7 +47,7 @@ describe("<ProfileGroup />", () => {
47
47
  const rendered = render(<ProfileGroup {...props} />);
48
48
  await waitForLoad(rendered);
49
49
  expect(rendered.getAllByRole("row").length - 1).toBe(
50
- profileGroup._embedded.executions.length
50
+ profileGroup._embedded.executions.length,
51
51
  );
52
52
  });
53
53
  });
@@ -48,10 +48,10 @@ describe("<ReferenceDataset /> edit dataset view", () => {
48
48
  const rendered = render(<ReferenceDataset {...props} />, renderOpts);
49
49
  await waitForLoad(rendered);
50
50
  await waitFor(() =>
51
- expect(rendered.queryByText(/save/i)).toBeInTheDocument()
51
+ expect(rendered.queryByText(/save/i)).toBeInTheDocument(),
52
52
  );
53
53
  await waitFor(() =>
54
- expect(rendered.queryByText(/bardomain/i)).toBeInTheDocument()
54
+ expect(rendered.queryByText(/bardomain/i)).toBeInTheDocument(),
55
55
  );
56
56
  expect(rendered.container).toMatchSnapshot();
57
57
  });
@@ -60,10 +60,10 @@ describe("<ReferenceDataset /> edit dataset view", () => {
60
60
  const rendered = render(<ReferenceDataset {...props} />, renderOpts);
61
61
  await waitForLoad(rendered);
62
62
  await waitFor(() =>
63
- expect(rendered.queryByText(/save/i)).toBeInTheDocument()
63
+ expect(rendered.queryByText(/save/i)).toBeInTheDocument(),
64
64
  );
65
65
  await waitFor(() =>
66
- expect(rendered.queryByText(/bardomain/i)).toBeInTheDocument()
66
+ expect(rendered.queryByText(/bardomain/i)).toBeInTheDocument(),
67
67
  );
68
68
 
69
69
  // Form is disabled until modified
@@ -72,7 +72,9 @@ describe("<ReferenceDataset /> edit dataset view", () => {
72
72
 
73
73
  // Form is now enabled
74
74
  await waitFor(() =>
75
- expect(rendered.getByRole("button", { name: /save/i })).not.toBeDisabled()
75
+ expect(
76
+ rendered.getByRole("button", { name: /save/i }),
77
+ ).not.toBeDisabled(),
76
78
  );
77
79
  });
78
80
  });
@@ -11,7 +11,7 @@ describe("<ReferenceDatasetCreate />", () => {
11
11
  it("matches the latest snapshot", async () => {
12
12
  const { container, queryByText } = render(
13
13
  <ReferenceDatasetCreate {...props} />,
14
- renderOpts
14
+ renderOpts,
15
15
  );
16
16
  await waitFor(() => {
17
17
  expect(queryByText(/barDomain/)).toBeTruthy();
@@ -2,11 +2,11 @@ import React from "react";
2
2
  import { render, waitForLoad } from "@truedat/test/render";
3
3
  import { waitFor } from "@testing-library/react";
4
4
  import { domainsMock } from "@truedat/test/mocks";
5
- import ReferenceDatasetDetail from "../ReferenceDatasetDetail";
6
5
  import {
7
6
  REFERENCE_DATASET_EDIT,
8
7
  REFERENCE_DATASET,
9
8
  } from "@truedat/core/routes";
9
+ import ReferenceDatasetDetail from "../ReferenceDatasetDetail";
10
10
 
11
11
  jest.mock("../ReferenceDatasetTable", () => () => (
12
12
  <div>ReferenceDatasetTable</div>
@@ -38,25 +38,25 @@ describe("<ReferenceDatasetFieldSelector />", () => {
38
38
  };
39
39
  const rendered = render(
40
40
  <ReferenceDatasetFieldSelector onChange={onChange} />,
41
- renderOpts
41
+ renderOpts,
42
42
  );
43
43
  await waitForLoad(rendered);
44
44
  const user = userEvent.setup({ delay: null });
45
45
 
46
46
  await waitFor(() => {
47
47
  expect(
48
- rendered.queryAllByText(/referenceDataset.dropdown.placeholder/i)[0]
48
+ rendered.queryAllByText(/referenceDataset.dropdown.placeholder/i)[0],
49
49
  ).toBeInTheDocument();
50
50
  expect(
51
51
  rendered.queryAllByText(
52
- /referenceDatasetFields.dropdown.placeholder/i
53
- )[1]
52
+ /referenceDatasetFields.dropdown.placeholder/i,
53
+ )[1],
54
54
  ).toBeInTheDocument();
55
55
  expect(
56
- rendered.getByRole("option", { name: /countries/i })
56
+ rendered.getByRole("option", { name: /countries/i }),
57
57
  ).toBeInTheDocument();
58
58
  expect(
59
- rendered.getByRole("option", { name: /currencies/i })
59
+ rendered.getByRole("option", { name: /currencies/i }),
60
60
  ).toBeInTheDocument();
61
61
  });
62
62
 
@@ -64,7 +64,7 @@ describe("<ReferenceDatasetFieldSelector />", () => {
64
64
 
65
65
  await waitFor(() => {
66
66
  expect(
67
- rendered.getByRole("option", { name: /code/i })
67
+ rendered.getByRole("option", { name: /code/i }),
68
68
  ).toBeInTheDocument();
69
69
  });
70
70
 
@@ -77,7 +77,7 @@ describe("<ReferenceDatasetFieldSelector />", () => {
77
77
  referenceDataset: { id: "1" },
78
78
  type: "reference_dataset_field",
79
79
  },
80
- null
80
+ null,
81
81
  );
82
82
  expect(onChange).toHaveBeenNthCalledWith(
83
83
  2,
@@ -90,7 +90,7 @@ describe("<ReferenceDatasetFieldSelector />", () => {
90
90
  },
91
91
  type: "reference_dataset_field",
92
92
  },
93
- null
93
+ null,
94
94
  );
95
95
  });
96
96
  });
@@ -27,12 +27,12 @@ describe("<ReferenceDatasetForm />", () => {
27
27
  await waitForLoad(rendered);
28
28
 
29
29
  await waitFor(() =>
30
- expect(rendered.queryByText(/bardomain/i)).toBeInTheDocument()
30
+ expect(rendered.queryByText(/bardomain/i)).toBeInTheDocument(),
31
31
  );
32
32
  await waitFor(() =>
33
33
  expect(
34
- rendered.getByRole("button", { name: /save/i })
35
- ).toBeInTheDocument()
34
+ rendered.getByRole("button", { name: /save/i }),
35
+ ).toBeInTheDocument(),
36
36
  );
37
37
 
38
38
  expect(rendered.container).toMatchSnapshot();
@@ -43,19 +43,21 @@ describe("<ReferenceDatasetForm />", () => {
43
43
  await waitForLoad(rendered);
44
44
 
45
45
  await waitFor(() =>
46
- expect(rendered.queryByText(/bardomain/i)).toBeInTheDocument()
46
+ expect(rendered.queryByText(/bardomain/i)).toBeInTheDocument(),
47
47
  );
48
48
  await waitFor(() =>
49
49
  expect(
50
- rendered.getByRole("button", { name: /save/i })
51
- ).toBeInTheDocument()
50
+ rendered.getByRole("button", { name: /save/i }),
51
+ ).toBeInTheDocument(),
52
52
  );
53
53
 
54
54
  expect(rendered.getByRole("button", { name: /save/i })).toBeDisabled();
55
55
  userEvent.type((await rendered.findAllByRole("textbox"))[1], "bar");
56
56
 
57
57
  await waitFor(() =>
58
- expect(rendered.getByRole("button", { name: /save/i })).not.toBeDisabled()
58
+ expect(
59
+ rendered.getByRole("button", { name: /save/i }),
60
+ ).not.toBeDisabled(),
59
61
  );
60
62
 
61
63
  userEvent.click(rendered.getByRole("button", { name: /save/i }));
@@ -1,12 +1,12 @@
1
1
  import React from "react";
2
2
  import { render, waitForLoad } from "@truedat/test/render";
3
- import { ReferenceDatasetRoutes } from "../ReferenceDatasetRoutes";
4
3
  import { useAuthorized } from "@truedat/core/hooks/useAuthorized";
5
4
  import {
6
5
  REFERENCE_DATASETS,
7
6
  REFERENCE_DATASET_NEW,
8
7
  REFERENCE_DATASET,
9
8
  } from "@truedat/core/routes";
9
+ import { ReferenceDatasetRoutes } from "../ReferenceDatasetRoutes";
10
10
 
11
11
  jest.mock("@truedat/core/hooks/useAuthorized", () => ({
12
12
  useAuthorized: jest.fn(() => true),
@@ -29,7 +29,7 @@ describe("<StructureFieldRow />", () => {
29
29
  columns={defaultStructureFieldColumns}
30
30
  />
31
31
  </tbody>
32
- </table>
32
+ </table>,
33
33
  );
34
34
  expect(container).toMatchSnapshot();
35
35
  });
@@ -66,13 +66,13 @@ describe("<StructureFieldRow />", () => {
66
66
  columns={defaultStructureFieldColumns}
67
67
  />
68
68
  </tbody>
69
- </table>
69
+ </table>,
70
70
  );
71
71
  expect(getAllByRole("cell")).toHaveLength(8);
72
72
  expect(getByText("f1")).toBeDefined();
73
73
  expect(getAllByRole("link")).toHaveLength(3);
74
74
  expect(
75
- container.getElementsByClassName("structure.field.hasnote.true").length
75
+ container.getElementsByClassName("structure.field.hasnote.true").length,
76
76
  ).toBe(1);
77
77
  });
78
78
  });
@@ -95,7 +95,7 @@ const getEnabledOptions = ({ getAllByRole }) =>
95
95
  _.flow(
96
96
  getAllByRole,
97
97
  _.reject((i) => i.className.includes("disabled")),
98
- _.map((i) => i.textContent)
98
+ _.map((i) => i.textContent),
99
99
  )("option");
100
100
 
101
101
  describe("<StructureFieldsDropdown />", () => {
@@ -103,7 +103,7 @@ describe("<StructureFieldsDropdown />", () => {
103
103
  const props = { ...commonProps };
104
104
  const component = render(
105
105
  <StructureFieldsDropdown {...props} />,
106
- renderOpts
106
+ renderOpts,
107
107
  );
108
108
  const { container } = component;
109
109
  const expectedOptions = ["recipient_ids"];
@@ -120,7 +120,7 @@ describe("<StructureFieldsDropdown />", () => {
120
120
  };
121
121
  const component = render(
122
122
  <StructureFieldsDropdown {...props} />,
123
- renderOpts
123
+ renderOpts,
124
124
  );
125
125
  const { container } = component;
126
126
  const expectedOptions = ["id", "subscription_id"];
@@ -142,7 +142,7 @@ describe("<StructureFieldsDropdown />", () => {
142
142
  };
143
143
  const component = render(
144
144
  <StructureFieldsDropdown {...props} />,
145
- renderOpts
145
+ renderOpts,
146
146
  );
147
147
  const { container } = component;
148
148
  const expectedOptions = ["recipient_ids", "recipient_ids (To real string)"];
@@ -167,7 +167,7 @@ describe("<StructureFieldsDropdown />", () => {
167
167
  };
168
168
  const component = render(
169
169
  <StructureFieldsDropdown {...props} />,
170
- renderOpts
170
+ renderOpts,
171
171
  );
172
172
  const { container } = component;
173
173
  const expectedOptions = [
@@ -34,12 +34,12 @@ const { useWebContext } = require("@truedat/core/webContext");
34
34
  const {
35
35
  useTemplateRelations,
36
36
  } = require("@truedat/df/hooks/useTemplateRelations");
37
+ const { useGrantRequestableUsers } = require("@truedat/auth/hooks/useUsers");
38
+ const { useDispatch } = require("react-redux");
37
39
  const {
38
40
  useCheckoutGrantRequest,
39
41
  } = require("../../hooks/useCheckoutGrantRequest");
40
42
  const { useTemplatesByIds } = require("../../hooks/useTemplatesByIds");
41
- const { useGrantRequestableUsers } = require("@truedat/auth/hooks/useUsers");
42
- const { useDispatch } = require("react-redux");
43
43
 
44
44
  const grantRequestsCartWithModification = {
45
45
  template: null,
@@ -44,7 +44,7 @@ describe("<StructureGrantCartInformation />", () => {
44
44
  it("matches the latest snapshot", async () => {
45
45
  const rendered = render(
46
46
  <StructureGrantCartInformation {...props} />,
47
- renderOpts
47
+ renderOpts,
48
48
  );
49
49
  await waitForLoad(rendered);
50
50
  expect(rendered.container).toMatchSnapshot();
@@ -20,7 +20,7 @@ jest.mock("@truedat/auth/hooks/useUsers", () => ({
20
20
  },
21
21
  ],
22
22
  },
23
- })
23
+ }),
24
24
  ),
25
25
  })),
26
26
  }));
@@ -35,7 +35,7 @@ describe("<StructureGrantCartUserSelector />", () => {
35
35
  it("matches the latest snapshot", async () => {
36
36
  const rendered = render(
37
37
  <StructureGrantCartUserSelector query="abc" />,
38
- defaultRenderOpts
38
+ defaultRenderOpts,
39
39
  );
40
40
  await waitForLoad(rendered);
41
41
  expect(rendered.container).toMatchSnapshot();
@@ -49,7 +49,7 @@ describe("<StructureGrantCartUserSelector />", () => {
49
49
  data: {
50
50
  data: [],
51
51
  },
52
- })
52
+ }),
53
53
  ),
54
54
  }));
55
55
  const renderOpts = {
@@ -69,7 +69,7 @@ describe("<StructureGrantCartUserSelector />", () => {
69
69
 
70
70
  const rendered = render(
71
71
  <StructureGrantCartUserSelector query="abc" />,
72
- renderOpts
72
+ renderOpts,
73
73
  );
74
74
  await waitForLoad(rendered);
75
75
  expect(rendered.container).toMatchSnapshot();
@@ -121,7 +121,7 @@ describe("<StructureGrantDropdown />", () => {
121
121
 
122
122
  fireEvent.mouseOver(await rendered.findByRole("listbox"));
123
123
  expect(
124
- await rendered.findByText(/structure.grant.has_grant/i)
124
+ await rendered.findByText(/structure.grant.has_grant/i),
125
125
  ).toBeInTheDocument();
126
126
  expect(await rendered.findByText("2022-08-25")).toBeInTheDocument();
127
127
  expect(await rendered.findByText("bar")).toBeInTheDocument();
@@ -144,8 +144,8 @@ describe("<StructureGrantDropdown />", () => {
144
144
 
145
145
  await user.click(
146
146
  await rendered.findByText(
147
- /grant.actions.viewrequest.confirmation.header/i
148
- )
147
+ /grant.actions.viewrequest.confirmation.header/i,
148
+ ),
149
149
  );
150
150
 
151
151
  expect(mockHistory).toHaveBeenCalledWith("/grantRequests/8");
@@ -36,7 +36,7 @@ describe("<StructureGrantListButton />", () => {
36
36
  <SearchContextWrapper props={searchProps}>
37
37
  <StructureGrantListButton structure={structure} />
38
38
  </SearchContextWrapper>,
39
- renderOpts
39
+ renderOpts,
40
40
  );
41
41
  expect(container).toMatchSnapshot();
42
42
  });
@@ -46,7 +46,7 @@ describe("<StructureGrantListButton />", () => {
46
46
  <SearchContextWrapper props={searchProps}>
47
47
  <StructureGrantListButton structure={{ ...structure, id: 1 }} />
48
48
  </SearchContextWrapper>,
49
- renderOpts
49
+ renderOpts,
50
50
  );
51
51
  expect(container).toMatchSnapshot();
52
52
  });
@@ -66,7 +66,7 @@ describe("<StructureGrantListButton />", () => {
66
66
  }}
67
67
  />
68
68
  </SearchContextWrapper>,
69
- renderOpts
69
+ renderOpts,
70
70
  );
71
71
  expect(container).toMatchSnapshot();
72
72
  });
@@ -78,7 +78,7 @@ describe("<StructureGrantListButton />", () => {
78
78
  structure={{ ...structure, my_grant_request: { status: "pending" } }}
79
79
  />
80
80
  </SearchContextWrapper>,
81
- renderOpts
81
+ renderOpts,
82
82
  );
83
83
  expect(container).toMatchSnapshot();
84
84
  });
@@ -46,7 +46,7 @@ describe("<StructureGrantSummaryButton />", () => {
46
46
 
47
47
  const { container, queryByText } = render(
48
48
  <StructureGrantSummaryButton />,
49
- renderOpts
49
+ renderOpts,
50
50
  );
51
51
 
52
52
  await waitFor(() => {
@@ -63,7 +63,7 @@ describe("<StructureGrantSummaryButton />", () => {
63
63
 
64
64
  const { container, queryByText } = render(
65
65
  <StructureGrantSummaryButton />,
66
- renderOpts
66
+ renderOpts,
67
67
  );
68
68
  await waitFor(() => {
69
69
  expect(queryByText(/lazy/i)).not.toBeInTheDocument();
@@ -79,7 +79,7 @@ describe("<StructureGrantSummaryButton />", () => {
79
79
 
80
80
  const { container, queryByText } = render(
81
81
  <StructureGrantSummaryButton />,
82
- renderOpts
82
+ renderOpts,
83
83
  );
84
84
  await waitFor(() => {
85
85
  expect(queryByText(/lazy/i)).not.toBeInTheDocument();
@@ -95,7 +95,7 @@ describe("<StructureGrantSummaryButton />", () => {
95
95
 
96
96
  const { container, getByRole, queryByText } = render(
97
97
  <StructureGrantSummaryButton />,
98
- renderOpts
98
+ renderOpts,
99
99
  );
100
100
  await waitFor(() => {
101
101
  expect(queryByText(/lazy/i)).not.toBeInTheDocument();
@@ -111,7 +111,7 @@ describe("<StructureGrantSummaryButton />", () => {
111
111
 
112
112
  const { container, getByRole, queryByText } = render(
113
113
  <StructureGrantSummaryButton />,
114
- renderOpts
114
+ renderOpts,
115
115
  );
116
116
  await waitFor(() => {
117
117
  expect(queryByText(/lazy/i)).not.toBeInTheDocument();
@@ -28,7 +28,7 @@ describe("<StructureItem />", () => {
28
28
 
29
29
  it("matches the latest snapshot with alias", async () => {
30
30
  const rendered = render(
31
- <DefaultStructureItem id={id} name={name} alias="alias" />
31
+ <DefaultStructureItem id={id} name={name} alias="alias" />,
32
32
  );
33
33
  await waitForLoad(rendered);
34
34
  expect(rendered.container).toMatchSnapshot();
@@ -40,7 +40,7 @@ describe("<StructureItem />", () => {
40
40
 
41
41
  expect(rendered.container.querySelector("a")).toHaveAttribute(
42
42
  "href",
43
- "/structures/1"
43
+ "/structures/1",
44
44
  );
45
45
  });
46
46
 
@@ -55,7 +55,7 @@ describe("<StructureItem />", () => {
55
55
 
56
56
  it("renders as an anchor tag if active is true", async () => {
57
57
  const rendered = render(
58
- <StructureItem id={id} name={name} active={true} />
58
+ <StructureItem id={id} name={name} active={true} />,
59
59
  );
60
60
  await waitForLoad(rendered);
61
61
 
@@ -33,8 +33,6 @@ const renderOpts = {
33
33
  },
34
34
  };
35
35
 
36
-
37
-
38
36
  describe("<StructureMetadata />", () => {
39
37
  beforeEach(() => {
40
38
  useQuery.mockReturnValue({
@@ -42,8 +40,8 @@ describe("<StructureMetadata />", () => {
42
40
  error: null,
43
41
  data: {
44
42
  dataStructureVersion: {
45
- metadata: structureMetadata
46
- }
43
+ metadata: structureMetadata,
44
+ },
47
45
  },
48
46
  });
49
47
  });
@@ -21,7 +21,7 @@ describe("<StructureNavClassified />", () => {
21
21
  const renderOpts = { state: { structure: structure1 } };
22
22
  const { container } = render(
23
23
  <StructureNavClassified {...props} />,
24
- renderOpts
24
+ renderOpts,
25
25
  );
26
26
  expect(container).toMatchSnapshot();
27
27
  });
@@ -40,29 +40,31 @@ describe("<StructureNoteActions />", () => {
40
40
  await waitForLoad(rendered);
41
41
 
42
42
  expect(
43
- (await rendered.findByText(/deleted/i)).closest(".item.td-icon-text-control")
43
+ (await rendered.findByText(/deleted/i)).closest(
44
+ ".item.td-icon-text-control",
45
+ ),
44
46
  ).toBeInTheDocument();
45
47
  expect(
46
48
  rendered.container.querySelector(
47
- ".item.td-icon-text-control .red.trash.alternate.outline.icon"
48
- )
49
+ ".item.td-icon-text-control .red.trash.alternate.outline.icon",
50
+ ),
49
51
  ).toBeInTheDocument();
50
52
 
51
53
  await user.click(await rendered.findByRole("listbox"));
52
54
  expect(await rendered.findByRole("listbox")).toHaveAttribute(
53
55
  "aria-expanded",
54
- "true"
56
+ "true",
55
57
  );
56
58
 
57
59
  const deleteOption = rendered.container.querySelector(
58
- ".item.td-icon-text-control"
60
+ ".item.td-icon-text-control",
59
61
  );
60
62
  expect(deleteOption).toBeInTheDocument();
61
63
  await user.click(deleteOption);
62
64
  expect(doStructureNoteAction).not.toHaveBeenCalled();
63
65
  expect(await rendered.findByRole("listbox")).toHaveAttribute(
64
66
  "aria-expanded",
65
- "false"
67
+ "false",
66
68
  );
67
69
 
68
70
  await user.click(await rendered.findByText(/yes/i));
@@ -78,7 +80,7 @@ describe("<StructureNoteActions />", () => {
78
80
  method: "method",
79
81
  },
80
82
  dataStructureId: 1,
81
- })
83
+ }),
82
84
  );
83
85
  });
84
86
 
@@ -103,17 +105,17 @@ describe("<StructureNoteActions />", () => {
103
105
  await user.click(await rendered.findByRole("listbox"));
104
106
  expect(await rendered.findByRole("listbox")).toHaveAttribute(
105
107
  "aria-expanded",
106
- "true"
108
+ "true",
107
109
  );
108
110
 
109
111
  const deleteOption = rendered.container.querySelector(
110
- ".item.td-icon-text-control"
112
+ ".item.td-icon-text-control",
111
113
  );
112
114
  expect(deleteOption).toBeInTheDocument();
113
115
  await user.click(deleteOption);
114
116
  expect(await rendered.findByRole("listbox")).toHaveAttribute(
115
117
  "aria-expanded",
116
- "false"
118
+ "false",
117
119
  );
118
120
 
119
121
  await user.click(await rendered.findByLabelText("modal-negative-action"));
@@ -121,7 +123,7 @@ describe("<StructureNoteActions />", () => {
121
123
  expect(doStructureNoteAction).not.toHaveBeenCalled();
122
124
  expect(await rendered.findByRole("listbox")).toHaveAttribute(
123
125
  "aria-expanded",
124
- "false"
126
+ "false",
125
127
  );
126
128
  });
127
129
 
@@ -155,7 +157,7 @@ describe("<StructureNoteActions />", () => {
155
157
  method: "PATCH",
156
158
  },
157
159
  dataStructureId: 1,
158
- })
160
+ }),
159
161
  );
160
162
  });
161
163
 
@@ -187,17 +189,17 @@ describe("<StructureNoteActions />", () => {
187
189
  expect(
188
190
  (await rendered.findByText(/edited/i))
189
191
  .closest(".item")
190
- .querySelector(".pencil.alternate.icon")
192
+ .querySelector(".pencil.alternate.icon"),
191
193
  ).toBeInTheDocument();
192
194
  expect(
193
195
  (await rendered.findByText(/published/i))
194
196
  .closest(".item")
195
- .querySelector(".share.square.icon")
197
+ .querySelector(".share.square.icon"),
196
198
  ).toBeInTheDocument();
197
199
  expect(
198
200
  (await rendered.findByText(/pending_approval/i))
199
201
  .closest(".item")
200
- .querySelector(".clipboard.check.icon")
202
+ .querySelector(".clipboard.check.icon"),
201
203
  ).toBeInTheDocument();
202
204
  });
203
205
  });