@truedat/dd 8.7.0 → 8.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (389) hide show
  1. package/package.json +3 -3
  2. package/src/api/queries.js +1 -0
  3. package/src/components/BucketView.js +2 -2
  4. package/src/components/CatalogCustomViewCards.js +1 -1
  5. package/src/components/DictionaryRoutes.js +3 -3
  6. package/src/components/FilteredNav.js +3 -3
  7. package/src/components/Grant.js +4 -4
  8. package/src/components/GrantApprovalRule.js +1 -1
  9. package/src/components/GrantApprovalRuleConditions.js +1 -1
  10. package/src/components/GrantApprovalRuleDeleteButton.js +1 -1
  11. package/src/components/GrantApprovalRuleEdit.js +1 -1
  12. package/src/components/GrantApprovalRuleForm.js +6 -6
  13. package/src/components/GrantApprovalRules.js +1 -1
  14. package/src/components/GrantFilters.js +1 -1
  15. package/src/components/GrantFiltersLoader.js +1 -1
  16. package/src/components/GrantRemovalDirectButton.js +1 -1
  17. package/src/components/GrantRemovalWorkflow.js +2 -2
  18. package/src/components/GrantRemovalWorkflowDropdown.js +1 -1
  19. package/src/components/GrantRequest.js +3 -3
  20. package/src/components/GrantRequestApprovalForm.js +2 -2
  21. package/src/components/GrantRequestApprovalResults.js +1 -1
  22. package/src/components/GrantRequestBulkActions.js +2 -2
  23. package/src/components/GrantRequestBulkRoleSelector.js +1 -1
  24. package/src/components/GrantRequestCartResult.js +13 -3
  25. package/src/components/GrantRequestSummary.js +1 -1
  26. package/src/components/GrantRequests.js +2 -2
  27. package/src/components/GrantRequestsSearchResults.js +7 -7
  28. package/src/components/GrantRoutes.js +3 -9
  29. package/src/components/Grants.js +14 -4
  30. package/src/components/GrantsDownloadButton.js +1 -1
  31. package/src/components/GrantsLabelResults.js +2 -5
  32. package/src/components/GrantsLoader.js +2 -2
  33. package/src/components/GrantsTable.js +3 -8
  34. package/src/components/GraphLoader.js +1 -1
  35. package/src/components/LineageContextMenu.js +1 -1
  36. package/src/components/LineageDownloadButton.js +2 -2
  37. package/src/components/LineageEventsTable.js +1 -1
  38. package/src/components/LineageGraph.js +7 -6
  39. package/src/components/LineageGroup.js +2 -7
  40. package/src/components/LinkLabelsSelector.js +1 -1
  41. package/src/components/MyGrantRequests.js +1 -1
  42. package/src/components/ProfileGroup.js +2 -2
  43. package/src/components/ReferenceDatasetActions.js +1 -1
  44. package/src/components/ReferenceDatasetCreate.js +1 -1
  45. package/src/components/ReferenceDatasetDetail.js +1 -1
  46. package/src/components/ReferenceDatasetFieldSelector.js +5 -5
  47. package/src/components/ReferenceDatasetForm.js +3 -3
  48. package/src/components/ReferenceDatasetSelectorInputField.js +3 -3
  49. package/src/components/ReferenceDatasetsTable.js +1 -1
  50. package/src/components/StructureChildrenRelations.js +1 -1
  51. package/src/components/StructureConfidentialButton.js +1 -1
  52. package/src/components/StructureCrumbs.js +3 -3
  53. package/src/components/StructureDeleteButton.js +1 -1
  54. package/src/components/StructureFields.js +3 -3
  55. package/src/components/StructureFieldsDropdown.js +10 -10
  56. package/src/components/StructureGrantCart.js +3 -3
  57. package/src/components/StructureGrantCartCheckout.js +9 -4
  58. package/src/components/StructureGrantCartInformation.js +2 -7
  59. package/src/components/StructureGrantListButton.js +5 -5
  60. package/src/components/StructureGrantRequestAddCart.js +1 -1
  61. package/src/components/StructureGrantSummaryButton.js +2 -2
  62. package/src/components/StructureGrants.js +2 -2
  63. package/src/components/StructureItem.js +4 -4
  64. package/src/components/StructureItemRoot.js +1 -1
  65. package/src/components/StructureLoader.js +1 -2
  66. package/src/components/StructureMetadata.js +23 -17
  67. package/src/components/StructureNav.js +1 -1
  68. package/src/components/StructureNavClassified.js +1 -1
  69. package/src/components/StructureNoteActions.js +1 -1
  70. package/src/components/StructureNotes.js +3 -3
  71. package/src/components/StructureNotesEdit.js +4 -4
  72. package/src/components/StructureProfileButton.js +1 -1
  73. package/src/components/StructureProperties.js +1 -1
  74. package/src/components/StructureSelector.js +3 -3
  75. package/src/components/StructureSelectorInputFieldJoin.js +2 -2
  76. package/src/components/StructureStructureForm.js +2 -2
  77. package/src/components/StructureStructureLinks.js +5 -5
  78. package/src/components/StructureTabPane.js +5 -5
  79. package/src/components/StructureTabPaneRoutes.js +92 -80
  80. package/src/components/StructureTabRoutes.js +30 -8
  81. package/src/components/StructureTabs.js +17 -16
  82. package/src/components/StructureTagForm.js +2 -2
  83. package/src/components/StructureTags.js +1 -1
  84. package/src/components/StructureTypeForm.js +3 -3
  85. package/src/components/StructureTypeLoader.js +1 -1
  86. package/src/components/StructureTypesLoader.js +1 -1
  87. package/src/components/StructureTypesRoutes.js +1 -1
  88. package/src/components/StructureVersions.js +17 -16
  89. package/src/components/StructureView.js +1 -1
  90. package/src/components/StructuresBulkUpdate.js +4 -4
  91. package/src/components/StructuresDomainsUploadOption.js +1 -1
  92. package/src/components/StructuresDownloadOption.js +1 -1
  93. package/src/components/StructuresGrantRequestView.js +1 -1
  94. package/src/components/StructuresLoader.js +1 -1
  95. package/src/components/StructuresRoutes.js +2 -2
  96. package/src/components/StructuresTable.js +4 -4
  97. package/src/components/StructuresUpdateOption.js +3 -3
  98. package/src/components/StructuresUploadEventsTable.js +9 -9
  99. package/src/components/StructuresUploadOption.js +14 -14
  100. package/src/components/StructuresView.js +1 -1
  101. package/src/components/SystemCards.js +7 -7
  102. package/src/components/SystemForm.js +2 -2
  103. package/src/components/SystemLoader.js +1 -1
  104. package/src/components/SystemStructures.js +2 -2
  105. package/src/components/SystemView.js +3 -3
  106. package/src/components/Task.js +6 -6
  107. package/src/components/Tasks.js +1 -1
  108. package/src/components/ValueConditionStructure.js +2 -2
  109. package/src/components/__tests__/BucketView.spec.js +2 -2
  110. package/src/components/__tests__/CatalogCustomViewCards.spec.js +1 -1
  111. package/src/components/__tests__/CatalogViewConfigForm.spec.js +2 -2
  112. package/src/components/__tests__/CatalogViewConfigs.spec.js +2 -2
  113. package/src/components/__tests__/DictionaryRoutes.spec.js +7 -3
  114. package/src/components/__tests__/EditDomainForm.spec.js +3 -3
  115. package/src/components/__tests__/FilteredNav.spec.js +4 -4
  116. package/src/components/__tests__/Grant.spec.js +4 -4
  117. package/src/components/__tests__/GrantApprovalRuleConditions.spec.js +6 -6
  118. package/src/components/__tests__/GrantApprovalRuleDeleteButton.spec.js +2 -2
  119. package/src/components/__tests__/GrantApprovalRuleForm.spec.js +9 -7
  120. package/src/components/__tests__/GrantApprovalRules.spec.js +3 -3
  121. package/src/components/__tests__/GrantRemoval.spec.js +4 -4
  122. package/src/components/__tests__/GrantRemovalDirectButton.spec.js +8 -8
  123. package/src/components/__tests__/GrantRemovalWorkflow.spec.js +8 -8
  124. package/src/components/__tests__/GrantRequest.spec.js +1 -1
  125. package/src/components/__tests__/GrantRequestApprovalForm.spec.js +6 -6
  126. package/src/components/__tests__/GrantRequestApprovalPopup.spec.js +1 -1
  127. package/src/components/__tests__/GrantRequestBulkActions.spec.js +8 -8
  128. package/src/components/__tests__/GrantRequestBulkApprovalForm.spec.js +2 -2
  129. package/src/components/__tests__/GrantRequestBulkRoleSelector.spec.js +2 -2
  130. package/src/components/__tests__/GrantRequestCartResult.spec.js +13 -3
  131. package/src/components/__tests__/GrantRequestHeader.spec.js +2 -2
  132. package/src/components/__tests__/GrantRequestRow.spec.js +4 -4
  133. package/src/components/__tests__/GrantRequestSummary.spec.js +1 -1
  134. package/src/components/__tests__/GrantRequests.spec.js +2 -2
  135. package/src/components/__tests__/GrantRequestsLabelResults.spec.js +3 -3
  136. package/src/components/__tests__/GrantRequestsSearchResults.spec.js +2 -2
  137. package/src/components/__tests__/GrantRequestsTable.spec.js +1 -1
  138. package/src/components/__tests__/GrantRoutes.spec.js +16 -16
  139. package/src/components/__tests__/GrantsDownloadButton.spec.js +68 -40
  140. package/src/components/__tests__/GrantsLabelResults.spec.js +2 -2
  141. package/src/components/__tests__/GrantsLoader.spec.js +1 -1
  142. package/src/components/__tests__/GrantsTable.spec.js +4 -4
  143. package/src/components/__tests__/LineageForm.spec.js +5 -5
  144. package/src/components/__tests__/LineageGroup.spec.js +6 -6
  145. package/src/components/__tests__/LineageResource.spec.js +5 -5
  146. package/src/components/__tests__/LineageRoutes.spec.js +6 -6
  147. package/src/components/__tests__/PendingStructureNoteRow.spec.js +4 -4
  148. package/src/components/__tests__/PendingStructureNotes.spec.js +1 -1
  149. package/src/components/__tests__/PendingStructureNotesLabelResults.spec.js +1 -1
  150. package/src/components/__tests__/PendingStructureNotesPagination.spec.js +1 -1
  151. package/src/components/__tests__/PendingStructureNotesTable.spec.js +2 -2
  152. package/src/components/__tests__/ProfileExecution.spec.js +2 -2
  153. package/src/components/__tests__/ProfileGroup.spec.js +2 -2
  154. package/src/components/__tests__/ReferenceDataset.spec.js +7 -5
  155. package/src/components/__tests__/ReferenceDatasetCreate.spec.js +1 -1
  156. package/src/components/__tests__/ReferenceDatasetDetail.spec.js +1 -1
  157. package/src/components/__tests__/ReferenceDatasetFieldSelector.spec.js +9 -9
  158. package/src/components/__tests__/ReferenceDatasetForm.spec.js +9 -7
  159. package/src/components/__tests__/ReferenceDatasetRoutes.spec.js +1 -1
  160. package/src/components/__tests__/StructureFieldRow.spec.js +3 -3
  161. package/src/components/__tests__/StructureFieldsDropdown.spec.js +5 -5
  162. package/src/components/__tests__/StructureGrantCartCheckout.spec.js +2 -2
  163. package/src/components/__tests__/StructureGrantCartInformation.spec.js +1 -1
  164. package/src/components/__tests__/StructureGrantCartUserSelector.spec.js +4 -4
  165. package/src/components/__tests__/StructureGrantDropdown.spec.js +3 -3
  166. package/src/components/__tests__/StructureGrantListButton.spec.js +4 -4
  167. package/src/components/__tests__/StructureGrantSummaryButton.spec.js +5 -5
  168. package/src/components/__tests__/StructureItem.spec.js +3 -3
  169. package/src/components/__tests__/StructureMetadata.spec.js +2 -4
  170. package/src/components/__tests__/StructureNavClassified.spec.js +1 -1
  171. package/src/components/__tests__/StructureNoteActions.spec.js +17 -15
  172. package/src/components/__tests__/StructureNoteLink.spec.js +8 -9
  173. package/src/components/__tests__/StructureNotes.spec.js +3 -3
  174. package/src/components/__tests__/StructureNotesDownloadButton.spec.js +15 -15
  175. package/src/components/__tests__/StructureNotesEdit.spec.js +1 -1
  176. package/src/components/__tests__/StructureRelationRow.spec.js +2 -2
  177. package/src/components/__tests__/StructureRelations.spec.js +2 -2
  178. package/src/components/__tests__/StructureRow.spec.js +2 -2
  179. package/src/components/__tests__/StructureSelectorInputField.spec.js +2 -2
  180. package/src/components/__tests__/StructureSelectorInputFieldJoin.spec.js +1 -1
  181. package/src/components/__tests__/StructureStructureForm.spec.js +1 -1
  182. package/src/components/__tests__/StructureStructureLinks.spec.js +15 -15
  183. package/src/components/__tests__/StructureSummary.spec.js +1 -1
  184. package/src/components/__tests__/StructureTabPane.spec.js +10 -12
  185. package/src/components/__tests__/StructureTabRoutes.spec.js +1 -1
  186. package/src/components/__tests__/StructureTabs.spec.js +24 -8
  187. package/src/components/__tests__/StructureTag.spec.js +11 -11
  188. package/src/components/__tests__/StructureTagForm.spec.js +17 -17
  189. package/src/components/__tests__/StructureTypesRoutes.spec.js +4 -4
  190. package/src/components/__tests__/StructureVersions.spec.js +0 -1
  191. package/src/components/__tests__/StructuresBulkUpdate.spec.js +3 -3
  192. package/src/components/__tests__/StructuresDownloadOption.spec.js +3 -3
  193. package/src/components/__tests__/StructuresEditableDownloadOption.spec.js +2 -2
  194. package/src/components/__tests__/StructuresGrantRequestView.spec.js +2 -2
  195. package/src/components/__tests__/StructuresLabelResults.spec.js +1 -1
  196. package/src/components/__tests__/StructuresLoader.spec.js +1 -1
  197. package/src/components/__tests__/StructuresOptions.spec.js +15 -9
  198. package/src/components/__tests__/StructuresRoutes.spec.js +1 -1
  199. package/src/components/__tests__/StructuresSearchResults.spec.js +2 -2
  200. package/src/components/__tests__/StructuresTable.spec.js +5 -5
  201. package/src/components/__tests__/StructuresUpdateOption.spec.js +2 -2
  202. package/src/components/__tests__/StructuresUploadOption.spec.js +2 -2
  203. package/src/components/__tests__/StructuresView.spec.js +6 -6
  204. package/src/components/__tests__/SystemCards.spec.js +2 -2
  205. package/src/components/__tests__/SystemFilteredNav.spec.js +1 -1
  206. package/src/components/__tests__/SystemStructuresLoader.spec.js +1 -1
  207. package/src/components/__tests__/SystemsRoutes.spec.js +1 -1
  208. package/src/components/__tests__/TagForm.spec.js +7 -5
  209. package/src/components/__tests__/TagsRoutes.spec.js +1 -1
  210. package/src/components/__tests__/Tasks.spec.js +9 -9
  211. package/src/components/__tests__/TasksRoutes.spec.js +1 -1
  212. package/src/components/__tests__/ValueConditionStructure.spec.js +2 -2
  213. package/src/hooks/useBucketPaths.js +1 -1
  214. package/src/hooks/useBucketStructures.js +1 -1
  215. package/src/hooks/useCustomTabs.js +1 -1
  216. package/src/hooks/useGrant.js +7 -3
  217. package/src/hooks/useGrantRequest.js +4 -4
  218. package/src/hooks/useStructures.js +4 -5
  219. package/src/hooks/useTemplatesByIds.js +10 -5
  220. package/src/messages/en.js +1 -2
  221. package/src/messages/es.js +1 -2
  222. package/src/messages/index.js +1 -1
  223. package/src/reducers/__tests__/bulkUpdateStructuresLoading.spec.js +5 -5
  224. package/src/reducers/__tests__/creatingGrantRequestApproval.spec.js +3 -3
  225. package/src/reducers/__tests__/csvGraphDownloading.spec.js +4 -4
  226. package/src/reducers/__tests__/ddMessage.spec.js +3 -3
  227. package/src/reducers/__tests__/grantFilters.spec.js +1 -1
  228. package/src/reducers/__tests__/grantQuery.spec.js +6 -6
  229. package/src/reducers/__tests__/grantRequests.spec.js +2 -2
  230. package/src/reducers/__tests__/grantRequestsCart.spec.js +31 -31
  231. package/src/reducers/__tests__/grantRequestsLoading.spec.js +3 -3
  232. package/src/reducers/__tests__/grantRequestsQuery.spec.js +2 -2
  233. package/src/reducers/__tests__/grants.spec.js +2 -2
  234. package/src/reducers/__tests__/graph.spec.js +1 -1
  235. package/src/reducers/__tests__/graphLoading.spec.js +6 -4
  236. package/src/reducers/__tests__/graphRedirect.spec.js +11 -7
  237. package/src/reducers/__tests__/lineageEventsLoading.spec.js +2 -2
  238. package/src/reducers/__tests__/lineageQuery.spec.js +6 -6
  239. package/src/reducers/__tests__/nodes.spec.js +1 -1
  240. package/src/reducers/__tests__/nodesLoading.spec.js +2 -2
  241. package/src/reducers/__tests__/profileExecution.spec.js +6 -6
  242. package/src/reducers/__tests__/profileExecutionLoading.spec.js +5 -3
  243. package/src/reducers/__tests__/profileGroup.spec.js +12 -12
  244. package/src/reducers/__tests__/profileGroupLoading.spec.js +6 -6
  245. package/src/reducers/__tests__/referenceDatasetSaving.spec.js +8 -4
  246. package/src/reducers/__tests__/selectedGroups.spec.js +2 -2
  247. package/src/reducers/__tests__/selectedNode.spec.js +5 -5
  248. package/src/reducers/__tests__/selectedResources.spec.js +5 -5
  249. package/src/reducers/__tests__/selectedUserSearchFilter.spec.js +3 -3
  250. package/src/reducers/__tests__/structure.spec.js +2 -2
  251. package/src/reducers/__tests__/structureActions.spec.js +4 -4
  252. package/src/reducers/__tests__/structureAncestry.spec.js +6 -6
  253. package/src/reducers/__tests__/structureChildren.spec.js +2 -2
  254. package/src/reducers/__tests__/structureFields.spec.js +5 -5
  255. package/src/reducers/__tests__/structureImpactGraph.spec.js +6 -6
  256. package/src/reducers/__tests__/structureImpactId.spec.js +7 -7
  257. package/src/reducers/__tests__/structureLineageGraph.spec.js +7 -7
  258. package/src/reducers/__tests__/structureLineageId.spec.js +7 -7
  259. package/src/reducers/__tests__/structureLinks.spec.js +6 -6
  260. package/src/reducers/__tests__/structureLoading.spec.js +2 -2
  261. package/src/reducers/__tests__/structureNotes.spec.js +1 -1
  262. package/src/reducers/__tests__/structureParents.spec.js +2 -2
  263. package/src/reducers/__tests__/structureProfile.spec.js +9 -6
  264. package/src/reducers/__tests__/structureQuery.spec.js +4 -4
  265. package/src/reducers/__tests__/structureRedirect.spec.js +9 -9
  266. package/src/reducers/__tests__/structureRelations.spec.js +4 -4
  267. package/src/reducers/__tests__/structureSiblings.spec.js +2 -2
  268. package/src/reducers/__tests__/structureSystem.spec.js +3 -3
  269. package/src/reducers/__tests__/structureTagSaving.spec.js +2 -2
  270. package/src/reducers/__tests__/structureType.spec.js +2 -2
  271. package/src/reducers/__tests__/structureTypeLoading.spec.js +6 -6
  272. package/src/reducers/__tests__/structureVersion.spec.js +4 -4
  273. package/src/reducers/__tests__/structureVersions.spec.js +9 -5
  274. package/src/reducers/__tests__/structures.spec.js +3 -3
  275. package/src/reducers/__tests__/structuresAliasNameMode.spec.js +5 -5
  276. package/src/reducers/__tests__/structuresUploadEvents.spec.js +1 -1
  277. package/src/reducers/__tests__/structuresUploadEventsLoading.spec.js +4 -4
  278. package/src/reducers/__tests__/system.spec.js +2 -2
  279. package/src/reducers/__tests__/systemId.spec.js +3 -3
  280. package/src/reducers/__tests__/systemStructures.spec.js +3 -3
  281. package/src/reducers/__tests__/systemStructuresLoading.spec.js +2 -2
  282. package/src/reducers/ddMessage.js +1 -1
  283. package/src/reducers/grantFilters.js +1 -1
  284. package/src/reducers/grantRequestsCart.js +16 -13
  285. package/src/reducers/grantSelectedFilter.js +1 -1
  286. package/src/reducers/profileGroup.js +1 -1
  287. package/src/reducers/selectedResources.js +1 -1
  288. package/src/reducers/selectedUserSearchFilter.js +1 -1
  289. package/src/reducers/structure.js +2 -1
  290. package/src/reducers/structureImpactGraph.js +1 -1
  291. package/src/reducers/structureLineageGraph.js +1 -1
  292. package/src/reducers/structureRedirect.js +1 -1
  293. package/src/reducers/structuresAliasNameMode.js +1 -1
  294. package/src/reducers/structuresUploadEvents.js +1 -1
  295. package/src/reducers/systemId.js +1 -1
  296. package/src/reducers/userSearchFilters.js +1 -1
  297. package/src/routines.js +31 -32
  298. package/src/sagas/__tests__/createGrantApprovalRule.spec.js +1 -1
  299. package/src/sagas/__tests__/createGrantRequestApproval.spec.js +1 -1
  300. package/src/sagas/__tests__/createGrantRequestStatus.spec.js +1 -1
  301. package/src/sagas/__tests__/createGraph.spec.js +5 -5
  302. package/src/sagas/__tests__/createProfileGroup.spec.js +10 -10
  303. package/src/sagas/__tests__/deleteGrantApprovalRule.spec.js +1 -1
  304. package/src/sagas/__tests__/deleteStructureStructureLink.spec.js +1 -1
  305. package/src/sagas/__tests__/doStructureNoteAction.spec.js +6 -6
  306. package/src/sagas/__tests__/downloadCsvGraph.spec.js +2 -2
  307. package/src/sagas/__tests__/fetchGrantFilters.spec.js +1 -1
  308. package/src/sagas/__tests__/fetchGrantRequestsFilters.spec.js +3 -3
  309. package/src/sagas/__tests__/fetchProfileExecution.spec.js +3 -3
  310. package/src/sagas/__tests__/fetchProfileGroup.spec.js +6 -6
  311. package/src/sagas/__tests__/fetchStructureNotes.spec.js +3 -3
  312. package/src/sagas/__tests__/fetchStructures.spec.js +2 -2
  313. package/src/sagas/__tests__/fetchStructuresUploadEvents.spec.js +1 -1
  314. package/src/sagas/__tests__/fetchSystemStructures.spec.js +4 -4
  315. package/src/sagas/__tests__/requestGrantRemoval.spec.js +2 -2
  316. package/src/sagas/__tests__/updateGrantApprovalRule.spec.js +1 -1
  317. package/src/sagas/__tests__/updateStructure.spec.js +1 -1
  318. package/src/sagas/__tests__/uploadStructuresDomains.spec.js +3 -3
  319. package/src/sagas/bulkUpdateStructures.js +1 -1
  320. package/src/sagas/createGrantApprovalRule.js +1 -1
  321. package/src/sagas/createGrantRequestApproval.js +1 -1
  322. package/src/sagas/createGrantRequestStatus.js +2 -2
  323. package/src/sagas/createGraph.js +3 -3
  324. package/src/sagas/createProfileGroup.js +1 -1
  325. package/src/sagas/createSystem.js +2 -2
  326. package/src/sagas/deleteCatalogViewConfig.js +1 -1
  327. package/src/sagas/deleteGrantApprovalRule.js +1 -1
  328. package/src/sagas/deleteStructureStructureLink.js +1 -1
  329. package/src/sagas/doStructureNoteAction.js +9 -4
  330. package/src/sagas/downloadCsvGraph.js +2 -2
  331. package/src/sagas/downloadReferenceDataset.js +1 -1
  332. package/src/sagas/fetchGrantRequestsFilters.js +1 -1
  333. package/src/sagas/fetchGraph.js +1 -1
  334. package/src/sagas/fetchStructuresUploadEvents.js +1 -1
  335. package/src/sagas/graph/polling.js +4 -4
  336. package/src/sagas/linkStructureToStructure.js +2 -2
  337. package/src/sagas/requestGrantRemoval.js +1 -1
  338. package/src/sagas/updateGrantApprovalRule.js +1 -1
  339. package/src/sagas/updateStructure.js +1 -1
  340. package/src/sagas/uploadStructuresDomains.js +2 -2
  341. package/src/sagas/upsertCatalogViewConfig.js +1 -1
  342. package/src/selectors/__tests__/getActiveTab.spec.js +99 -28
  343. package/src/selectors/__tests__/getBusinessConceptsLinksToStructuresColumnsSelector.spec.js +1 -1
  344. package/src/selectors/__tests__/getGrantRequestsColumns.spec.js +2 -2
  345. package/src/selectors/__tests__/getGrantRequestsSearchColumns.spec.js +1 -1
  346. package/src/selectors/__tests__/getGrantsColumns.spec.js +4 -4
  347. package/src/selectors/__tests__/getParsedEvents.spec.js +1 -1
  348. package/src/selectors/__tests__/getSortedRelations.spec.js +5 -5
  349. package/src/selectors/__tests__/getStructureFieldColumns.spec.js +1 -1
  350. package/src/selectors/__tests__/getStructureRelations.spec.js +1 -1
  351. package/src/selectors/__tests__/getTabVisibility.spec.js +49 -38
  352. package/src/selectors/__tests__/messages.spec.js +4 -4
  353. package/src/selectors/getActiveTab.js +16 -4
  354. package/src/selectors/getBusinessConceptsLinksToStructuresColumnsSelector.js +1 -1
  355. package/src/selectors/getGrantAvailableFilters.js +2 -2
  356. package/src/selectors/getGrantRequestTemplate.js +1 -1
  357. package/src/selectors/getGrantRequests.js +2 -2
  358. package/src/selectors/getGrantRequestsColumns.js +6 -6
  359. package/src/selectors/getGrantRequestsQuery.js +1 -1
  360. package/src/selectors/getGrantRequestsSearchColumns.js +2 -2
  361. package/src/selectors/getGrantSelectedFilters.js +1 -1
  362. package/src/selectors/getGrantsColumns.js +5 -5
  363. package/src/selectors/getLineageLevels.js +1 -1
  364. package/src/selectors/getLinkedImplementationsToStructuresColumns.js +1 -1
  365. package/src/selectors/getRelationSortingCriteria.js +1 -1
  366. package/src/selectors/getSortedRelations.js +5 -5
  367. package/src/selectors/getSortedStructureNotes.js +4 -4
  368. package/src/selectors/getStructureDeletedAt.js +2 -2
  369. package/src/selectors/getStructureFieldColumns.js +1 -1
  370. package/src/selectors/getStructureLinks.js +1 -1
  371. package/src/selectors/getStructureParent.js +2 -2
  372. package/src/selectors/getStructureProperties.js +1 -1
  373. package/src/selectors/getStructureRelations.js +4 -4
  374. package/src/selectors/getStructureSortingCriteria.js +1 -1
  375. package/src/selectors/getStructureUpdatedAt.js +1 -1
  376. package/src/selectors/getStructuresFields.js +5 -5
  377. package/src/selectors/getStructuresUploadEventColumns.js +1 -1
  378. package/src/selectors/getSystem.js +1 -1
  379. package/src/selectors/getSystemTemplate.js +1 -1
  380. package/src/selectors/getTabVisibility.js +5 -6
  381. package/src/selectors/groupOptionsSelector.js +2 -2
  382. package/src/selectors/leafClassesSelector.js +1 -1
  383. package/src/selectors/messages.js +1 -1
  384. package/src/selectors/metadataViewsSelector.js +6 -6
  385. package/src/selectors/resourceOptionsSelector.js +2 -2
  386. package/src/selectors/structureColumnsSelector.js +2 -2
  387. package/src/selectors/structureNotesColumnsSelector.js +1 -1
  388. package/src/selectors/templateNamesSelector.js +1 -1
  389. package/src/selectors/utils/decorators.js +32 -20
@@ -37,7 +37,7 @@ describe("<ValueConditionStructure />", () => {
37
37
  <ValueConditionStructure {...props} />,
38
38
  {
39
39
  messages,
40
- }
40
+ },
41
41
  );
42
42
  await waitFor(() => {
43
43
  expect(queryByText(/baz/)).toBeTruthy();
@@ -53,7 +53,7 @@ describe("<ValueConditionStructure />", () => {
53
53
  field_type: "string",
54
54
  label: "bar",
55
55
  },
56
- undefined
56
+ undefined,
57
57
  );
58
58
  });
59
59
  });
@@ -7,5 +7,5 @@ export const useBucketPaths = (navFilter) =>
7
7
  navFilter.view === "BUCKET_VIEW"
8
8
  ? { url: API_BUCKET_PATHS, filters: navFilter.filter }
9
9
  : null,
10
- ({ url }) => apiJsonPost(url, { filters: navFilter.filter })
10
+ ({ url }) => apiJsonPost(url, { filters: navFilter.filter }),
11
11
  );
@@ -17,6 +17,6 @@ export const useBucketStructures = ({
17
17
  : undefined;
18
18
 
19
19
  return useSWR({ url: API_BUCKET_STRUCTURES, params }, ({ url }) =>
20
- apiJsonPost(url, params)
20
+ apiJsonPost(url, params),
21
21
  );
22
22
  };
@@ -8,7 +8,7 @@ export function useStructureCustomTabs() {
8
8
  return useMemo(() => {
9
9
  if (!structureTabs?.customTabs) return [];
10
10
  return _.map((tab) => ({ ...tab, route: `/structures/:id/${tab.name}` }))(
11
- structureTabs.customTabs
11
+ structureTabs.customTabs,
12
12
  );
13
13
  }, [structureTabs]);
14
14
  }
@@ -50,14 +50,18 @@ export const useStructure = (id) => {
50
50
  };
51
51
 
52
52
  export const useGrantFilters = (onlyMyGrants) => () => {
53
- const searchUrl = onlyMyGrants ? API_MY_GRANT_FILTERS_SEARCH : API_GRANT_FILTERS_SEARCH
53
+ const searchUrl = onlyMyGrants
54
+ ? API_MY_GRANT_FILTERS_SEARCH
55
+ : API_GRANT_FILTERS_SEARCH;
56
+ // eslint-disable-next-line react-hooks/rules-of-hooks
54
57
  return useSWRMutations(searchUrl, (url, { arg }) => {
55
58
  return apiJsonPost(url, arg);
56
59
  });
57
60
  };
58
61
 
59
62
  export const useGrantSearch = (onlyMyGrants) => () => {
60
- const searchUrl = onlyMyGrants ? API_MY_GRANTS_SEARCH : API_GRANTS_SEARCH
63
+ const searchUrl = onlyMyGrants ? API_MY_GRANTS_SEARCH : API_GRANTS_SEARCH;
64
+ // eslint-disable-next-line react-hooks/rules-of-hooks
61
65
  return useSWRMutations(searchUrl, (url, { arg }) => {
62
66
  return apiJsonPost(url, arg);
63
67
  });
@@ -68,7 +72,7 @@ export const useGrantDownload = () => {
68
72
  return apiJsonPost(url, arg, { ...JSON_OPTS, responseType: "blob" }).then(
69
73
  ({ data, headers }) => {
70
74
  saveFile({ data, headers });
71
- }
75
+ },
72
76
  );
73
77
  });
74
78
  };
@@ -9,23 +9,23 @@ import {
9
9
 
10
10
  export const useGrantRequestBulkApproval = () => {
11
11
  return useSWRMutations(API_GRANT_REQUEST_BULK_APPROVAL, (url, { arg }) =>
12
- apiJsonPost(url, arg)
12
+ apiJsonPost(url, arg),
13
13
  );
14
14
  };
15
15
 
16
16
  export const useGrantRequestGroup = () => {
17
17
  return useSWRMutations(API_GRANT_REQUEST_GROUP, (url, { arg }) =>
18
- apiJsonPost(url, arg)
18
+ apiJsonPost(url, arg),
19
19
  );
20
20
  };
21
21
  export const useGrantRequestsSearch = () => {
22
22
  return useSWRMutations(API_GRANT_REQUESTS_SEARCH, (url, { arg }) =>
23
- apiJsonPost(url, arg)
23
+ apiJsonPost(url, arg),
24
24
  );
25
25
  };
26
26
 
27
27
  export const useGrantRequestsFilters = () => {
28
28
  return useSWRMutations(API_GRANT_REQUESTS_FILTERS_SEARCH, (url, { arg }) =>
29
- apiJsonPost(url, arg)
29
+ apiJsonPost(url, arg),
30
30
  );
31
31
  };
@@ -28,9 +28,9 @@ const asQueryParams = (queryParams) => {
28
28
  _.pick(allowedQueryParams),
29
29
  _.entries,
30
30
  _.map(([key, value]) =>
31
- _.isEmpty(value) ? "" : `${encodeURI(key)}=${encodeURI(value)}`
31
+ _.isEmpty(value) ? "" : `${encodeURI(key)}=${encodeURI(value)}`,
32
32
  ),
33
- _.join("&")
33
+ _.join("&"),
34
34
  )(queryParams);
35
35
  return _.isEmpty(stringifyQueryParams) ? "" : `?${stringifyQueryParams}`;
36
36
  };
@@ -52,7 +52,7 @@ export const useStructures = (args) => {
52
52
  const { data, isLoading, error } = useSWR(
53
53
  { url, args },
54
54
  requestData,
55
- options
55
+ options,
56
56
  );
57
57
 
58
58
  return {
@@ -80,7 +80,7 @@ export const useDataStructureDownload = () => {
80
80
  return apiJsonPost(url, arg, { ...JSON_OPTS, responseType: "blob" }).then(
81
81
  ({ data, headers }) => {
82
82
  saveFile({ data, headers });
83
- }
83
+ },
84
84
  );
85
85
  });
86
86
  };
@@ -96,4 +96,3 @@ export const useDataStructureSuggestions = () => {
96
96
  return apiJsonPost(url, arg);
97
97
  });
98
98
  };
99
-
@@ -17,13 +17,15 @@ const ensureTemplateShape = (t) => {
17
17
  if (!t) return null;
18
18
  return t && _.isArray(t.content)
19
19
  ? t
20
- : { ...t, content: _.isArray(t.template_content) ? t.template_content : [] };
20
+ : {
21
+ ...t,
22
+ content: _.isArray(t.template_content) ? t.template_content : [],
23
+ };
21
24
  };
22
25
 
23
26
  export const useTemplatesByIds = (ids) => {
24
27
  const [templatesById, setTemplatesById] = useState({});
25
- const idsKey =
26
- Array.isArray(ids) && ids.length > 0 ? ids.join(",") : "";
28
+ const idsKey = Array.isArray(ids) && ids.length > 0 ? ids.join(",") : "";
27
29
 
28
30
  useEffect(() => {
29
31
  if (!idsKey) {
@@ -38,26 +40,29 @@ export const useTemplatesByIds = (ids) => {
38
40
  setTemplatesById({});
39
41
  return;
40
42
  }
43
+ // eslint-disable-next-line fp/no-let
41
44
  let cancelled = false;
42
45
  Promise.all(
43
46
  idList.map((id) =>
44
47
  apiJson(`/api/templates/${id}`).then((res) => ({
45
48
  id,
46
49
  raw: res?.data ?? res,
47
- }))
48
- )
50
+ })),
51
+ ),
49
52
  )
50
53
  .then((results) => {
51
54
  if (cancelled) return;
52
55
  const map = {};
53
56
  results.forEach(({ id, raw }) => {
54
57
  const t = ensureTemplateShape(normalizeTemplate(raw) ?? raw);
58
+ // eslint-disable-next-line fp/no-mutation
55
59
  if (t) map[id] = t;
56
60
  });
57
61
  setTemplatesById(map);
58
62
  })
59
63
  .catch(() => {});
60
64
  return () => {
65
+ // eslint-disable-next-line fp/no-mutation
61
66
  cancelled = true;
62
67
  };
63
68
  }, [idsKey]);
@@ -653,8 +653,7 @@ export default {
653
653
  "Content unchanged",
654
654
  "structures.uploadStructures.failed.note.invalid_transition":
655
655
  "Invalid note transition",
656
- "structures.uploadStructures.failed.note.conflict":
657
- "Note conflict",
656
+ "structures.uploadStructures.failed.note.conflict": "Note conflict",
658
657
  "structures.uploadStructures.success.content":
659
658
  "Updated extra info of {count} structures",
660
659
  "structures.uploadStructures.success.content.any":
@@ -673,8 +673,7 @@ export default {
673
673
  "Contenido sin cambios",
674
674
  "structures.uploadStructures.failed.note.invalid_transition":
675
675
  "Transición de nota no válida",
676
- "structures.uploadStructures.failed.note.conflict":
677
- "Conflicto de nota",
676
+ "structures.uploadStructures.failed.note.conflict": "Conflicto de nota",
678
677
  "structures.uploadStructures.success.content":
679
678
  "Se ha actualizado la información adicional de {count} estructuras",
680
679
  "structures.uploadStructures.success.content.any":
@@ -3,5 +3,5 @@ import en from "./en";
3
3
 
4
4
  export default {
5
5
  es,
6
- en
6
+ en,
7
7
  };
@@ -11,22 +11,22 @@ describe("reducers: bulkUpdateStructuresLoading", () => {
11
11
  it("should be true after receiving the bulkUpdateStructures.TRIGGER action", () => {
12
12
  expect(
13
13
  bulkUpdateStructuresLoading(fooState, {
14
- type: bulkUpdateStructures.TRIGGER
15
- })
14
+ type: bulkUpdateStructures.TRIGGER,
15
+ }),
16
16
  ).toBe(true);
17
17
  });
18
18
 
19
19
  it("should be false after receiving the bulkUpdateStructures.FULFILL action", () => {
20
20
  expect(
21
21
  bulkUpdateStructuresLoading(fooState, {
22
- type: bulkUpdateStructures.FULFILL
23
- })
22
+ type: bulkUpdateStructures.FULFILL,
23
+ }),
24
24
  ).toBe(false);
25
25
  });
26
26
 
27
27
  it("should ignore unhandled actions", () => {
28
28
  expect(bulkUpdateStructuresLoading(fooState, { type: "FOO" })).toBe(
29
- fooState
29
+ fooState,
30
30
  );
31
31
  });
32
32
  });
@@ -13,7 +13,7 @@ describe("reducers: creatingGrantRequestApproval", () => {
13
13
  expect(
14
14
  creatingGrantRequestApproval(fooState, {
15
15
  type: createGrantRequestApproval.TRIGGER,
16
- })
16
+ }),
17
17
  ).toBe(true);
18
18
  });
19
19
 
@@ -21,13 +21,13 @@ describe("reducers: creatingGrantRequestApproval", () => {
21
21
  expect(
22
22
  creatingGrantRequestApproval(fooState, {
23
23
  type: createGrantRequestApproval.FULFILL,
24
- })
24
+ }),
25
25
  ).toBe(initialState);
26
26
  });
27
27
 
28
28
  it("should ignore unknown actions", () => {
29
29
  expect(creatingGrantRequestApproval(fooState, { type: "FOO" })).toBe(
30
- fooState
30
+ fooState,
31
31
  );
32
32
  });
33
33
  });
@@ -11,16 +11,16 @@ describe("reducers: csvGraphDownloading", () => {
11
11
  it("should be true after receiving the downloadCsvGraph.TRIGGER action", () => {
12
12
  expect(
13
13
  csvGraphDownloading(fooState, {
14
- type: downloadCsvGraph.TRIGGER
15
- })
14
+ type: downloadCsvGraph.TRIGGER,
15
+ }),
16
16
  ).toBe(true);
17
17
  });
18
18
 
19
19
  it("should be false after receiving the downloadCsvGraph.FULFILL action", () => {
20
20
  expect(
21
21
  csvGraphDownloading(fooState, {
22
- type: downloadCsvGraph.FULFILL
23
- })
22
+ type: downloadCsvGraph.FULFILL,
23
+ }),
24
24
  ).toBe(false);
25
25
  });
26
26
 
@@ -76,19 +76,19 @@ describe("reducers: ddMessage", () => {
76
76
 
77
77
  it("should handle the createReferenceDataset.SUCCESS action", () => {
78
78
  expect(ddMessage(fooState, createReferenceDataset.success())).toMatchObject(
79
- { header: "alert.createReferenceDataset.success.header" }
79
+ { header: "alert.createReferenceDataset.success.header" },
80
80
  );
81
81
  });
82
82
 
83
83
  it("should handle the deleteReferenceDataset.SUCCESS action", () => {
84
84
  expect(ddMessage(fooState, deleteReferenceDataset.success())).toMatchObject(
85
- { header: "alert.deleteReferenceDataset.success.header" }
85
+ { header: "alert.deleteReferenceDataset.success.header" },
86
86
  );
87
87
  });
88
88
 
89
89
  it("should handle the updateReferenceDataset.SUCCESS action", () => {
90
90
  expect(ddMessage(fooState, updateReferenceDataset.success())).toMatchObject(
91
- { header: "alert.updateReferenceDataset.success.header" }
91
+ { header: "alert.updateReferenceDataset.success.header" },
92
92
  );
93
93
  });
94
94
  });
@@ -21,7 +21,7 @@ describe("reducers: grantFilters", () => {
21
21
  grantFilters(state, {
22
22
  type: fetchGrantFilters.SUCCESS,
23
23
  payload,
24
- })
24
+ }),
25
25
  ).toEqual(data);
26
26
  });
27
27
 
@@ -21,7 +21,7 @@ describe("reducers: grantQuery", () => {
21
21
  const activePage = 123;
22
22
  const payload = { activePage };
23
23
  expect(
24
- grantQuery(fooState, { type: selectGrantPage.TRIGGER, payload })
24
+ grantQuery(fooState, { type: selectGrantPage.TRIGGER, payload }),
25
25
  ).toEqual({ ...fooState, page: activePage });
26
26
  });
27
27
 
@@ -49,7 +49,7 @@ describe("reducers: grantQuery", () => {
49
49
 
50
50
  it("should return default page when filter is toggled", () => {
51
51
  expect(
52
- grantQuery(fooState, { type: toggleGrantFilterValue.TRIGGER })
52
+ grantQuery(fooState, { type: toggleGrantFilterValue.TRIGGER }),
53
53
  ).toEqual({
54
54
  ...fooState,
55
55
  page: 1,
@@ -60,7 +60,7 @@ describe("reducers: grantQuery", () => {
60
60
  it("should set sort from payload and set page to 1", () => {
61
61
  const payload = [{ name2: "asc" }];
62
62
  expect(
63
- grantQuery(fooState, { type: sortGrants.TRIGGER, payload })
63
+ grantQuery(fooState, { type: sortGrants.TRIGGER, payload }),
64
64
  ).toMatchObject({ sort: [{ name2: "asc" }] });
65
65
  });
66
66
  });
@@ -70,14 +70,14 @@ describe("reducers: grantQuery", () => {
70
70
  it("should set the query from the payload", () => {
71
71
  const payload = { query };
72
72
  expect(
73
- grantQuery(fooState, { type: searchGrants.TRIGGER, payload })
73
+ grantQuery(fooState, { type: searchGrants.TRIGGER, payload }),
74
74
  ).toMatchObject({ query });
75
75
  });
76
76
 
77
77
  it("when query is not empty it should order by relevance", () => {
78
78
  const payload = { query };
79
79
  expect(
80
- grantQuery(fooState, { type: searchGrants.TRIGGER, payload })
80
+ grantQuery(fooState, { type: searchGrants.TRIGGER, payload }),
81
81
  ).toMatchObject({
82
82
  query,
83
83
  sort: [{ _score: "desc" }],
@@ -87,7 +87,7 @@ describe("reducers: grantQuery", () => {
87
87
  it("when query is empty it should order by name", () => {
88
88
  const payload = { query: "" };
89
89
  expect(
90
- grantQuery(fooState, { type: searchGrants.TRIGGER, payload })
90
+ grantQuery(fooState, { type: searchGrants.TRIGGER, payload }),
91
91
  ).toMatchObject({
92
92
  query: "",
93
93
  sort: [{ "data_structure_version.name.raw": "asc" }],
@@ -24,7 +24,7 @@ describe("reducers: grantRequests", () => {
24
24
 
25
25
  it("should handle the clearGrantRequests.SUCCESS action", () => {
26
26
  expect(grantRequests(fooState, { type: clearGrantRequests.TRIGGER })).toBe(
27
- initialState
27
+ initialState,
28
28
  );
29
29
  });
30
30
 
@@ -33,7 +33,7 @@ describe("reducers: grantRequests", () => {
33
33
  grantRequests(fooState, {
34
34
  type: fetchGrantRequests.SUCCESS,
35
35
  payload: { data },
36
- })
36
+ }),
37
37
  ).toMatchObject(data);
38
38
  });
39
39
 
@@ -27,7 +27,7 @@ describe("reducers: grantRequestsCart", () => {
27
27
  grantRequestsCart(initialState, {
28
28
  type: addGrantRequestToCart.TRIGGER,
29
29
  payload: structure,
30
- })
30
+ }),
31
31
  ).toEqual(expectedState);
32
32
  });
33
33
 
@@ -41,7 +41,7 @@ describe("reducers: grantRequestsCart", () => {
41
41
  grantRequestsCart(initialState, {
42
42
  type: addGrantRequestToCart.TRIGGER,
43
43
  payload: structure,
44
- })
44
+ }),
45
45
  ).toEqual(expectedState);
46
46
  });
47
47
 
@@ -52,8 +52,8 @@ describe("reducers: grantRequestsCart", () => {
52
52
  expect(
53
53
  grantRequestsCart(
54
54
  { structures },
55
- { type: addGrantRequestToCart.TRIGGER, payload: structure }
56
- )
55
+ { type: addGrantRequestToCart.TRIGGER, payload: structure },
56
+ ),
57
57
  ).toEqual(expectedState);
58
58
  });
59
59
 
@@ -72,7 +72,7 @@ describe("reducers: grantRequestsCart", () => {
72
72
  grantRequestsCart(stateWithModificationGrant, {
73
73
  type: addGrantRequestToCart.TRIGGER,
74
74
  payload: structure,
75
- })
75
+ }),
76
76
  ).toEqual(expectedState);
77
77
  });
78
78
 
@@ -91,10 +91,10 @@ describe("reducers: grantRequestsCart", () => {
91
91
  type: addGrantRequestToCart.TRIGGER,
92
92
  payload: structure_1,
93
93
  }),
94
- { type: addGrantRequestToCart.TRIGGER, payload: structure_2 }
94
+ { type: addGrantRequestToCart.TRIGGER, payload: structure_2 },
95
95
  ),
96
- { type: addGrantRequestToCart.TRIGGER, payload: structure_3 }
97
- )
96
+ { type: addGrantRequestToCart.TRIGGER, payload: structure_3 },
97
+ ),
98
98
  ).toEqual(expectedState);
99
99
  });
100
100
 
@@ -107,8 +107,8 @@ describe("reducers: grantRequestsCart", () => {
107
107
  expect(
108
108
  grantRequestsCart(
109
109
  { structures },
110
- { type: removeGrantRequestFromCart.TRIGGER, payload: structure }
111
- )
110
+ { type: removeGrantRequestFromCart.TRIGGER, payload: structure },
111
+ ),
112
112
  ).toEqual(expectedState);
113
113
  });
114
114
 
@@ -121,8 +121,8 @@ describe("reducers: grantRequestsCart", () => {
121
121
  expect(
122
122
  grantRequestsCart(
123
123
  { structures },
124
- { type: removeGrantRequestFromCart.TRIGGER, payload: structure }
125
- )
124
+ { type: removeGrantRequestFromCart.TRIGGER, payload: structure },
125
+ ),
126
126
  ).toEqual(expectedState);
127
127
  });
128
128
 
@@ -136,7 +136,7 @@ describe("reducers: grantRequestsCart", () => {
136
136
  grantRequestsCart(initialState, {
137
137
  type: selectGrantRequestTemplate.TRIGGER,
138
138
  payload: template,
139
- })
139
+ }),
140
140
  ).toEqual(expectedState);
141
141
  });
142
142
 
@@ -156,7 +156,7 @@ describe("reducers: grantRequestsCart", () => {
156
156
  grantRequestsCart(stateWithTemplate, {
157
157
  type: updateGrantRequestTemplateContent.TRIGGER,
158
158
  payload: { content, valid },
159
- })
159
+ }),
160
160
  ).toEqual(expectedState);
161
161
  });
162
162
 
@@ -176,7 +176,7 @@ describe("reducers: grantRequestsCart", () => {
176
176
  grantRequestsCart(stateWithTemplate, {
177
177
  type: updateGrantRequestTemplateContent.TRIGGER,
178
178
  payload: { content, valid },
179
- })
179
+ }),
180
180
  ).toEqual(expectedState);
181
181
  });
182
182
 
@@ -192,7 +192,7 @@ describe("reducers: grantRequestsCart", () => {
192
192
  grantRequestsCart(initialState, {
193
193
  type: setGrantChangeRequestCart.TRIGGER,
194
194
  payload: { structure, grant },
195
- })
195
+ }),
196
196
  ).toEqual(expectedState);
197
197
  });
198
198
 
@@ -212,7 +212,7 @@ describe("reducers: grantRequestsCart", () => {
212
212
  grantRequestsCart(stateWithStructures, {
213
213
  type: setGrantChangeRequestCart.TRIGGER,
214
214
  payload: { structure, grant },
215
- })
215
+ }),
216
216
  ).toEqual(expectedState);
217
217
  });
218
218
 
@@ -235,7 +235,7 @@ describe("reducers: grantRequestsCart", () => {
235
235
  grantRequestsCart(initialState, {
236
236
  type: setGrantChangeRequestCart.TRIGGER,
237
237
  payload: { structure, grant },
238
- })
238
+ }),
239
239
  ).toEqual(expectedState);
240
240
  });
241
241
 
@@ -257,7 +257,7 @@ describe("reducers: grantRequestsCart", () => {
257
257
  grantRequestsCart(stateWithPopulation, {
258
258
  type: updateGrantRequestFilter.TRIGGER,
259
259
  payload,
260
- })
260
+ }),
261
261
  ).toEqual(expectedState);
262
262
  });
263
263
 
@@ -279,7 +279,7 @@ describe("reducers: grantRequestsCart", () => {
279
279
  grantRequestsCart(stateWithPopulation, {
280
280
  type: updateGrantRequestFilter.TRIGGER,
281
281
  payload,
282
- })
282
+ }),
283
283
  ).toEqual(expectedState);
284
284
  });
285
285
 
@@ -301,7 +301,7 @@ describe("reducers: grantRequestsCart", () => {
301
301
  grantRequestsCart(stateWithPopulation, {
302
302
  type: updateGrantRequestFilter.TRIGGER,
303
303
  payload,
304
- })
304
+ }),
305
305
  ).toEqual(expectedState);
306
306
  });
307
307
 
@@ -323,19 +323,19 @@ describe("reducers: grantRequestsCart", () => {
323
323
  grantRequestsCart(stateWithPopulation, {
324
324
  type: updateGrantRequestFilter.TRIGGER,
325
325
  payload,
326
- })
326
+ }),
327
327
  ).toEqual(expectedState);
328
328
  });
329
329
 
330
330
  it("checkoutGrantRequest.SUCCESS should return the initialState and clear groupTemplates", () => {
331
331
  expect(
332
- grantRequestsCart({ foo: "bar" }, { type: checkoutGrantRequest.SUCCESS })
332
+ grantRequestsCart({ foo: "bar" }, { type: checkoutGrantRequest.SUCCESS }),
333
333
  ).toEqual({ ...initialState, groupTemplates: {} });
334
334
  });
335
335
 
336
336
  it("should handle initGroupTemplates.TRIGGER", () => {
337
337
  const payload = {
338
- "123": { template: "Template A", templateContent: {}, valid: false },
338
+ 123: { template: "Template A", templateContent: {}, valid: false },
339
339
  others: { template: null, templateContent: {}, valid: false },
340
340
  };
341
341
  const expectedState = {
@@ -346,7 +346,7 @@ describe("reducers: grantRequestsCart", () => {
346
346
  grantRequestsCart(initialState, {
347
347
  type: initGroupTemplates.TRIGGER,
348
348
  payload,
349
- })
349
+ }),
350
350
  ).toEqual(expectedState);
351
351
  });
352
352
 
@@ -354,20 +354,20 @@ describe("reducers: grantRequestsCart", () => {
354
354
  const stateWithGroups = {
355
355
  ...initialState,
356
356
  groupTemplates: {
357
- "123": { template: null, templateContent: {}, valid: false },
357
+ 123: { template: null, templateContent: {}, valid: false },
358
358
  },
359
359
  };
360
360
  const expectedState = {
361
361
  ...stateWithGroups,
362
362
  groupTemplates: {
363
- "123": { template: "My Template", templateContent: {}, valid: false },
363
+ 123: { template: "My Template", templateContent: {}, valid: false },
364
364
  },
365
365
  };
366
366
  expect(
367
367
  grantRequestsCart(stateWithGroups, {
368
368
  type: selectGrantRequestTemplateForGroup.TRIGGER,
369
369
  payload: { key: "123", template: "My Template" },
370
- })
370
+ }),
371
371
  ).toEqual(expectedState);
372
372
  });
373
373
 
@@ -375,14 +375,14 @@ describe("reducers: grantRequestsCart", () => {
375
375
  const stateWithGroups = {
376
376
  ...initialState,
377
377
  groupTemplates: {
378
- "123": { template: "T", templateContent: {}, valid: false },
378
+ 123: { template: "T", templateContent: {}, valid: false },
379
379
  },
380
380
  };
381
381
  const content = { field1: { value: "x", origin: "user" } };
382
382
  const expectedState = {
383
383
  ...stateWithGroups,
384
384
  groupTemplates: {
385
- "123": {
385
+ 123: {
386
386
  template: "T",
387
387
  templateContent: content,
388
388
  valid: true,
@@ -393,7 +393,7 @@ describe("reducers: grantRequestsCart", () => {
393
393
  grantRequestsCart(stateWithGroups, {
394
394
  type: updateGrantRequestTemplateContentForGroup.TRIGGER,
395
395
  payload: { key: "123", content, valid: [] },
396
- })
396
+ }),
397
397
  ).toEqual(expectedState);
398
398
  });
399
399
 
@@ -12,7 +12,7 @@ describe("reducers: grantRequestsLoading", () => {
12
12
  expect(
13
13
  grantRequestsLoading(fooState, {
14
14
  type: clearGrantRequests.TRIGGER,
15
- })
15
+ }),
16
16
  ).toBe(initialState);
17
17
  });
18
18
 
@@ -20,7 +20,7 @@ describe("reducers: grantRequestsLoading", () => {
20
20
  expect(
21
21
  grantRequestsLoading(fooState, {
22
22
  type: fetchGrantRequests.TRIGGER,
23
- })
23
+ }),
24
24
  ).toBe(true);
25
25
  });
26
26
 
@@ -28,7 +28,7 @@ describe("reducers: grantRequestsLoading", () => {
28
28
  expect(
29
29
  grantRequestsLoading(fooState, {
30
30
  type: fetchGrantRequests.FULFILL,
31
- })
31
+ }),
32
32
  ).toBe(initialState);
33
33
  });
34
34
 
@@ -17,7 +17,7 @@ describe("reducers: grantRequestsQuery", () => {
17
17
  grantRequestsQuery(fooState, {
18
18
  type: setGrantRequestsQuery.TRIGGER,
19
19
  payload,
20
- })
20
+ }),
21
21
  ).toEqual({ ...fooState, ...payload });
22
22
  });
23
23
 
@@ -25,7 +25,7 @@ describe("reducers: grantRequestsQuery", () => {
25
25
  expect(
26
26
  grantRequestsQuery(fooState, {
27
27
  type: removeGrantRequestsQuery.TRIGGER,
28
- })
28
+ }),
29
29
  ).toEqual(initialState);
30
30
  });
31
31