Skip to content

Commit

Permalink
feat: add a story for executions list (#6784)
Browse files Browse the repository at this point in the history
  • Loading branch information
elevatebart authored Jan 16, 2025
1 parent f8279c6 commit 106816b
Show file tree
Hide file tree
Showing 7 changed files with 578 additions and 2 deletions.
25 changes: 25 additions & 0 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/executions/Executions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
</el-card>
</template>

<template #table v-if="executions.length">
<template #table v-if="executions?.length">
<select-table
ref="selectTable"
:data="executions"
Expand Down
2 changes: 1 addition & 1 deletion ui/src/mixins/restoreUrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
computed: {
localStorageName() {
const tenant = this.$route.params.tenant;
return `${this.$route.name.replace("/", "_")}${tenant ? "_" + tenant : ""}_restore_url`
return `${this.$route.name?.replace("/", "_")}${tenant ? "_" + tenant : ""}_restore_url`
},

localStorageValue() {
Expand Down
51 changes: 51 additions & 0 deletions ui/tests/storybook/components/executions/Executions-s.fixture.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"results": [
{
"id": "airbyte-sync",
"flowId": "airbyte-sync",
"namespace": "company.team",
"revision": 1,
"disabled": false,
"deleted": false,
"state": {
"current": "RUNNING"
},
"tasks": [
{
"id": "data_ingestion",
"type": "io.kestra.plugin.airbyte.connections.Sync",
"url": "http://host.docker.internal:8000/",
"username": "{{ secret('AIRBYTE_USERNAME') }}",
"password": "{{ secret('AIRBYTE_PASSWORD') }}",
"connectionId": "e3b1ce92-547c-436f-b1e8-23b6936c12ab"
}
],
"triggers": [
{
"id": "every_minute",
"type": "io.kestra.plugin.core.trigger.Schedule",
"cron": "*/1 * * * *"
}
]
},
{
"id": "child",
"flowId": "airbyte-sync",
"namespace": "company.team",
"revision": 1,
"disabled": false,
"deleted": false,
"state": {
"current": "FAILED"
},
"tasks": [
{
"id": "hello",
"type": "io.kestra.plugin.core.log.Log",
"message": "Hello from {{ flow.id }}"
}
]
}
],
"total": 2
}
Loading

0 comments on commit 106816b

Please sign in to comment.