Skip to content

Commit df3359c

Browse files
committed
Merge 'upstream/master' into save-layout
2 parents 40a6b24 + 3dcb322 commit df3359c

File tree

20 files changed

+934
-650
lines changed

20 files changed

+934
-650
lines changed

.yarn/releases/yarn-4.9.1.cjs renamed to .yarn/releases/yarn-4.9.2.cjs

Lines changed: 273 additions & 279 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ networkSettings:
1010

1111
nodeLinker: node-modules
1212

13-
yarnPath: .yarn/releases/yarn-4.9.1.cjs
13+
yarnPath: .yarn/releases/yarn-4.9.2.cjs

changes.d/2163.fix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed sorting controls appearing in wrong tab when multiple analysis view tabs are open.

changes.d/2174.fix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed spurious error when running a command on multiple workflows.

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
},
2626
"dependencies": {
2727
"@apollo/client": "3.13.8",
28-
"@hpcc-js/wasm": "2.22.4",
28+
"@hpcc-js/wasm": "2.23.0",
2929
"@lumino/default-theme": "2.1.10",
3030
"@lumino/widgets": "2.7.1",
3131
"@mdi/js": "7.4.47",
32-
"@vueuse/core": "13.1.0",
32+
"@vueuse/core": "13.3.0",
3333
"apexcharts": "3.54.1",
3434
"axios": "1.9.0",
3535
"dedent": "1.6.0",
@@ -42,26 +42,26 @@
4242
"mitt": "3.0.1",
4343
"nprogress": "1.0.0-1",
4444
"preact": "10.26.8",
45-
"simple-icons": "2.19.0",
45+
"simple-icons": "15.1.0",
4646
"subscriptions-transport-ws": "0.11.0",
4747
"svg-pan-zoom": "3.6.2",
4848
"vue": "3.5.16",
4949
"vue-i18n": "11.1.3",
5050
"vue-router": "4.5.1",
5151
"vue-the-mask": "0.11.1",
5252
"vue3-apexcharts": "1.8.0",
53-
"vuetify": "3.8.4",
53+
"vuetify": "3.8.8",
5454
"vuex": "4.1.0"
5555
},
5656
"devDependencies": {
5757
"@cypress/code-coverage": "3.14.4",
58-
"@vitejs/plugin-react": "4.5.0",
58+
"@vitejs/plugin-react": "4.5.1",
5959
"@vitejs/plugin-vue": "5.2.4",
60-
"@vitest/coverage-istanbul": "3.1.4",
60+
"@vitest/coverage-istanbul": "3.2.2",
6161
"@vue/test-utils": "2.4.6",
6262
"concurrently": "9.1.2",
6363
"cross-fetch": "4.1.0",
64-
"cypress": "14.4.0",
64+
"cypress": "14.4.1",
6565
"cypress-vite": "1.6.0",
6666
"eslint": "8.57.1",
6767
"eslint-config-standard": "17.1.0",
@@ -87,7 +87,7 @@
8787
"vite-plugin-eslint": "1.8.1",
8888
"vite-plugin-istanbul": "7.0.0",
8989
"vite-plugin-vuetify": "2.1.1",
90-
"vitest": "3.1.4"
90+
"vitest": "3.2.2"
9191
},
9292
"peerDependenciesMeta": {
9393
"react": {
@@ -100,5 +100,5 @@
100100
"bugs": {
101101
"url": "https://github.com/cylc/cylc-ui/issues"
102102
},
103-
"packageManager": "[email protected].1"
103+
"packageManager": "[email protected].2"
104104
}

src/components/core/Alert.vue

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -27,40 +27,35 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2727
>
2828
<template v-slot:actions>
2929
<v-btn
30-
icon
30+
:icon="mdiClose"
3131
@click="closeAlert"
3232
data-cy="snack-close"
33-
>
34-
<v-icon>{{ $options.icons.mdiClose }}</v-icon>
35-
</v-btn>
33+
/>
3634
</template>
37-
{{ alert.text }}
35+
<p>
36+
{{ alert.text }}
37+
</p>
38+
<p
39+
v-if="alert.detail"
40+
class="mt-2 opacity-80"
41+
>
42+
{{ alert.detail }}
43+
</p>
3844
</v-snackbar>
3945
</template>
4046

41-
<script>
47+
<script setup>
48+
import { computed } from 'vue'
49+
import { useStore } from 'vuex'
4250
import { mdiClose } from '@mdi/js'
43-
import { mapActions, mapState } from 'vuex'
4451
45-
export default {
46-
name: 'Alert',
52+
const store = useStore()
53+
const alert = computed(() => store.state.alert)
4754
48-
computed: {
49-
...mapState(['alert'])
50-
},
51-
52-
methods: {
53-
...mapActions(['setAlert']),
54-
/**
55-
* Dismisses the alert from the UI, also removing it from the Vuex store.
56-
*/
57-
closeAlert () {
58-
this.setAlert(null)
59-
}
60-
},
61-
62-
icons: {
63-
mdiClose
64-
}
55+
/**
56+
* Dismisses the alert from the UI, also removing it from the Vuex store.
57+
*/
58+
function closeAlert () {
59+
store.dispatch('setAlert', null)
6560
}
6661
</script>

src/components/cylc/analysis/BoxPlot.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
<template>
1919
<Teleport
2020
v-if="sortInputTeleportTarget"
21-
:to="`#${sortInputTeleportTarget}`"
21+
:to="sortInputTeleportTarget"
2222
>
2323
<div class="d-flex flex-grow-1 col-gap-1">
2424
<v-select
@@ -102,7 +102,7 @@ export default {
102102
},
103103
/** ID of element to teleport the sorting input (or don't render if null) */
104104
sortInputTeleportTarget: {
105-
type: String,
105+
type: HTMLElement,
106106
default: null,
107107
},
108108
},

src/components/cylc/analysis/TimeSeries.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
<template>
1919
<Teleport
2020
v-if="sortInputTeleportTarget"
21-
:to="`#${sortInputTeleportTarget}`"
21+
:to="sortInputTeleportTarget"
2222
>
2323
<div class="d-flex flex-grow-1 col-gap-1">
2424
<v-autocomplete
@@ -200,7 +200,7 @@ export default {
200200
},
201201
/** Where to teleport the sorting input (or don't render if null) */
202202
sortInputTeleportTarget: {
203-
type: String,
203+
type: HTMLElement,
204204
default: null,
205205
},
206206
},

src/components/cylc/commandMenu/Menu.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ export default {
226226
ret += ''
227227
if (this.node.type === 'workflow') {
228228
ret += upperFirst(this.node.node.statusMsg || this.node.node.status || 'state unknown')
229+
if (this.node.node.cylcVersion) {
230+
ret += ` • Cylc ${this.node.node.cylcVersion}`
231+
}
229232
} else {
230233
ret += upperFirst(this.node.node.state || 'state unknown')
231234
if (this.node.node.isHeld) {

src/components/cylc/workspace/Toolbar.vue

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,20 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
8585
</div>
8686

8787
<!-- n-window selector -->
88-
<v-chip
88+
<v-btn
8989
:disabled="isStopped"
90-
link
90+
variant="tonal"
91+
rounded
9192
size="small"
9293
data-cy="n-win-selector"
9394
>
9495
N={{ nWindow }}
96+
<template #append>
97+
<v-icon
98+
:icon="$options.icons.mdiChevronDown"
99+
class="mx-n1"
100+
/>
101+
</template>
95102
<v-menu
96103
activator="parent"
97104
:close-on-content-click="false"
@@ -122,11 +129,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
122129
</v-card-text>
123130
</v-card>
124131
</v-menu>
125-
</v-chip>
132+
</v-btn>
126133

127134
<!-- workflow status message -->
128-
<span class="status-msg text-md-body-1 text-body-2">
129-
{{ statusMsg }}
135+
<span class="status-msg text-body-2">
136+
{{ statusAndVersion }}
130137
</span>
131138

132139
<v-spacer class="mx-0" />
@@ -219,7 +226,8 @@ import {
219226
mdiStop,
220227
mdiViewList,
221228
mdiAccount,
222-
mdiArrowULeftTop
229+
mdiChevronDown,
230+
mdiArrowULeftTop,
223231
} from '@mdi/js'
224232
import { startCase } from 'lodash'
225233
import { until } from '@/utils/reactivity'
@@ -233,6 +241,7 @@ import subscriptionComponentMixin from '@/mixins/subscriptionComponent'
233241
import SubscriptionQuery from '@/model/SubscriptionQuery.model'
234242
import gql from 'graphql-tag'
235243
import { eventBus } from '@/services/eventBus'
244+
import { upperFirst } from 'lodash-es'
236245
237246
const QUERY = gql(`
238247
subscription Workflow ($workflowId: ID) {
@@ -254,6 +263,7 @@ fragment WorkflowData on Workflow {
254263
status
255264
statusMsg
256265
nEdgeDistance
266+
cylcVersion
257267
}
258268
259269
fragment AddedDelta on Added {
@@ -353,8 +363,12 @@ export default {
353363
this.currentWorkflow.node.status === WorkflowState.STOPPED.name
354364
)
355365
},
356-
statusMsg () {
357-
return this.currentWorkflow.node.statusMsg || ''
366+
statusAndVersion () {
367+
let ret = upperFirst(this.currentWorkflow.node.statusMsg || '')
368+
if (this.currentWorkflow.node.cylcVersion) {
369+
ret += ` • Cylc ${this.currentWorkflow.node.cylcVersion}`
370+
}
371+
return ret
358372
},
359373
enabled () {
360374
// object holding the states of controls that are supposed to be enabled
@@ -469,6 +483,7 @@ export default {
469483
stop: mdiStop,
470484
mdiCog,
471485
mdiAccount,
486+
mdiChevronDown,
472487
mdiArrowULeftTop,
473488
},
474489
}

0 commit comments

Comments
 (0)