Skip to content

Commit 8fc5f7a

Browse files
committed
[web-console] Adjust phrasing and naming in multiple UI elements
Signed-off-by: Karakatiza666 <bulakh.96@gmail.com>
1 parent 32d7d5b commit 8fc5f7a

5 files changed

Lines changed: 11 additions & 8 deletions

File tree

js-packages/web-console/src/lib/components/dialogs/GenericDialog.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@
1111
danger,
1212
disabled,
1313
noclose,
14+
swapActions,
1415
children
1516
}: {
1617
content: GlobalDialogContent
1718
danger?: boolean
1819
disabled?: boolean
1920
/** When set, the dialog has no "X" button and does not auto-close on cancel/click-away. */
2021
noclose?: boolean
22+
swapActions?: boolean
2123
children?: Snippet
2224
} = $props()
2325
@@ -67,11 +69,12 @@
6769
<button
6870
onclick={() => cancel()}
6971
class="btn preset-filled-surface-50-950 px-4"
72+
class:order-last={swapActions}
7073
data-testid="btn-dialog-cancel"
7174
>
7275
{content.onCancel?.name ?? 'Cancel'}
7376
</button>
74-
<div>
77+
<div class:order-first={swapActions}>
7578
<button
7679
{disabled}
7780
onclick={content.onSuccess.callback}

js-packages/web-console/src/lib/components/layout/pipelines/PipelineEditLayout.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,10 @@
181181
182182
let layoutControls = $derived([
183183
{ icon: 'fd fd-panel-left', text: 'Pipelines', value: showPipelinesPanel },
184-
{ icon: 'fd fd-panel-bottom', text: 'Monitoring', value: showMonitoringPanel },
184+
{ icon: 'fd fd-panel-bottom', text: 'Montior', value: showMonitoringPanel },
185185
{
186186
icon: 'fd fd-panel-right',
187-
text: 'Interaction',
187+
text: 'Inspect',
188188
value: showInteractionPanel,
189189
show: isScreenLg.current
190190
}

js-packages/web-console/src/lib/components/pipelines/editor/MonitoringPanel.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197

198198
{#snippet TabControlChangeStream()}
199199
<span class="inline sm:hidden"> Changes </span>
200-
<span class="hidden sm:inline"> Changes Stream </span>
200+
<span class="hidden sm:inline"> Change Stream </span>
201201
{/snippet}
202202

203203
{#snippet TabHealth()}

js-packages/web-console/src/lib/components/pipelines/editor/TabPerformance.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,7 @@
186186
</script>
187187

188188
{#snippet label()}
189-
<span class="inline sm:hidden"> Perf </span>
190-
<span class="hidden sm:inline"> Performance </span>
189+
Runtime
191190
{/snippet}
192191

193192
{#if isMetricsAvailable(pipeline.current.status) === 'no'}

js-packages/web-console/src/lib/components/pipelines/editor/performance/CheckpointDialog.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
<GenericDialog
1111
content={{
12-
title: 'Checkpoint the current pipeline state',
12+
title: 'Create a checkpoint?',
1313
description:
14-
'Create the checkpoint? This may delete the oldest checkpoint, and will temporarily increase load on the pipeline.',
14+
'This may delete the oldest checkpoint and briefly increase pipeline load.',
1515
onSuccess: {
1616
name: 'Checkpoint',
1717
'data-testid': 'btn-confirm-checkpoint',
@@ -21,4 +21,5 @@
2121
}
2222
}
2323
}}
24+
swapActions
2425
></GenericDialog>

0 commit comments

Comments
 (0)