From 106816bf37ff1527465e93927616498096991c57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barth=C3=A9l=C3=A9my=20Ledoux?= Date: Thu, 16 Jan 2025 10:49:57 +0100 Subject: [PATCH] feat: add a story for executions list (#6784) --- ui/package-lock.json | 25 ++ ui/package.json | 1 + ui/src/components/executions/Executions.vue | 2 +- ui/src/mixins/restoreUrl.js | 2 +- .../executions/Executions-s.fixture.json | 51 +++ .../executions/Executions.fixture.json | 404 ++++++++++++++++++ .../executions/Executions.stories.jsx | 95 ++++ 7 files changed, 578 insertions(+), 2 deletions(-) create mode 100644 ui/tests/storybook/components/executions/Executions-s.fixture.json create mode 100644 ui/tests/storybook/components/executions/Executions.fixture.json create mode 100644 ui/tests/storybook/components/executions/Executions.stories.jsx diff --git a/ui/package-lock.json b/ui/package-lock.json index 9d186cbca44..a9a0733a27a 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -95,6 +95,7 @@ "rollup-plugin-visualizer": "^5.12.0", "sass": "^1.83.0", "storybook": "^8.4.7", + "storybook-vue3-router": "^5.0.0", "typescript": "^5.7.2", "typescript-eslint": "^8.18.2", "vite": "^6.0.5", @@ -18513,6 +18514,30 @@ } } }, + "node_modules/storybook-vue3-router": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/storybook-vue3-router/-/storybook-vue3-router-5.0.0.tgz", + "integrity": "sha512-Q5ePPv8xyYT+9IzcEMSAQeCT8OlPDX0rfUfYCmiYDXsGPvvDej2Oyid3wyaxZmU/LXt1XzMDRO3v9qk/EN6pXg==", + "dev": true, + "license": "MIT", + "dependencies": { + "vue-router": "^4.2.5" + }, + "peerDependencies": { + "@storybook/preview-api": "7.x||>=7.0.0-rc.0", + "@storybook/vue3": "7.x||>=7.0.0-rc.0", + "vue": "3.x", + "vue-router": "4.x" + }, + "peerDependenciesMeta": { + "vue": { + "optional": true + }, + "vue-router": { + "optional": true + } + } + }, "node_modules/string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", diff --git a/ui/package.json b/ui/package.json index 466050b0b1a..3468a7a9258 100644 --- a/ui/package.json +++ b/ui/package.json @@ -105,6 +105,7 @@ "rollup-plugin-visualizer": "^5.12.0", "sass": "^1.83.0", "storybook": "^8.4.7", + "storybook-vue3-router": "^5.0.0", "typescript": "^5.7.2", "typescript-eslint": "^8.18.2", "vite": "^6.0.5", diff --git a/ui/src/components/executions/Executions.vue b/ui/src/components/executions/Executions.vue index 30e555ff1e0..e9761c65435 100644 --- a/ui/src/components/executions/Executions.vue +++ b/ui/src/components/executions/Executions.vue @@ -55,7 +55,7 @@ -