@prefecthq/prefect-ui-library 3.11.19 → 3.11.21
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.
- package/dist/{RunsPageWithDefaultFilter-BhVVK-3-.mjs → RunsPageWithDefaultFilter-BRNxzEFA.mjs} +2 -2
- package/dist/{RunsPageWithDefaultFilter-BhVVK-3-.mjs.map → RunsPageWithDefaultFilter-BRNxzEFA.mjs.map} +1 -1
- package/dist/{WorkQueueToWorkPoolQueueRedirect-DA3b0_mc.mjs → WorkQueueToWorkPoolQueueRedirect-Bj0-59z5.mjs} +2 -2
- package/dist/{WorkQueueToWorkPoolQueueRedirect-DA3b0_mc.mjs.map → WorkQueueToWorkPoolQueueRedirect-Bj0-59z5.mjs.map} +1 -1
- package/dist/{index-CLfWuFoz.mjs → index-Cvqk7HR7.mjs} +10 -5
- package/dist/{index-CLfWuFoz.mjs.map → index-Cvqk7HR7.mjs.map} +1 -1
- package/dist/prefect-ui-library.mjs +1 -1
- package/dist/prefect-ui-library.umd.js +2 -2
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/types/states.d.ts +2 -1
- package/package.json +4 -4
- package/src/components/FlowRunsBarChart.vue +11 -2
- package/src/maps/dashboard.ts +3 -0
- package/src/styles/index.css +12 -0
- package/src/types/states.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prefecthq/prefect-ui-library",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.21",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -59,19 +59,19 @@
|
|
|
59
59
|
"@types/lodash.merge": "4.6.9",
|
|
60
60
|
"@types/node": "^22.9.0",
|
|
61
61
|
"@types/prismjs": "^1.26.5",
|
|
62
|
-
"@vitejs/plugin-vue": "5.
|
|
62
|
+
"@vitejs/plugin-vue": "5.2.0",
|
|
63
63
|
"auto-changelog": "^2.5.0",
|
|
64
64
|
"autoprefixer": "10.4.20",
|
|
65
65
|
"eslint": "8.57.1",
|
|
66
66
|
"lodash.camelcase": "4.3.0",
|
|
67
67
|
"lodash.debounce": "4.0.8",
|
|
68
68
|
"postcss": "8.4.49",
|
|
69
|
-
"tailwindcss": "3.4.
|
|
69
|
+
"tailwindcss": "3.4.15",
|
|
70
70
|
"tsc-alias": "1.8.10",
|
|
71
71
|
"typescript": "5.6.3",
|
|
72
72
|
"vite": "5.4.11",
|
|
73
73
|
"vite-svg-loader": "^5.1.0",
|
|
74
|
-
"vitest": "^2.1.
|
|
74
|
+
"vitest": "^2.1.5",
|
|
75
75
|
"vue-tsc": "^2.1.10"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
@@ -57,6 +57,10 @@
|
|
|
57
57
|
return null
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
if (barsDebounced.value === 0) {
|
|
61
|
+
return null
|
|
62
|
+
}
|
|
63
|
+
|
|
60
64
|
const base = toValue(props.filter)
|
|
61
65
|
const filter: FlowRunsFilter = {
|
|
62
66
|
limit: barsDebounced.value,
|
|
@@ -68,7 +72,12 @@
|
|
|
68
72
|
|
|
69
73
|
const { flowRuns } = useFlowRuns(filter)
|
|
70
74
|
|
|
71
|
-
const barFlowRuns = computed(() =>
|
|
75
|
+
const barFlowRuns = computed(() => {
|
|
76
|
+
const runsWithGaps = organizeFlowRunsWithGaps(flowRuns.value)
|
|
77
|
+
|
|
78
|
+
// organizeFlowRunsWithGaps can return more values than the number of bars requested
|
|
79
|
+
return runsWithGaps.slice(-bars.value)
|
|
80
|
+
})
|
|
72
81
|
|
|
73
82
|
const maxDuration = computed(() => flowRuns.value.reduce((max, flowRun) => {
|
|
74
83
|
if (flowRun.duration > max) {
|
|
@@ -144,7 +153,7 @@
|
|
|
144
153
|
})
|
|
145
154
|
: flowRuns
|
|
146
155
|
|
|
147
|
-
|
|
156
|
+
|
|
148
157
|
function getEmptyBucket(index: number): number | null {
|
|
149
158
|
if (index < 0) {
|
|
150
159
|
return null
|
package/src/maps/dashboard.ts
CHANGED
|
@@ -8,6 +8,7 @@ export const mapWorkspaceDashboardFilterToTaskRunsFilter: MapFunction<WorkspaceD
|
|
|
8
8
|
return {
|
|
9
9
|
flowRuns: {
|
|
10
10
|
tags: {
|
|
11
|
+
operator: 'or',
|
|
11
12
|
name: source.tags,
|
|
12
13
|
},
|
|
13
14
|
parentTaskRunIdNull: source.hideSubflows ? true : undefined,
|
|
@@ -28,6 +29,7 @@ export const mapWorkspaceDashboardFilterToTaskRunsHistoryFilter: MapFunction<Wor
|
|
|
28
29
|
historyIntervalSeconds: timeSpanInSeconds / 20,
|
|
29
30
|
flowRuns: {
|
|
30
31
|
tags: {
|
|
32
|
+
operator: 'or',
|
|
31
33
|
name: source.tags,
|
|
32
34
|
},
|
|
33
35
|
parentTaskRunIdNull: source.hideSubflows ? true : undefined,
|
|
@@ -43,6 +45,7 @@ export const mapWorkspaceDashboardFilterToFlowRunsFilter: MapFunction<WorkspaceD
|
|
|
43
45
|
expectedStartTimeAfter: startDate,
|
|
44
46
|
expectedStartTimeBefore: endDate,
|
|
45
47
|
tags: {
|
|
48
|
+
operator: 'or',
|
|
46
49
|
name: source.tags,
|
|
47
50
|
},
|
|
48
51
|
parentTaskRunIdNull: source.hideSubflows ? true : undefined,
|
package/src/styles/index.css
CHANGED
|
@@ -3,3 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
@tailwind components;
|
|
5
5
|
@tailwind utilities;
|
|
6
|
+
|
|
7
|
+
@layer utilities {
|
|
8
|
+
/* Chrome, Safari and Opera */
|
|
9
|
+
.no-scrollbar::-webkit-scrollbar {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.no-scrollbar {
|
|
14
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
15
|
+
scrollbar-width: none; /* Firefox */
|
|
16
|
+
}
|
|
17
|
+
}
|
package/src/types/states.ts
CHANGED
|
@@ -14,6 +14,7 @@ export const prefectStateNames = [
|
|
|
14
14
|
'Running',
|
|
15
15
|
'Retrying',
|
|
16
16
|
'Completed',
|
|
17
|
+
'Cached',
|
|
17
18
|
'Cancelled',
|
|
18
19
|
'Cancelling',
|
|
19
20
|
'Crashed',
|
|
@@ -34,6 +35,7 @@ export const prefectStateNameTypes = {
|
|
|
34
35
|
'Running': 'running',
|
|
35
36
|
'Retrying': 'running',
|
|
36
37
|
'Completed': 'completed',
|
|
38
|
+
'Cached': 'completed',
|
|
37
39
|
'Cancelled': 'cancelled',
|
|
38
40
|
'Cancelling': 'cancelling',
|
|
39
41
|
'Crashed': 'crashed',
|