@truedat/dd 8.6.7 → 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
@@ -17,7 +17,7 @@ jest.mock("../../hooks/useBucketStructures", () => {
17
17
  const elasticSearchMock = (collection, searchValue) => {
18
18
  const normalizedSearchValue = lowerDeburrTrim(searchValue);
19
19
  return _.filter((structure) =>
20
- _.contains(normalizedSearchValue)(lowerDeburrTrim(structure.name))
20
+ _.contains(normalizedSearchValue)(lowerDeburrTrim(structure.name)),
21
21
  )(collection);
22
22
  };
23
23
 
@@ -75,7 +75,7 @@ describe("<FilteredNav />", () => {
75
75
  it("FilterNavLoader loads from useBucketStructures and shows structures", async () => {
76
76
  const rendered = render(
77
77
  <FilteredNavLoader navFilter={navFilter} />,
78
- renderOpts
78
+ renderOpts,
79
79
  );
80
80
  await waitForLoad(rendered);
81
81
 
@@ -86,7 +86,7 @@ describe("<FilteredNav />", () => {
86
86
  it("StructureSearch: one element matching", async () => {
87
87
  const rendered = render(
88
88
  <FilteredNavLoader navFilter={navFilter} />,
89
- renderOpts
89
+ renderOpts,
90
90
  );
91
91
  await waitForLoad(rendered);
92
92
  const user = userEvent.setup({ delay: null });
@@ -105,7 +105,7 @@ describe("<FilteredNav />", () => {
105
105
  it("StructureSearch: no elements matching", async () => {
106
106
  const rendered = render(
107
107
  <FilteredNavLoader navFilter={navFilter} />,
108
- renderOpts
108
+ renderOpts,
109
109
  );
110
110
  await waitForLoad(rendered);
111
111
  const user = userEvent.setup({ delay: null });
@@ -90,12 +90,12 @@ describe("<Grant />", () => {
90
90
 
91
91
  const user = userEvent.setup({ delay: null });
92
92
  await user.click(
93
- await rendered.findByText(/grant.actions.markpendingremoval.button/i)
93
+ await rendered.findByText(/grant.actions.markpendingremoval.button/i),
94
94
  );
95
95
  expect(
96
96
  await rendered.findByText(
97
- /grant.actions.markpendingremoval.confirmation.header/i
98
- )
97
+ /grant.actions.markpendingremoval.confirmation.header/i,
98
+ ),
99
99
  ).toBeInTheDocument();
100
100
 
101
101
  await user.click(await rendered.findByText(/yes/i));
@@ -121,7 +121,7 @@ describe("<Grant />", () => {
121
121
  const rendered = render(<Grant {...updatedProps} />);
122
122
  await waitForLoad(rendered);
123
123
  expect(
124
- rendered.queryByText(/grantrequest.header.update/i)
124
+ rendered.queryByText(/grantrequest.header.update/i),
125
125
  ).not.toBeInTheDocument();
126
126
  });
127
127
  });
@@ -29,7 +29,7 @@ describe("<GrantApprovalRuleConditions />", () => {
29
29
  };
30
30
  const rendered = render(
31
31
  <GrantApprovalRuleConditions {...props} />,
32
- renderOpts
32
+ renderOpts,
33
33
  );
34
34
  expect(rendered.container).toMatchSnapshot();
35
35
  });
@@ -41,7 +41,7 @@ describe("<GrantApprovalRuleConditions />", () => {
41
41
  };
42
42
  const rendered = render(
43
43
  <GrantApprovalRuleConditions {...props} />,
44
- renderOpts
44
+ renderOpts,
45
45
  );
46
46
  expect(rendered.container).toMatchSnapshot();
47
47
  });
@@ -52,7 +52,7 @@ describe("<GrantApprovalRuleConditions />", () => {
52
52
  };
53
53
  const rendered = render(
54
54
  <GrantApprovalRuleConditions {...props} />,
55
- renderOpts
55
+ renderOpts,
56
56
  );
57
57
  expect(rendered.container).toMatchSnapshot();
58
58
  });
@@ -65,7 +65,7 @@ describe("<GrantApprovalRuleConditions />", () => {
65
65
  };
66
66
  const rendered = render(
67
67
  <GrantApprovalRuleConditions {...props} />,
68
- renderOpts
68
+ renderOpts,
69
69
  );
70
70
  expect(rendered.container).toMatchSnapshot();
71
71
  });
@@ -78,7 +78,7 @@ describe("<GrantApprovalRuleConditions />", () => {
78
78
  };
79
79
  const rendered = render(
80
80
  <GrantApprovalRuleConditions {...props} />,
81
- renderOpts
81
+ renderOpts,
82
82
  );
83
83
 
84
84
  const user = userEvent.setup({ delay: null });
@@ -107,7 +107,7 @@ describe("<GrantApprovalRuleConditions />", () => {
107
107
  };
108
108
  const rendered = render(
109
109
  <GrantApprovalRuleConditions {...props} />,
110
- renderOpts
110
+ renderOpts,
111
111
  );
112
112
 
113
113
  const user = userEvent.setup({ delay: null });
@@ -27,7 +27,7 @@ describe("<GrantApprovalRuleDeleteButton />", () => {
27
27
 
28
28
  await user.click(rendered.getByRole("button", { name: /delete/i }));
29
29
  await user.click(
30
- rendered.getByRole("button", { name: /modal-affirmative-action/i })
30
+ rendered.getByRole("button", { name: /modal-affirmative-action/i }),
31
31
  );
32
32
 
33
33
  expect(dispatch).toHaveBeenLastCalledWith({
@@ -47,7 +47,7 @@ describe("<GrantApprovalRuleDeleteButton />", () => {
47
47
 
48
48
  await user.click(rendered.getByRole("button", { name: /delete/i }));
49
49
  await user.click(
50
- rendered.getByRole("button", { name: /modal-negative-action/i })
50
+ rendered.getByRole("button", { name: /modal-negative-action/i }),
51
51
  );
52
52
 
53
53
  expect(dispatch).toHaveBeenCalledTimes(0);
@@ -69,20 +69,20 @@ describe("<GrantApprovalRuleForm />", () => {
69
69
  const user = userEvent.setup({ delay: null });
70
70
 
71
71
  await waitFor(() =>
72
- expect(rendered.getByRole("button", { name: /save/i })).toBeDisabled()
72
+ expect(rendered.getByRole("button", { name: /save/i })).toBeDisabled(),
73
73
  );
74
74
 
75
75
  await user.type(
76
76
  rendered.getByRole("textbox", { name: /grantapprovalrule.name/i }),
77
- "rule_name"
77
+ "rule_name",
78
78
  );
79
79
 
80
80
  await user.click(await rendered.findByText(/foodomain/i));
81
81
 
82
82
  await waitFor(() =>
83
83
  expect(
84
- rendered.getByRole("textbox", { name: /comment/i })
85
- ).not.toBeDisabled()
84
+ rendered.getByRole("textbox", { name: /comment/i }),
85
+ ).not.toBeDisabled(),
86
86
  );
87
87
 
88
88
  await user.click(await rendered.findByText(/role1/i));
@@ -90,11 +90,11 @@ describe("<GrantApprovalRuleForm />", () => {
90
90
 
91
91
  await user.type(
92
92
  rendered.getByRole("textbox", { name: /comment/i }),
93
- "rule_comment"
93
+ "rule_comment",
94
94
  );
95
95
 
96
96
  await user.click(
97
- await rendered.findByText(/conditions.field_prefix.request/i)
97
+ await rendered.findByText(/conditions.field_prefix.request/i),
98
98
  );
99
99
  await user.type(rendered.getByRole("textbox", { name: /field/i }), "field");
100
100
  await user.click(await rendered.findByText("eq"));
@@ -102,7 +102,9 @@ describe("<GrantApprovalRuleForm />", () => {
102
102
  await user.click(within(rendered.getByRole("combobox")).getByText(/add/i));
103
103
 
104
104
  await waitFor(() =>
105
- expect(rendered.getByRole("button", { name: /save/i })).not.toBeDisabled()
105
+ expect(
106
+ rendered.getByRole("button", { name: /save/i }),
107
+ ).not.toBeDisabled(),
106
108
  );
107
109
 
108
110
  await user.click(rendered.getByRole("button", { name: /save/i }));
@@ -53,7 +53,7 @@ describe("<GrantApprovalRules />", () => {
53
53
  it("matches the last snapshot", async () => {
54
54
  const { container, queryByText } = render(
55
55
  <GrantApprovalRules />,
56
- renderOpts(grantApprovalRules)
56
+ renderOpts(grantApprovalRules),
57
57
  );
58
58
 
59
59
  await waitFor(() => {
@@ -66,7 +66,7 @@ describe("<GrantApprovalRules />", () => {
66
66
  it("matches snapshot for empty data", async () => {
67
67
  const { container, queryByText } = render(
68
68
  <GrantApprovalRules />,
69
- renderOpts(emptyGrantApprovalRules)
69
+ renderOpts(emptyGrantApprovalRules),
70
70
  );
71
71
 
72
72
  await waitFor(() => {
@@ -79,7 +79,7 @@ describe("<GrantApprovalRules />", () => {
79
79
  it("renders ApprovalRule name as Link", async () => {
80
80
  const { container, queryByText, getByText } = render(
81
81
  <GrantApprovalRules />,
82
- renderOpts(grantApprovalRules)
82
+ renderOpts(grantApprovalRules),
83
83
  );
84
84
 
85
85
  await waitFor(() => {
@@ -15,11 +15,11 @@ describe("<GrantRemoval />", () => {
15
15
  <GrantRemoval
16
16
  grant={{ ...grant, pending_removal: false }}
17
17
  actions={actions_with_request_cancel}
18
- />
18
+ />,
19
19
  );
20
20
  await waitForLoad(rendered);
21
21
  expect(
22
- rendered.queryByText(/grant.actions.markPendingRemoval.button/i)
22
+ rendered.queryByText(/grant.actions.markPendingRemoval.button/i),
23
23
  ).toBeInTheDocument();
24
24
  });
25
25
 
@@ -28,11 +28,11 @@ describe("<GrantRemoval />", () => {
28
28
  <GrantRemoval
29
29
  grant={{ ...grant, pending_removal: true }}
30
30
  actions={actions_with_request_cancel}
31
- />
31
+ />,
32
32
  );
33
33
  await waitForLoad(rendered);
34
34
  expect(
35
- rendered.queryByText(/grant.actions.unmarkPendingRemoval.button/i)
35
+ rendered.queryByText(/grant.actions.unmarkPendingRemoval.button/i),
36
36
  ).toBeInTheDocument();
37
37
  });
38
38
  });
@@ -19,18 +19,18 @@ describe("<GrantRemovalDirectButton />", () => {
19
19
  actions={{ manage_grant_removal: {} }}
20
20
  requestGrantRemoval={requestGrantRemoval}
21
21
  previousStructureQuery={{}}
22
- />
22
+ />,
23
23
  );
24
24
  await waitForLoad(rendered);
25
25
  const user = userEvent.setup({ delay: null });
26
26
 
27
27
  await user.click(
28
- await rendered.findByText(/grant.actions.markpendingremoval.button/i)
28
+ await rendered.findByText(/grant.actions.markpendingremoval.button/i),
29
29
  );
30
30
  expect(
31
31
  await rendered.findByText(
32
- /grant.actions.markpendingremoval.confirmation.header/i
33
- )
32
+ /grant.actions.markpendingremoval.confirmation.header/i,
33
+ ),
34
34
  ).toBeInTheDocument();
35
35
 
36
36
  await user.click(await rendered.findByText(/confirmation.yes/i));
@@ -53,18 +53,18 @@ describe("<GrantRemovalDirectButton />", () => {
53
53
  actions={{ manage_grant_removal: {} }}
54
54
  onConfirm={onConfirm}
55
55
  previousStructureQuery={{}}
56
- />
56
+ />,
57
57
  );
58
58
  await waitForLoad(rendered);
59
59
  const user = userEvent.setup({ delay: null });
60
60
 
61
61
  await user.click(
62
- await rendered.findByText(/grant.actions.markpendingremoval.button/i)
62
+ await rendered.findByText(/grant.actions.markpendingremoval.button/i),
63
63
  );
64
64
  expect(
65
65
  await rendered.findByText(
66
- /grant.actions.markpendingremoval.confirmation.header/i
67
- )
66
+ /grant.actions.markpendingremoval.confirmation.header/i,
67
+ ),
68
68
  ).toBeInTheDocument();
69
69
 
70
70
  await user.click(await rendered.findByText(/confirmation.yes/i));
@@ -45,7 +45,7 @@ describe("<GrantRemovalWorkflow />", () => {
45
45
  grant={{ ...grant, pending_removal: false }}
46
46
  actions={{}}
47
47
  />,
48
- { mocks: [latestGrantRequestByGrantMock(latestRequestVars, null)] }
48
+ { mocks: [latestGrantRequestByGrantMock(latestRequestVars, null)] },
49
49
  );
50
50
  await waitForLoad(rendered);
51
51
  expect(await rendered.findByRole("button")).toHaveClass("orange");
@@ -57,7 +57,7 @@ describe("<GrantRemovalWorkflow />", () => {
57
57
  grant={{ ...grant, pending_removal: false }}
58
58
  actions={{}}
59
59
  />,
60
- { mocks: [latestGrantRequestByGrantMock(latestRequestVars, "pending")] }
60
+ { mocks: [latestGrantRequestByGrantMock(latestRequestVars, "pending")] },
61
61
  );
62
62
  await waitForLoad(rendered);
63
63
  const button = await rendered.findByRole("button");
@@ -72,7 +72,7 @@ describe("<GrantRemovalWorkflow />", () => {
72
72
  grant={{ ...grant, pending_removal: false }}
73
73
  actions={{}}
74
74
  />,
75
- { mocks: [latestGrantRequestByGrantMock(latestRequestVars, "rejected")] }
75
+ { mocks: [latestGrantRequestByGrantMock(latestRequestVars, "rejected")] },
76
76
  );
77
77
  await waitForLoad(rendered);
78
78
  expect(await rendered.findByRole("button")).toHaveClass("red");
@@ -84,7 +84,7 @@ describe("<GrantRemovalWorkflow />", () => {
84
84
  grant={{ ...grant, pending_removal: true }}
85
85
  actions={{}}
86
86
  />,
87
- { mocks: [latestGrantRequestByGrantMock(latestRequestVars, "approved")] }
87
+ { mocks: [latestGrantRequestByGrantMock(latestRequestVars, "approved")] },
88
88
  );
89
89
  await waitForLoad(rendered);
90
90
  expect(await rendered.findByRole("button")).toHaveClass("brown");
@@ -96,7 +96,7 @@ describe("<GrantRemovalWorkflow />", () => {
96
96
  grant={{ ...grant, pending_removal: false }}
97
97
  actions={{}}
98
98
  />,
99
- { mocks: [latestGrantRequestByGrantMock(latestRequestVars, "approved")] }
99
+ { mocks: [latestGrantRequestByGrantMock(latestRequestVars, "approved")] },
100
100
  );
101
101
  await waitForLoad(rendered);
102
102
  expect(await rendered.findByRole("button")).toHaveClass("grey");
@@ -108,7 +108,7 @@ describe("<GrantRemovalWorkflow />", () => {
108
108
  grant={{ ...grant, pending_removal: true }}
109
109
  actions={{}}
110
110
  />,
111
- { mocks: [latestGrantRequestByGrantMock(latestRequestVars, "pending")] }
111
+ { mocks: [latestGrantRequestByGrantMock(latestRequestVars, "pending")] },
112
112
  );
113
113
  await waitForLoad(rendered);
114
114
  expect(await rendered.findByRole("button")).toHaveClass("grey");
@@ -120,7 +120,7 @@ describe("<GrantRemovalWorkflow />", () => {
120
120
  grant={{ ...grant, pending_removal: true }}
121
121
  actions={{}}
122
122
  />,
123
- { mocks: [latestGrantRequestByGrantMock(latestRequestVars, "rejected")] }
123
+ { mocks: [latestGrantRequestByGrantMock(latestRequestVars, "rejected")] },
124
124
  );
125
125
  await waitForLoad(rendered);
126
126
  expect(await rendered.findByRole("button")).toHaveClass("grey");
@@ -134,7 +134,7 @@ describe("<GrantRemovalWorkflow />", () => {
134
134
  />,
135
135
  {
136
136
  mocks: [latestGrantRequestByGrantMock(latestRequestVars, "processing")],
137
- }
137
+ },
138
138
  );
139
139
  await waitForLoad(rendered);
140
140
  expect(await rendered.findByRole("button")).toHaveClass("grey");
@@ -92,7 +92,7 @@ describe("<GrantRequest />", () => {
92
92
 
93
93
  const rendered = render(
94
94
  <GrantRequest {...{ ...props, grantRequest: failedGrantRequest }} />,
95
- renderOpts
95
+ renderOpts,
96
96
  );
97
97
  await waitForLoad(rendered);
98
98
  expect(rendered.container).toMatchSnapshot();
@@ -29,12 +29,12 @@ describe("<GrantRequestApprovalForm />", () => {
29
29
  const user = userEvent.setup({ delay: null });
30
30
 
31
31
  expect(
32
- rendered.queryByText(/grantRequest.actions.approve/i)
32
+ rendered.queryByText(/grantRequest.actions.approve/i),
33
33
  ).toBeDisabled();
34
34
  await user.click(await rendered.findByText(/role1/i));
35
35
  await waitFor(() => {
36
36
  expect(
37
- rendered.queryByText(/grantRequest.actions.approve/i)
37
+ rendered.queryByText(/grantRequest.actions.approve/i),
38
38
  ).not.toBeDisabled();
39
39
  });
40
40
  });
@@ -45,18 +45,18 @@ describe("<GrantRequestApprovalForm />", () => {
45
45
  const user = userEvent.setup({ delay: null });
46
46
 
47
47
  expect(
48
- rendered.queryByText(/grantRequest.actions.approve/i)
48
+ rendered.queryByText(/grantRequest.actions.approve/i),
49
49
  ).toBeDisabled();
50
50
  await user.click(await rendered.findByText(/role1/i));
51
51
  await waitFor(() => {
52
52
  expect(
53
- rendered.queryByText(/grantRequest.actions.approve/i)
53
+ rendered.queryByText(/grantRequest.actions.approve/i),
54
54
  ).not.toBeDisabled();
55
55
  });
56
56
 
57
57
  await user.type(rendered.queryByTestId("comment-id"), "comment");
58
58
  await user.click(
59
- await rendered.findByText(/grantRequest.actions.approve/i)
59
+ await rendered.findByText(/grantRequest.actions.approve/i),
60
60
  );
61
61
  await waitFor(() => {
62
62
  expect(createGrantRequestApproval).toHaveBeenCalledTimes(1);
@@ -69,7 +69,7 @@ describe("<GrantRequestApprovalForm />", () => {
69
69
  role: "role1",
70
70
  comment: "comment",
71
71
  },
72
- })
72
+ }),
73
73
  );
74
74
  });
75
75
  });
@@ -18,7 +18,7 @@ describe("<GrantRequestApprovalPopup />", () => {
18
18
 
19
19
  const rendered = render(
20
20
  <GrantRequestApprovalPopup {...props} />,
21
- renderOpts
21
+ renderOpts,
22
22
  );
23
23
  await waitForLoad(rendered);
24
24
  expect(rendered.container).toMatchSnapshot();
@@ -11,7 +11,7 @@ jest.mock("react-router", () => ({
11
11
 
12
12
  jest.mock("@truedat/dd/hooks/useGrantRequest", () => {
13
13
  const originalModule = jest.requireActual(
14
- "@truedat/dd/hooks/useGrantRequest"
14
+ "@truedat/dd/hooks/useGrantRequest",
15
15
  );
16
16
 
17
17
  return {
@@ -74,7 +74,7 @@ describe("<GrantRequestBulkActions />", () => {
74
74
  <SearchContext value={searchContextWithData}>
75
75
  <GrantRequestBulkActions {...props} />
76
76
  </SearchContext>,
77
- renderOpts
77
+ renderOpts,
78
78
  );
79
79
  await waitForLoad(rendered);
80
80
  expect(rendered.container).toMatchSnapshot();
@@ -85,11 +85,11 @@ describe("<GrantRequestBulkActions />", () => {
85
85
  <SearchContext value={searchContextWithData}>
86
86
  <GrantRequestBulkActions {...props} />,
87
87
  </SearchContext>,
88
- renderOpts
88
+ renderOpts,
89
89
  );
90
90
  await waitForLoad(rendered);
91
91
  expect(
92
- rendered.getByRole("button", { name: /approve_request/i })
92
+ rendered.getByRole("button", { name: /approve_request/i }),
93
93
  ).toBeEnabled();
94
94
  expect(rendered.getByRole("button", { name: /reject/i })).toBeEnabled();
95
95
  });
@@ -99,11 +99,11 @@ describe("<GrantRequestBulkActions />", () => {
99
99
  <SearchContext value={baseSearchContext}>
100
100
  <GrantRequestBulkActions {...props} />,
101
101
  </SearchContext>,
102
- renderOpts
102
+ renderOpts,
103
103
  );
104
104
  await waitForLoad(rendered);
105
105
  expect(
106
- rendered.getByRole("button", { name: /approve_request/i })
106
+ rendered.getByRole("button", { name: /approve_request/i }),
107
107
  ).toBeDisabled();
108
108
  expect(rendered.getByRole("button", { name: /reject/i })).toBeDisabled();
109
109
  });
@@ -113,7 +113,7 @@ describe("<GrantRequestBulkActions />", () => {
113
113
  <SearchContext value={searchContextWithData}>
114
114
  <GrantRequestBulkActions {...props} />,
115
115
  </SearchContext>,
116
- renderOpts
116
+ renderOpts,
117
117
  );
118
118
  await waitForLoad(rendered);
119
119
  const user = userEvent.setup({ delay: null });
@@ -139,7 +139,7 @@ describe("<GrantRequestBulkActions />", () => {
139
139
  await user.type(await rendered.getByRole("textbox"), "Approve comment");
140
140
 
141
141
  await act(
142
- async () => await user.click(rendered.getByTestId("approve-button-id"))
142
+ async () => await user.click(rendered.getByTestId("approve-button-id")),
143
143
  );
144
144
  });
145
145
  });
@@ -23,7 +23,7 @@ describe("<GrantRequestBulkApprovalForm />", () => {
23
23
  };
24
24
  const { container } = render(
25
25
  <GrantRequestBulkApprovalForm {...props} />,
26
- renderOpts
26
+ renderOpts,
27
27
  );
28
28
  expect(container).toMatchSnapshot();
29
29
  });
@@ -37,7 +37,7 @@ describe("<GrantRequestBulkApprovalForm />", () => {
37
37
 
38
38
  const { getByRole } = render(
39
39
  <GrantRequestBulkApprovalForm {...props} />,
40
- renderOpts
40
+ renderOpts,
41
41
  );
42
42
  await waitFor(() => {
43
43
  expect(getByRole("button", { name: "reject" })).toBeEnabled();
@@ -23,7 +23,7 @@ describe("<GrantRequestBulkRoleSelector />", () => {
23
23
  it("matches the latest snapshot", () => {
24
24
  const { container } = render(
25
25
  <GrantRequestBulkRoleSelector {...props} />,
26
- renderOpts
26
+ renderOpts,
27
27
  );
28
28
  expect(container).toMatchSnapshot();
29
29
  });
@@ -31,7 +31,7 @@ describe("<GrantRequestBulkRoleSelector />", () => {
31
31
  it("test select role", async () => {
32
32
  const { getByRole } = render(
33
33
  <GrantRequestBulkRoleSelector {...props} />,
34
- renderOpts
34
+ renderOpts,
35
35
  );
36
36
 
37
37
  await waitFor(() => {
@@ -13,8 +13,10 @@ jest.mock("react-router", () => {
13
13
  };
14
14
  });
15
15
 
16
- const { useGrantRequestGroupsByIds } = require("../../hooks/useGrantRequestGroupsByIds");
17
16
  const { useParams } = require("react-router");
17
+ const {
18
+ useGrantRequestGroupsByIds,
19
+ } = require("../../hooks/useGrantRequestGroupsByIds");
18
20
 
19
21
  describe("GrantRequestCartResult", () => {
20
22
  it("matches snapshot when no ids in URL (empty)", async () => {
@@ -55,12 +57,20 @@ describe("GrantRequestCartResult", () => {
55
57
  requests: [
56
58
  {
57
59
  _embedded: {
58
- data_structure: { id: 10, name: "Structure One", external_id: "ext-1" },
60
+ data_structure: {
61
+ id: 10,
62
+ name: "Structure One",
63
+ external_id: "ext-1",
64
+ },
59
65
  },
60
66
  },
61
67
  {
62
68
  _embedded: {
63
- data_structure: { id: 20, name: "Structure Two", external_id: "ext-2" },
69
+ data_structure: {
70
+ id: 20,
71
+ name: "Structure Two",
72
+ external_id: "ext-2",
73
+ },
64
74
  },
65
75
  },
66
76
  ],
@@ -16,7 +16,7 @@ describe("<GrantRequestHeader />", () => {
16
16
  <Suspense fallback={null}>
17
17
  <GrantRequestHeader grantRequest={grantRequest} />
18
18
  </Suspense>,
19
- renderOpts
19
+ renderOpts,
20
20
  );
21
21
  expect(container).toMatchSnapshot();
22
22
  });
@@ -27,7 +27,7 @@ describe("<GrantRequestHeader />", () => {
27
27
  <Suspense fallback={null}>
28
28
  <GrantRequestHeader grantRequest={grantRequest} />
29
29
  </Suspense>,
30
- renderOpts
30
+ renderOpts,
31
31
  );
32
32
  expect(container).toMatchSnapshot();
33
33
  });
@@ -50,7 +50,7 @@ describe("<GrantRequestRow />", () => {
50
50
  <tbody>
51
51
  <GrantRequestRow {...props} />
52
52
  </tbody>
53
- </table>
53
+ </table>,
54
54
  );
55
55
  expect(rendered.container).toMatchSnapshot();
56
56
  });
@@ -65,7 +65,7 @@ describe("<GrantRequestRow />", () => {
65
65
  <tbody>
66
66
  <GrantRequestRow {...newProps} />
67
67
  </tbody>
68
- </table>
68
+ </table>,
69
69
  );
70
70
  expect(rendered.container).toMatchSnapshot();
71
71
  });
@@ -76,7 +76,7 @@ describe("<GrantRequestRow />", () => {
76
76
  <tbody>
77
77
  <GrantRequestRow {...props} />
78
78
  </tbody>
79
- </table>
79
+ </table>,
80
80
  );
81
81
  const user = userEvent.setup({ delay: null });
82
82
 
@@ -96,7 +96,7 @@ describe("<GrantRequestRow />", () => {
96
96
  <tbody>
97
97
  <GrantRequestRow {...props} />
98
98
  </tbody>
99
- </table>
99
+ </table>,
100
100
  );
101
101
  const user = userEvent.setup({ delay: null });
102
102
 
@@ -37,7 +37,7 @@ describe("<GrantRequestSummary />", () => {
37
37
  <Suspense fallback={null}>
38
38
  <GrantRequestSummary grantRequest={grantRequest} />
39
39
  </Suspense>,
40
- renderOpts
40
+ renderOpts,
41
41
  );
42
42
  expect(container).toMatchSnapshot();
43
43
  });
@@ -18,7 +18,7 @@ describe("<GrantRequests />", () => {
18
18
  const props = { columns, grantRequests, grantRequestsLoading };
19
19
  const { container, queryByText } = render(
20
20
  <GrantRequests {...props} />,
21
- renderOpts
21
+ renderOpts,
22
22
  );
23
23
  expect(container).toMatchSnapshot();
24
24
  await waitFor(() => {
@@ -37,7 +37,7 @@ describe("<GrantRequests />", () => {
37
37
  const props = { columns, grantRequests, grantRequestsLoading };
38
38
  const { container, queryByText } = render(
39
39
  <GrantRequests {...props} />,
40
- renderOpts
40
+ renderOpts,
41
41
  );
42
42
  expect(container).toMatchSnapshot();
43
43
  await waitFor(() => {
@@ -27,7 +27,7 @@ describe("<GrantRequestsLabelResults />", () => {
27
27
  <SearchContext value={searchContext}>
28
28
  <GrantRequestsLabelResults {...props} />
29
29
  </SearchContext>,
30
- renderOpts
30
+ renderOpts,
31
31
  );
32
32
  expect(container).toMatchSnapshot();
33
33
  });
@@ -38,7 +38,7 @@ describe("<GrantRequestsLabelResults />", () => {
38
38
  <SearchContext value={searchContext}>
39
39
  <GrantRequestsLabelResults {...newProps} />
40
40
  </SearchContext>,
41
- renderOpts
41
+ renderOpts,
42
42
  );
43
43
  expect(container).toMatchSnapshot();
44
44
  });
@@ -49,7 +49,7 @@ describe("<GrantRequestsLabelResults />", () => {
49
49
  <SearchContext value={newSearchContext}>
50
50
  <GrantRequestsLabelResults {...props} />,
51
51
  </SearchContext>,
52
- renderOpts
52
+ renderOpts,
53
53
  );
54
54
  expect(container).toMatchSnapshot();
55
55
  });