@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
@@ -29,11 +29,11 @@ describe("<StructureTagForm />", () => {
29
29
 
30
30
  await waitFor(() =>
31
31
  expect(
32
- rendered.getByRole("button", { name: /save/i })
33
- ).toBeInTheDocument()
32
+ rendered.getByRole("button", { name: /save/i }),
33
+ ).toBeInTheDocument(),
34
34
  );
35
35
  expect(
36
- rendered.queryByRole("button", { name: /delete/i })
36
+ rendered.queryByRole("button", { name: /delete/i }),
37
37
  ).not.toBeInTheDocument();
38
38
  expect(rendered.container).toMatchSnapshot();
39
39
  });
@@ -45,13 +45,13 @@ describe("<StructureTagForm />", () => {
45
45
 
46
46
  await waitFor(() =>
47
47
  expect(
48
- rendered.getByRole("button", { name: /save/i })
49
- ).toBeInTheDocument()
48
+ rendered.getByRole("button", { name: /save/i }),
49
+ ).toBeInTheDocument(),
50
50
  );
51
51
  await waitFor(() =>
52
52
  expect(
53
- rendered.getByRole("button", { name: /delete/i })
54
- ).toBeInTheDocument()
53
+ rendered.getByRole("button", { name: /delete/i }),
54
+ ).toBeInTheDocument(),
55
55
  );
56
56
  expect(rendered.container).toMatchSnapshot();
57
57
  });
@@ -63,7 +63,7 @@ describe("<StructureTagForm />", () => {
63
63
  await waitForLoad(rendered);
64
64
 
65
65
  await waitFor(() =>
66
- expect(rendered.getByRole("button", { name: /save/i })).toBeEnabled()
66
+ expect(rendered.getByRole("button", { name: /save/i })).toBeEnabled(),
67
67
  );
68
68
  });
69
69
 
@@ -74,7 +74,7 @@ describe("<StructureTagForm />", () => {
74
74
  await waitForLoad(rendered);
75
75
 
76
76
  await waitFor(() =>
77
- expect(rendered.getByRole("button", { name: /save/i })).toBeDisabled()
77
+ expect(rendered.getByRole("button", { name: /save/i })).toBeDisabled(),
78
78
  );
79
79
  });
80
80
 
@@ -86,13 +86,13 @@ describe("<StructureTagForm />", () => {
86
86
 
87
87
  await waitFor(() =>
88
88
  expect(
89
- rendered.getByRole("option", { name: /tag2/i })
90
- ).toBeInTheDocument()
89
+ rendered.getByRole("option", { name: /tag2/i }),
90
+ ).toBeInTheDocument(),
91
91
  );
92
92
  await waitFor(() =>
93
93
  expect(
94
- rendered.getByRole("option", { name: /desc1/i })
95
- ).toBeInTheDocument()
94
+ rendered.getByRole("option", { name: /desc1/i }),
95
+ ).toBeInTheDocument(),
96
96
  );
97
97
  });
98
98
 
@@ -116,12 +116,12 @@ describe("<StructureTagForm />", () => {
116
116
 
117
117
  await user.type(
118
118
  await rendered.findByLabelText(/structuretag.comment/i),
119
- "bar"
119
+ "bar",
120
120
  );
121
121
  await user.click(await rendered.findByLabelText(/structuretag.inherit/i));
122
122
 
123
123
  await waitFor(() =>
124
- expect(rendered.getByRole("button", { name: /save/i })).toBeEnabled()
124
+ expect(rendered.getByRole("button", { name: /save/i })).toBeEnabled(),
125
125
  );
126
126
 
127
127
  await user.click(rendered.getByRole("button", { name: /save/i }));
@@ -145,12 +145,12 @@ describe("<StructureTagForm />", () => {
145
145
  const user = userEvent.setup({ delay: null });
146
146
 
147
147
  await waitFor(() =>
148
- expect(rendered.getByRole("button", { name: /delete/i })).toBeEnabled()
148
+ expect(rendered.getByRole("button", { name: /delete/i })).toBeEnabled(),
149
149
  );
150
150
 
151
151
  await user.type(
152
152
  await rendered.findByLabelText(/structuretag.comment/i),
153
- "bar"
153
+ "bar",
154
154
  );
155
155
  await user.click(rendered.getByRole("button", { name: /delete/i }));
156
156
 
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { render, waitForLoad } from "@truedat/test/render";
3
- import StructureTypesRoutes from "../StructureTypesRoutes";
4
3
  import { useSelector } from "react-redux";
4
+ import StructureTypesRoutes from "../StructureTypesRoutes";
5
5
 
6
6
  // Mock all components
7
7
  jest.mock("../StructureTypes", () => () => <div>StructureTypes</div>);
@@ -22,7 +22,7 @@ describe("<StructureTypesRoutes />", () => {
22
22
  selector({
23
23
  structureType: null,
24
24
  structureTypeLoading: false,
25
- })
25
+ }),
26
26
  );
27
27
  });
28
28
 
@@ -37,7 +37,7 @@ describe("<StructureTypesRoutes />", () => {
37
37
  selector({
38
38
  structureType: null,
39
39
  structureTypeLoading: true,
40
- })
40
+ }),
41
41
  );
42
42
  const rendered = render(<StructureTypesRoutes />, {
43
43
  routes: ["/structure_types/123/edit"],
@@ -51,7 +51,7 @@ describe("<StructureTypesRoutes />", () => {
51
51
  selector({
52
52
  structureType: { id: "123" },
53
53
  structureTypeLoading: false,
54
- })
54
+ }),
55
55
  );
56
56
  const rendered = render(<StructureTypesRoutes />, {
57
57
  routes: ["/structure_types/123/edit"],
@@ -26,7 +26,6 @@ jest.mock("@apollo/client", () => ({
26
26
  })),
27
27
  }));
28
28
 
29
-
30
29
  describe("<StructureVersions />", () => {
31
30
  it("matches the latest snapshot", async () => {
32
31
  const versions = [
@@ -47,7 +47,7 @@ describe("<StructuresBulkUpdate />", () => {
47
47
  const rendered = render(<StructuresBulkUpdate />, thisRenderOpts);
48
48
  await waitForLoad(rendered);
49
49
  expect(
50
- rendered.getByText(/bulkUpdateStructures.no.structures.header/i)
50
+ rendered.getByText(/bulkUpdateStructures.no.structures.header/i),
51
51
  ).toBeInTheDocument();
52
52
  expect(rendered.container).toMatchSnapshot();
53
53
  });
@@ -77,7 +77,7 @@ describe("<StructuresBulkUpdate />", () => {
77
77
 
78
78
  expect(rendered.container).toMatchSnapshot();
79
79
  expect(
80
- rendered.getByText(/bulk.confirmation.update.publish/i)
80
+ rendered.getByText(/bulk.confirmation.update.publish/i),
81
81
  ).toBeInTheDocument();
82
82
 
83
83
  await user.click(rendered.getByText(/bulk.confirmation.update.publish/i));
@@ -111,7 +111,7 @@ describe("<StructuresBulkUpdate />", () => {
111
111
 
112
112
  expect(rendered.container).toMatchSnapshot();
113
113
  expect(
114
- rendered.queryByText(/bulk.confirmation.update.publish/i)
114
+ rendered.queryByText(/bulk.confirmation.update.publish/i),
115
115
  ).not.toBeInTheDocument();
116
116
 
117
117
  await user.click(rendered.getByText(/update/i));
@@ -27,7 +27,7 @@ describe("<StructuresDownloadOption />", () => {
27
27
  <SearchContextWrapper props={searchProps}>
28
28
  <StructuresDownloadOption {...{ setDownloading }} />
29
29
  </SearchContextWrapper>,
30
- renderOpts
30
+ renderOpts,
31
31
  );
32
32
 
33
33
  expect(getByRole("option")).toHaveAttribute("aria-disabled", "false");
@@ -46,7 +46,7 @@ describe("<StructuresDownloadOption />", () => {
46
46
  <SearchContextWrapper props={searchProps}>
47
47
  <StructuresDownloadOption {...{ setDownloading }} />
48
48
  </SearchContextWrapper>,
49
- renderOpts
49
+ renderOpts,
50
50
  );
51
51
  expect(getByRole("option")).toHaveAttribute("aria-disabled", "false");
52
52
  expect(container).toMatchSnapshot();
@@ -62,7 +62,7 @@ describe("<StructuresDownloadOption />", () => {
62
62
  <SearchContextWrapper props={searchProps}>
63
63
  <StructuresDownloadOption {...{ setDownloading }} />
64
64
  </SearchContextWrapper>,
65
- renderOpts
65
+ renderOpts,
66
66
  );
67
67
  expect(getByRole("option")).toHaveAttribute("aria-disabled", "true");
68
68
  expect(queryByText("popup")).toBeTruthy();
@@ -25,7 +25,7 @@ describe("<StructuresEditableDownloadOption />", () => {
25
25
  <SearchContextWrapper props={searchProps}>
26
26
  <StructuresEditableDownloadOption {...{ setDownloading }} />
27
27
  </SearchContextWrapper>,
28
- renderOpts
28
+ renderOpts,
29
29
  );
30
30
  expect(container).toMatchSnapshot();
31
31
  expect(getByRole("option")).toHaveAttribute("aria-disabled", "false");
@@ -42,7 +42,7 @@ describe("<StructuresEditableDownloadOption />", () => {
42
42
  <SearchContextWrapper props={searchProps}>
43
43
  <StructuresEditableDownloadOption {...{ setDownloading }} />
44
44
  </SearchContextWrapper>,
45
- renderOpts
45
+ renderOpts,
46
46
  );
47
47
  expect(getByRole("option")).toHaveAttribute("aria-disabled", "true");
48
48
  expect(queryByText("popup")).toBeTruthy();
@@ -73,14 +73,14 @@ describe("<StructuresGrantRequestView />", () => {
73
73
  it("Clicking a grant request button triggers action", async () => {
74
74
  const { container, queryByText } = render(
75
75
  <StructuresGrantRequestView />,
76
- renderOpts
76
+ renderOpts,
77
77
  );
78
78
  await waitFor(() => expect(queryByText(/lazy/i)).not.toBeInTheDocument());
79
79
  await waitFor(() => {
80
80
  expect(container.querySelector(".loading")).toBeNull();
81
81
  });
82
82
  await waitFor(() =>
83
- expect(container.querySelector(".loader")).not.toBeInTheDocument()
83
+ expect(container.querySelector(".loader")).not.toBeInTheDocument(),
84
84
  );
85
85
  await waitFor(() => expect(container).toMatchSnapshot());
86
86
 
@@ -36,7 +36,7 @@ describe("<StructuresLabelResults />", () => {
36
36
  const { container, findByText } = render(
37
37
  <SearchContextProvider {...searchProps}>
38
38
  <StructuresLabelResults />
39
- </SearchContextProvider>
39
+ </SearchContextProvider>,
40
40
  );
41
41
  await findByText(/structures.retrieved.results/);
42
42
  expect(container).toMatchSnapshot();
@@ -40,7 +40,7 @@ describe("<StructuresLoader />", () => {
40
40
  await waitForLoad(rendered);
41
41
 
42
42
  rendered.rerender(
43
- <StructuresLoader {...props} payload={{ "system.name.raw": "XXX" }} />
43
+ <StructuresLoader {...props} payload={{ "system.name.raw": "XXX" }} />,
44
44
  );
45
45
  expect(props.fetchStructures).toHaveBeenCalledTimes(2);
46
46
  });
@@ -42,14 +42,16 @@ describe("<StructuresOptions />", () => {
42
42
 
43
43
  it("matches the latest snapshot", async () => {
44
44
  const rendered = render(
45
- <SearchContextProvider {...searchProps}><StructuresOptions {...props} /></SearchContextProvider>
45
+ <SearchContextProvider {...searchProps}>
46
+ <StructuresOptions {...props} />
47
+ </SearchContextProvider>,
46
48
  );
47
49
  await waitForLoad(rendered);
48
50
 
49
51
  await waitFor(() =>
50
52
  expect(
51
- rendered.getByText(/structures.actions.editableDownload.tooltip/i)
52
- ).toBeInTheDocument()
53
+ rendered.getByText(/structures.actions.editableDownload.tooltip/i),
54
+ ).toBeInTheDocument(),
53
55
  );
54
56
 
55
57
  expect(rendered.container).toMatchSnapshot();
@@ -57,27 +59,31 @@ describe("<StructuresOptions />", () => {
57
59
 
58
60
  it("Dont have permissions to upload notes", async () => {
59
61
  const rendered = render(
60
- <SearchContextProvider {...searchProps}><StructuresOptions /></SearchContextProvider>
62
+ <SearchContextProvider {...searchProps}>
63
+ <StructuresOptions />
64
+ </SearchContextProvider>,
61
65
  );
62
66
  await waitForLoad(rendered);
63
67
 
64
68
  await waitFor(() =>
65
69
  expect(
66
- rendered.queryByText(/structures.actions.upload.tooltip/i)
67
- ).not.toBeInTheDocument()
70
+ rendered.queryByText(/structures.actions.upload.tooltip/i),
71
+ ).not.toBeInTheDocument(),
68
72
  );
69
73
  });
70
74
 
71
75
  it("Dont have permissions to upload domains", async () => {
72
76
  const rendered = render(
73
- <SearchContextProvider {...searchProps}><StructuresOptions /></SearchContextProvider>
77
+ <SearchContextProvider {...searchProps}>
78
+ <StructuresOptions />
79
+ </SearchContextProvider>,
74
80
  );
75
81
  await waitForLoad(rendered);
76
82
 
77
83
  await waitFor(() =>
78
84
  expect(
79
- rendered.queryByText(/structures.actions.uploadDomains.tooltip/i)
80
- ).not.toBeInTheDocument()
85
+ rendered.queryByText(/structures.actions.uploadDomains.tooltip/i),
86
+ ).not.toBeInTheDocument(),
81
87
  );
82
88
  });
83
89
  });
@@ -1,12 +1,12 @@
1
1
  import React from "react";
2
2
  import { render, waitForLoad } from "@truedat/test/render";
3
- import StructuresRoutes from "../StructuresRoutes";
4
3
  import { useAuthorized } from "@truedat/core/hooks/useAuthorized";
5
4
  import {
6
5
  STRUCTURES,
7
6
  STRUCTURE_MEMBERS_NEW,
8
7
  STRUCTURES_BULK_UPDATE,
9
8
  } from "@truedat/core/routes";
9
+ import StructuresRoutes from "../StructuresRoutes";
10
10
 
11
11
  jest.mock("@truedat/core/hooks/useAuthorized", () => ({
12
12
  useAuthorized: jest.fn(() => true),
@@ -25,7 +25,7 @@ describe("<StructuresSearchResults />", () => {
25
25
  const rendered = render(
26
26
  <SearchContextWrapper props={searchProps}>
27
27
  <StructuresSearchResults {...props} />
28
- </SearchContextWrapper>
28
+ </SearchContextWrapper>,
29
29
  );
30
30
 
31
31
  await waitForLoad(rendered);
@@ -45,7 +45,7 @@ describe("<StructuresSearchResults />", () => {
45
45
  const rendered = render(
46
46
  <SearchContextWrapper props={searchProps}>
47
47
  <StructuresSearchResults {...props} />
48
- </SearchContextWrapper>
48
+ </SearchContextWrapper>,
49
49
  );
50
50
 
51
51
  await waitForLoad(rendered);
@@ -38,7 +38,7 @@ describe("<StructuresTable />", () => {
38
38
  <SearchContext value={searchProps}>
39
39
  <StructuresTable {...props} />
40
40
  </SearchContext>,
41
- renderOpts
41
+ renderOpts,
42
42
  );
43
43
  expect(container).toMatchSnapshot();
44
44
  });
@@ -56,7 +56,7 @@ describe("<StructuresTable />", () => {
56
56
  <SearchContext value={searchProps}>
57
57
  <StructuresTable {...props} />
58
58
  </SearchContext>,
59
- renderOpts
59
+ renderOpts,
60
60
  );
61
61
  expect(container).toMatchSnapshot();
62
62
  });
@@ -74,7 +74,7 @@ describe("<StructuresTable />", () => {
74
74
  <SearchContext value={searchProps}>
75
75
  <StructuresTable {...props} />
76
76
  </SearchContext>,
77
- renderOpts
77
+ renderOpts,
78
78
  );
79
79
  expect(container).toMatchSnapshot();
80
80
  });
@@ -89,7 +89,7 @@ describe("<StructuresTable />", () => {
89
89
  <SearchContext value={searchProps}>
90
90
  <StructuresTable {...props} />
91
91
  </SearchContext>,
92
- renderOpts
92
+ renderOpts,
93
93
  );
94
94
 
95
95
  const tableHeaderCells = getAllByRole("columnheader");
@@ -105,7 +105,7 @@ describe("<StructuresTable />", () => {
105
105
  <SearchContext value={searchProps}>
106
106
  <StructuresTable {...props} />
107
107
  </SearchContext>,
108
- renderOpts
108
+ renderOpts,
109
109
  );
110
110
 
111
111
  const tableHeaderCells = getAllByRole("columnheader");
@@ -58,7 +58,7 @@ describe("<StructuresUpdateOption />", () => {
58
58
  <SearchContext value={searchProps}>
59
59
  <StructuresUpdateOption />
60
60
  </SearchContext>,
61
- renderOpts
61
+ renderOpts,
62
62
  );
63
63
  expect(container).toMatchSnapshot();
64
64
  });
@@ -74,7 +74,7 @@ describe("<StructuresUpdateOption />", () => {
74
74
  <SearchContext value={newRenderOps}>
75
75
  <StructuresUpdateOption />
76
76
  </SearchContext>,
77
- renderOpts
77
+ renderOpts,
78
78
  );
79
79
  expect(getByRole("option")).toHaveAttribute("aria-disabled");
80
80
  expect(queryByText("popup")).toBeTruthy();
@@ -21,7 +21,7 @@ describe("<StructuresUploadOption />", () => {
21
21
  };
22
22
  const { container } = render(
23
23
  <StructuresUploadOption {...props} />,
24
- renderOpts
24
+ renderOpts,
25
25
  );
26
26
  expect(container).toMatchSnapshot();
27
27
  });
@@ -30,7 +30,7 @@ describe("<StructuresUploadOption />", () => {
30
30
  const props = { canAutoPublish: true };
31
31
  const { container } = render(
32
32
  <StructuresUploadOption {...props} />,
33
- renderOpts
33
+ renderOpts,
34
34
  );
35
35
  expect(container).toMatchSnapshot();
36
36
  });
@@ -109,7 +109,7 @@ describe("<StructuresView />", () => {
109
109
  <SearchContext value={searchProps}>
110
110
  <StructuresView {...props} />
111
111
  </SearchContext>,
112
- renderOpts
112
+ renderOpts,
113
113
  );
114
114
  await waitForLoad(rendered);
115
115
 
@@ -122,7 +122,7 @@ describe("<StructuresView />", () => {
122
122
  <SearchContext value={searchProps}>
123
123
  <StructuresView {...props} />
124
124
  </SearchContext>,
125
- renderOpts
125
+ renderOpts,
126
126
  );
127
127
  await waitForLoad(rendered);
128
128
 
@@ -137,7 +137,7 @@ describe("<StructuresViewContent />", () => {
137
137
  <SearchContext value={searchProps}>
138
138
  <StructuresViewContent {...props} />
139
139
  </SearchContext>,
140
- renderOpts
140
+ renderOpts,
141
141
  );
142
142
  await waitForLoad(rendered);
143
143
 
@@ -149,10 +149,10 @@ describe("<StructuresViewContent />", () => {
149
149
  expect(
150
150
  within(tableHeaderRow).getByRole("columnheader", {
151
151
  name: "structure.name",
152
- })
152
+ }),
153
153
  ).toBeInTheDocument();
154
154
  expect(
155
- within(tableDataRow).getByRole("cell", { name: /structure1/i })
155
+ within(tableDataRow).getByRole("cell", { name: /structure1/i }),
156
156
  ).toBeInTheDocument();
157
157
  });
158
158
 
@@ -167,7 +167,7 @@ describe("<StructuresViewContent />", () => {
167
167
  <SearchContext value={newSearchProps}>
168
168
  <StructuresViewContent customView />
169
169
  </SearchContext>,
170
- renderOpts
170
+ renderOpts,
171
171
  );
172
172
  await waitForLoad(rendered);
173
173
 
@@ -87,7 +87,7 @@ describe("<SystemCards />", () => {
87
87
 
88
88
  expect(rendered.container.getElementsByTagName("img")).toHaveLength(1);
89
89
  expect(rendered.container.querySelector("img").getAttribute("src")).toMatch(
90
- imageSrc
90
+ imageSrc,
91
91
  );
92
92
  });
93
93
 
@@ -150,7 +150,7 @@ describe("<SystemCards />", () => {
150
150
  rendered
151
151
  .getByText(/foo-group/i)
152
152
  .closest(".CardGroupTitle")
153
- .parentNode.getElementsByClassName("card")
153
+ .parentNode.getElementsByClassName("card"),
154
154
  ).toHaveLength(1);
155
155
  });
156
156
  });
@@ -27,7 +27,7 @@ describe("<SystemFilteredNav />", () => {
27
27
  it("matches the latest snapshot", () => {
28
28
  const { container } = render(
29
29
  <SystemFilteredNav fnHasCatalogViewProp={jest.fn()} />,
30
- renderOpts
30
+ renderOpts,
31
31
  );
32
32
  expect(container).toMatchSnapshot();
33
33
  });
@@ -19,7 +19,7 @@ describe("<SystemStructuresLoader />", () => {
19
19
 
20
20
  await waitFor(() => {
21
21
  expect(dispatchMock).toHaveBeenCalledWith(
22
- fetchSystemStructures({ id: "1" })
22
+ fetchSystemStructures({ id: "1" }),
23
23
  );
24
24
  });
25
25
 
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
2
  import { render, waitForLoad } from "@truedat/test/render";
3
- import SystemsRoutes from "../SystemsRoutes";
4
3
  import {
5
4
  SYSTEM_STRUCTURES,
6
5
  SYSTEM_NEW,
7
6
  SYSTEM_EDIT,
8
7
  } from "@truedat/core/routes";
8
+ import SystemsRoutes from "../SystemsRoutes";
9
9
 
10
10
  jest.mock("../SystemStructures", () => () => <div>SystemStructures</div>);
11
11
  jest.mock("../SystemForm", () => () => <div>SystemForm</div>);
@@ -52,8 +52,8 @@ describe("<TagForm />", () => {
52
52
  await waitForLoad(rendered);
53
53
  await waitFor(() =>
54
54
  expect(
55
- rendered.getByRole("button", { name: /save/i })
56
- ).toBeInTheDocument()
55
+ rendered.getByRole("button", { name: /save/i }),
56
+ ).toBeInTheDocument(),
57
57
  );
58
58
  expect(rendered.container).toMatchSnapshot();
59
59
  });
@@ -65,7 +65,7 @@ describe("<TagForm />", () => {
65
65
 
66
66
  // Submit button should initially be disabled
67
67
  await waitFor(() =>
68
- expect(rendered.getByRole("button", { name: /save/i })).toBeDisabled()
68
+ expect(rendered.getByRole("button", { name: /save/i })).toBeDisabled(),
69
69
  );
70
70
 
71
71
  // Name
@@ -73,13 +73,15 @@ describe("<TagForm />", () => {
73
73
 
74
74
  // Submit button should now be enabled
75
75
  await waitFor(() =>
76
- expect(rendered.getByRole("button", { name: /save/i })).not.toBeDisabled()
76
+ expect(
77
+ rendered.getByRole("button", { name: /save/i }),
78
+ ).not.toBeDisabled(),
77
79
  );
78
80
 
79
81
  // Description
80
82
  await user.type(
81
83
  rendered.getByRole("textbox", { name: /description/i }),
82
- "bar"
84
+ "bar",
83
85
  );
84
86
 
85
87
  // Submit
@@ -1,12 +1,12 @@
1
1
  import React from "react";
2
2
  import { render, waitForLoad } from "@truedat/test/render";
3
- import { TagsRoutes } from "../TagsRoutes";
4
3
  import { useAuthorized } from "@truedat/core/hooks/useAuthorized";
5
4
  import {
6
5
  STRUCTURE_TAGS,
7
6
  STRUCTURE_TAG_EDIT,
8
7
  STRUCTURE_TAGS_NEW,
9
8
  } from "@truedat/core/routes";
9
+ import { TagsRoutes } from "../TagsRoutes";
10
10
  import { TAG_QUERY } from "../../api/queries";
11
11
 
12
12
  jest.mock("@truedat/core/hooks/useAuthorized", () => ({
@@ -69,7 +69,7 @@ describe("<Tasks />", () => {
69
69
  const rendered = render(<Tasks {...props} />, renderOpts);
70
70
  await waitForLoad(rendered);
71
71
  await waitFor(() =>
72
- expect(rendered.getByText(/processing/i)).toBeInTheDocument()
72
+ expect(rendered.getByText(/processing/i)).toBeInTheDocument(),
73
73
  );
74
74
  expect(rendered.container).toMatchSnapshot();
75
75
  });
@@ -79,13 +79,13 @@ describe("<Tasks />", () => {
79
79
  const rendered = render(<Tasks {...props} />, renderOpts);
80
80
  await waitForLoad(rendered);
81
81
  await waitFor(() =>
82
- expect(rendered.getByText(/processing/i)).toBeInTheDocument()
82
+ expect(rendered.getByText(/processing/i)).toBeInTheDocument(),
83
83
  );
84
84
 
85
85
  const user = userEvent.setup({ delay: null });
86
86
  await user.click(await rendered.findByRole("button", { name: /refresh/i }));
87
87
  await waitFor(() =>
88
- expect(rendered.getByText(/done/i)).toBeInTheDocument()
88
+ expect(rendered.getByText(/done/i)).toBeInTheDocument(),
89
89
  );
90
90
  expect(rendered.container).toMatchSnapshot();
91
91
  });
@@ -95,24 +95,24 @@ describe("<Tasks />", () => {
95
95
  const rendered = render(<Tasks {...props} />, renderOpts);
96
96
  await waitForLoad(rendered);
97
97
  await waitFor(() =>
98
- expect(rendered.getByText(/processing/i)).toBeInTheDocument()
98
+ expect(rendered.getByText(/processing/i)).toBeInTheDocument(),
99
99
  );
100
100
 
101
101
  const user = userEvent.setup({ delay: null });
102
102
  await user.click(
103
103
  await rendered.findByRole("button", {
104
104
  name: /task.reindex_all_structures/i,
105
- })
105
+ }),
106
106
  );
107
107
  await waitFor(() =>
108
- expect(props.reindexAllStructures).toHaveBeenCalledTimes(1)
108
+ expect(props.reindexAllStructures).toHaveBeenCalledTimes(1),
109
109
  );
110
110
 
111
111
  await user.click(
112
- await rendered.findByRole("button", { name: /task.reindex_all_grants/i })
112
+ await rendered.findByRole("button", { name: /task.reindex_all_grants/i }),
113
113
  );
114
114
  await waitFor(() =>
115
- expect(props.reindexAllGrants).toHaveBeenCalledTimes(1)
115
+ expect(props.reindexAllGrants).toHaveBeenCalledTimes(1),
116
116
  );
117
117
  });
118
118
 
@@ -121,7 +121,7 @@ describe("<Tasks />", () => {
121
121
  const rendered = render(<Tasks {...props} />, renderOpts);
122
122
  await waitForLoad(rendered);
123
123
  await waitFor(() =>
124
- expect(rendered.getByText(/processing/i)).toBeInTheDocument()
124
+ expect(rendered.getByText(/processing/i)).toBeInTheDocument(),
125
125
  );
126
126
 
127
127
  const user = userEvent.setup({ delay: null });
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  import { render, waitForLoad } from "@truedat/test/render";
3
- import TasksRoutes from "../TasksRoutes";
4
3
  import { useAuthorized } from "@truedat/core/hooks/useAuthorized";
5
4
  import { TASKS, TASK } from "@truedat/core/routes";
5
+ import TasksRoutes from "../TasksRoutes";
6
6
 
7
7
  jest.mock("@truedat/core/hooks/useAuthorized", () => ({
8
8
  useAuthorized: jest.fn(() => true),