commit dac4b71e72d5b1847719a9a41fe248f160432be7 Author: Pedro Amorim Date: Wed Mar 12 14:11:49 2025 -0100 Bug 39320: Add Cypress tests Test plan: 1) Enable ERMModule 2) Visit ERM: /cgi-bin/koha/erm/erm.pl 3) Notice you now have a 'dashboard' homepage showing 4 different widgets 4) Click 'Open Widget Picker'. Remove and add different widgets. Close 5) Drag and drop the widgets around the dashboard, from left to right, top to bottom 6) Click the context menu (vertical dots) on each of the widgets. Click 'move to right', 'move to left', 'remove'. 7) On the 'Licenses needing action', notice there is a 'Settings' item option. Click that, test different settings values. Close settings. 8) Using the widget picker or context menu for the respective widgets, remove all widgets except one. Click away i.e. 'Agreements' on the left menu. Go back to home by clicking 'Home'. Notice your dashboard is as you left it. 9) Enable all widgets, rearrange them by dragging and dropping in different places. Repeat the previous exercise. Notice the dashboard keeps the widgets arranged as you left them. 10) Add some test data, on k-t-d run: bash <(curl -s https://gist.githubusercontent.com/ammopt/8d74feff048b0732ed0362a204c3d8cd/raw/170cf83263c736ae8655b9e0332f4867a87435be/bug_39320_test_data.sh) 11) Refresh the homepage dashboard, check the 'Counts' are correct and links work, check that the 'Latest SUSHI Counter jobs' table now populates and links to the data provider as well as respective job. 12) For 'Licenses needing action', test different settings values and confirm the table filters the results as expected. 13) As before, click away and comeback to ERM home. Notice your 'Licenses needing actions' settings are kept as you left them. 14) For the 'eUsage report' widget, notice it says 'No saved reports are availble to run'. Create a new usage report at: /cgi-bin/koha/erm/eusage/reports 15) Click the 'Create report' tab, input the mandatory fields and enter a report name at the bottom of the page. Click 'Save report'. 16) Come back to ERM home. Notice the 'eUsage report' widget now shows a dropdown with a disabled 'Run' button. Pick the report you just created. Notice the 'Run' button is now enabled. Click 'Run'. Notice you get the report results screen (will show nothing as there is no usage data in this test exercise). 17) k-t-d: Run cypress tests (reset_all beforehand to clear test data): cypress run --spec t/cypress/integration/ERM/ModuleDashboard_spec.ts commit 3376bc920aae60df220f4013aceaeadbe47c52e3 Author: Pedro Amorim Date: Thu Feb 27 10:30:56 2025 -0100 Bug 39320: Add 'home' left menu item to ERM This is a bit hacky, but after hours of fighting with this I wasn't able to come up with a better soltuion. I suspect stores/navigation.js is doing too much and changing too much of the default router-link behaviour but I may be wrong. commit a722037e506d6521702b1ddedb5b0aeeb230190b Author: Pedro Amorim Date: Tue Feb 25 16:07:15 2025 +0000 Bug 39320: Add FA icons to ERM Wwould be great to improve the way we load icons to be available everywhere in Vue instead of just the specific module but on a different scope. commit 2a3ad03890abd303bced127dbff237f2849ba134 Author: Pedro Amorim Date: Fri Feb 21 15:25:17 2025 -0100 Bug 39320: Add dashboard to ERM home commit fe0103af046e3b12fae744884b0c9d03099c0da7 Author: Pedro Amorim Date: Tue Feb 25 16:06:24 2025 +0000 Bug 39320: Add ERM specific dashboard widgets commit 64b3b8a4615b31d5c676632b6e27578aaff0ce19 Author: Pedro Amorim Date: Thu Feb 27 15:35:38 2025 -0100 Bug 39320: Preparation: Add background jobs API client Required for the follow-up ERMLatestSUSHIJobs widget commit d1fc471caeab1709a8d771d4cdb7561898b54232 Author: Pedro Amorim Date: Wed Feb 26 11:12:28 2025 +0000 Bug 39320: Preparation: ERM counts API endpoint Required for the follow-up ERMCounts widget commit 0789d3430a9ab1423f5ce134bac714a6f93e761f Author: Pedro Amorim Date: Tue Feb 25 16:05:26 2025 +0000 Bug 39320: Preparation: Add base and wrapper components As well as wrapper support components BaseWidget component commit 2ca0888ba7e86a10dd5087e702d705f0803be1c3 Author: Pedro Amorim Date: Tue Feb 25 16:07:42 2025 +0000 Bug 39320: Add new npm dependencies: vue-draggable-next vue-cookies commit b3dfc874f73b76a6acf710a3c898f756dd69ee46 Author: Pedro Amorim Date: Fri Feb 28 08:57:38 2025 -0100 Bug 38201: Fix custom toolbar buttons for eholdings titles commit 0a51c07c7c347d546e26e2a8185a5f575ddc916a Author: Pedro Amorim Date: Tue Feb 18 12:26:25 2025 -0100 Bug 38201: Add 'id' property to FormRelationshipSelect commit f88a1b82e33477ed4dfad363520b64a92b3884bd Author: Matt Blenkinsop Date: Tue Feb 18 09:42:51 2025 +0000 Bug 38201: Add a loading tag to the patron search Fixes a longstanding FIXME commit d07babee441a32a0d27770de306c8a0806313de0 Author: Pedro Amorim Date: Mon Feb 17 14:34:50 2025 -0100 Bug 38201: Fix PatronSearch The event listener was being added infinitely. Meaning that when new realtionships were added, the previously added ones were still firing their previously registered events. commit 504521393c64385d368cf46307887a112f2baca2 Author: Pedro Amorim Date: Mon Feb 17 14:33:38 2025 -0100 Bug 38201: Ensure related user roles have index commit ca90c7c2a45e6a4d0a2463bc89ce274cd4f48083 Author: Pedro Amorim Date: Fri Feb 14 15:32:00 2025 -0100 Bug 38201: Clean-up FormElement where it's not needed commit f0a8efe40ca0f6c8c962d30b96ca2996e65df1b1 Author: Pedro Amorim Date: Mon Feb 17 09:37:04 2025 -0100 Bug 38201: Fix index concat on FormElement This moves the _ concat to the concat logic rather than having it be defined at the resourceAttrs level. This also makes it so that 'date' type attributes can also have indexRequired The index is now only concated when the indexRequired is true commit 606cde4bf9d9e2978b1415a589429d078a5e528d Author: Pedro Amorim Date: Mon Feb 17 09:17:42 2025 -0100 Bug 38201: DRY label in FormElement commit 41426ceeca86c11ab13e661239709be80bb5510e Author: Pedro Amorim Date: Fri Feb 14 14:59:01 2025 +0000 Bug 38201: Add inheritAttrs: false This prevents the props from being rendered as HTML element attributes commit 0f6bdbba84b472d5c77d9342993af6a6201d7d7a Author: Pedro Amorim Date: Fri Feb 14 10:21:00 2025 -0100 Bug 38201: Restore resourceName in ResourceList We need this to render dynamic id attributes based on the resourceName commit 6c29c7416fb621942e488bc253b68630efc681a7 Author: Pedro Amorim Date: Fri Feb 14 09:24:12 2025 -0100 Bug 38201: Only consider length of the field.type is relationshipWidget commit 413e2364536e8e24d608e467a3dfe14425521856 Author: Pedro Amorim Date: Wed Feb 12 13:02:45 2025 -0100 Bug 38201: Check for resourceAttrs before using it This enables certain resources (e.g. UsageDataProviderResource) to make partial use of BaseResource (like gotoResourceShow, doResourceDelete). commit 0ed051d135f3dfca625ca77f385c91433cd9bbcc Author: Pedro Amorim Date: Mon Feb 10 17:01:15 2025 +0000 Bug 38201: Add formGroupsDisplayMode to common resource props commit 72c0efa5a6794d1950b897a61cc4dd98abf41f75 Author: Pedro Amorim Date: Mon Feb 10 15:52:28 2025 -0100 Bug 38201: Fix and add relationshipRequiredKey commit 934ca33d844283e376dc5da63209ef659ddf0181 Author: Pedro Amorim Date: Mon Feb 10 15:51:54 2025 -0100 Bug 38201: Add allowMultipleChoices prop to FormRelationshipSelect to consider multiple relationship choices commit 6e901e45f215055466a82f030f018f2911f4d1bc Author: Pedro Amorim Date: Mon Feb 10 15:50:37 2025 -0100 Bug 38201: Consider a 'formatForForm' resource attribute option This will format the attribute value using that callback function after the resource has been fetched from the API commit 46f355fbaee63beb102c2f7c0fc953da74170ed4 Author: Pedro Amorim Date: Mon Feb 10 15:49:36 2025 -0100 Bug 38201: Add optional :multiple attribute to 'select' form elements commit 2f5493f370148c6e9c4fffcab386b77a1bcfad27 Author: Matt Blenkinsop Date: Fri Feb 7 11:24:06 2025 +0000 Bug 38201: DRY out getTableColumns commit 9c949cebd1f36552f708590a77bdf3a9fa2c3bd0 Author: Matt Blenkinsop Date: Fri Feb 7 10:47:51 2025 +0000 Bug 38201: Create a vendor type field commit f36b43554bf5334ae70a312498e04d7af212e8ca Author: Matt Blenkinsop Date: Fri Feb 7 10:43:27 2025 +0000 Bug 38201: Create a date type field for FlatPickr commit a5c39ce9257a09cff2e3b7d4cedd6c340a4971f6 Author: Matt Blenkinsop Date: Thu Feb 6 17:32:29 2025 +0000 Bug 38201: Add JSDoc comments to BaseResource commit 3430ab1cdbc63b73b13ba168013bfe33f56c0fb6 Author: Matt Blenkinsop Date: Thu Feb 6 15:11:41 2025 +0000 Bug 38201: Move filters to a slot and dynamically assign resource component props" commit 2fa103594d327747121ab278504dd62f26d7967e Author: Pedro Amorim Date: Thu Feb 6 14:23:05 2025 -0100 Bug 38201: Remove unused component imports commit 8a012be469a378fea3845b219d784e32c1878b44 Author: Pedro Amorim Date: Thu Feb 6 11:06:21 2025 +0000 Bug 38201: Add group accordion mode commit 2ffd436ed3dd7433dc79638393ed33cfcc7f4aed Author: Pedro Amorim Date: Tue Feb 4 16:20:33 2025 +0000 Bug 38201: Add type 'number' to FormElement commit 958f56ded5f5286d10d0552c50dfd7d5ac6b65b5 Author: Matt Blenkinsop Date: Thu Feb 6 11:48:36 2025 +0000 Bug 38201: Use resourceAttrs to generate new objects commit 533760ec4c21e6eba5ee2e5543a2515b93d6269e Author: Matt Blenkinsop Date: Wed Feb 5 11:31:31 2025 +0000 Bug 38201: Move component routing to BaseResource commit 0c11d8ac70ff2b92dff7d8963840ce8ed33fcf15 Author: Matt Blenkinsop Date: Wed Feb 5 10:13:24 2025 +0000 Bug 38201: Move additional fields logic to the element component tree commit cbf378fd0cc9e6a6c9d4a5be0c5a43e9e5fb0e32 Author: Matt Blenkinsop Date: Wed Feb 5 09:51:45 2025 +0000 Bug 38201: Prevent ResourceShow from showing groups with no data commit 1257e8db9af71196e25022a1af1718b4dc9af83e Author: Matt Blenkinsop Date: Tue Feb 4 16:28:23 2025 +0000 Bug 38201: Fix casing in formadd commit 03339296867aac7485c1ed51e2ba59082d947810 Author: Matt Blenkinsop Date: Tue Feb 4 15:51:36 2025 +0000 Bug 38201: Improve terminology and variable naming This patch changes some key terminology to improve clarity and fix some more obscure variable names commit bc2f9c57fbf419d453e00af57698ccc5d17c934d Author: Pedro Amorim Date: Tue Feb 4 09:47:09 2025 +0000 Bug 38201: Allow for form display groups as tabs commit 291a30fab0642777e6282e654cb87830eef2d748 Author: Matt Blenkinsop Date: Mon Feb 3 14:57:03 2025 +0000 Bug 38201: DRY assignAVs commit e54e2fb27d8ccff16a36d28a70ed54583fcd281f Author: Matt Blenkinsop Date: Fri Jan 31 17:37:40 2025 +0000 Bug 38201: Migrate local packages commit 272fba329e4fe8d7c5842d044fabc50d10323c07 Author: Pedro Amorim Date: Mon Feb 3 11:00:16 2025 +0000 Bug 38201: Add a ToolTip component commit 1dd5819da972ad4bf16f70f11d6dd48219bae2a4 Author: Pedro Amorim Date: Mon Feb 3 09:49:31 2025 +0000 Bug 38201: DRY required in FormElement commit 0a8ab0aa9c1e368e25df5c7e5f866191bf34deac Author: Matt Blenkinsop Date: Fri Jan 31 15:41:37 2025 +0000 Bug 38201: Prevent form fields from being bound to multiple objects commit 138e02d1f7079111b8bb70f28a35a4be6c08b13a Author: Matt Blenkinsop Date: Fri Jan 31 15:06:52 2025 +0000 Bug 38201: Make resource naming verbose commit 73fd23ceb7a2427e3a22d223df7bfa35240fd4fc Author: Matt Blenkinsop Date: Fri Jan 31 12:55:59 2025 +0000 Bug 38201: Introduce RelationshipTableDisplay for nested Kohatables commit 77a52ae11731bbc9a00bb8ae024e328ad87d0bb6 Author: Matt Blenkinsop Date: Thu Jan 30 16:59:56 2025 +0000 Bug 38201: Migrate local titles for list and formadd commit 7687e7e6254a3e01ff8d88c791055384863e5b1a Author: Matt Blenkinsop Date: Wed Jan 29 18:14:57 2025 +0000 Bug 38201: Migrate UserRoles and Documents to RelationshipWidget