diff --git a/.lintstagedrc.json b/.lintstagedrc.json index 0cb0cd43c..b8eb32ef6 100644 --- a/.lintstagedrc.json +++ b/.lintstagedrc.json @@ -1,5 +1,6 @@ { "*.{ts,js}": ["pnpm lint:fix", "prettier --write"], - "*.{css,postcss,svelte}": "stylelint --fix", + "*.{css,postcss}": ["stylelint --fix"], + "*.svelte": ["stylelint --fix", "pnpm lint:fix"], "*.{json,md}": "prettier --write" } diff --git a/.vscode/settings.json b/.vscode/settings.json index 64f75dafd..a262fcda1 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,5 +6,9 @@ }, "editor.formatOnSave": true, "css.customData": [".vscode/css-custom-data.json"], - "typescript.tsdk": "node_modules/typescript/lib" + "typescript.tsdk": "node_modules/typescript/lib", + "tailwindCSS.experimental.classRegex": [ + ["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"], + ["cx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"] + ] } diff --git a/colors.cjs b/colors.cjs index c6092b0c8..06450d91e 100644 --- a/colors.cjs +++ b/colors.cjs @@ -21,7 +21,7 @@ const colors = { }, indigo: { 50: '#eef2ff', - 100: '#e0e7ff', + 100: '#E0EAFF', 200: '#c7d2fe', 300: '#a5b4fc', 400: '#818cf8', @@ -38,7 +38,7 @@ const colors = { 300: '#d4d4d8', 400: '#a1a1aa', 500: '#71717a', - 600: '#52525b', + 600: '#4B5563', 700: '#3f3f46', 800: '#27272a', 900: '#18181b', @@ -94,7 +94,7 @@ const colors = { red: { 50: '#fef2f2', 100: '#fee2e2', - 200: '#fecaca', + 200: '#FFCFCF', 300: '#fca5a5', 400: '#f87171', 500: '#ef4444', diff --git a/cypress/integration/schedules.spec.js b/cypress/integration/schedules.spec.js index 44a7d7f27..311e556fc 100644 --- a/cypress/integration/schedules.spec.js +++ b/cypress/integration/schedules.spec.js @@ -40,7 +40,7 @@ describe('Schedules View', () => { cy.get('.schedule-row').first().contains(scheduleId); cy.get('.schedule-row').first().contains(name); - cy.get('.schedule-row').first().click(); + cy.get('.schedule-row a').first().click(); cy.wait('@schedule-api'); @@ -63,7 +63,7 @@ describe('Schedules Edit', () => { cy.get('.schedule-row').first().contains(scheduleId); cy.get('.schedule-row').first().contains(name); - cy.get('.schedule-row').first().click(); + cy.get('.schedule-row a').first().click(); cy.wait('@schedule-api'); diff --git a/cypress/integration/workflow-executions.spec.js b/cypress/integration/workflow-executions.spec.js index 48efb35e3..3100bc830 100644 --- a/cypress/integration/workflow-executions.spec.js +++ b/cypress/integration/workflow-executions.spec.js @@ -106,7 +106,7 @@ describe('Workflow Executions List', () => { encodeURIComponent(`ExecutionStatus="Running"`), ); - cy.get('.workflow-summary-row > .time-cell').first().click(); + cy.get('.workflow-summary-row a').first().click(); cy.wait('@workflow-api'); cy.wait('@event-history-api'); diff --git a/src/lib/components/banner/banner.svelte b/src/lib/components/banner/banner.svelte index 778924c4e..d72b4d4cc 100644 --- a/src/lib/components/banner/banner.svelte +++ b/src/lib/components/banner/banner.svelte @@ -1,5 +1,6 @@ @@ -89,12 +89,9 @@

- {translate('data-encoder', 'codec-server-description-prefix')}{translate('codec-server')}{translate('codec-server')} {translate('data-encoder', 'codec-server-description-suffix', { level: namespaceOrCluster, @@ -156,14 +153,12 @@

{format(key)}

-
+

{format(key)}

-
+

{format(key)}

-
+
- +
-

{event.id}

+ {event.id}
diff --git a/src/lib/components/event/event-summary-table.svelte b/src/lib/components/event/event-summary-table.svelte index f1703f1de..72d1438db 100644 --- a/src/lib/components/event/event-summary-table.svelte +++ b/src/lib/components/event/event-summary-table.svelte @@ -3,7 +3,7 @@ import EventCategoryFilter from '$lib/components/event/event-category-filter.svelte'; import EventDateFilter from '$lib/components/event/event-date-filter.svelte'; - import Icon from '$lib/holocene/icon/icon.svelte'; + import Button from '$lib/holocene/button.svelte'; import TableHeaderRow from '$lib/holocene/table/table-header-row.svelte'; import Table from '$lib/holocene/table/table.svelte'; import { translate } from '$lib/i18n/translate'; @@ -36,15 +36,16 @@
- +
diff --git a/src/lib/components/import/event-history-file-import.svelte b/src/lib/components/import/event-history-file-import.svelte index c18f82600..104edfef1 100644 --- a/src/lib/components/import/event-history-file-import.svelte +++ b/src/lib/components/import/event-history-file-import.svelte @@ -74,6 +74,6 @@ accept=".json" on:change={onFileSelect} /> - diff --git a/src/lib/components/navigation-link.svelte b/src/lib/components/navigation-link.svelte deleted file mode 100644 index c425b41af..000000000 --- a/src/lib/components/navigation-link.svelte +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - diff --git a/src/lib/components/schedule/schedule-advanced-settings.svelte b/src/lib/components/schedule/schedule-advanced-settings.svelte index 5a0b06028..95d9b5def 100644 --- a/src/lib/components/schedule/schedule-advanced-settings.svelte +++ b/src/lib/components/schedule/schedule-advanced-settings.svelte @@ -1,5 +1,5 @@ -
- - {#if show} + +

+ {translate('schedules', 'start-time')} + {spec?.startTime ?? translate('none')} +

+

+ {translate('schedules', 'end-time')}{spec?.endTime ?? translate('none')} +

+

{translate('schedules', 'jitter')}{spec?.jitter ?? translate('none')}

+

+ {translate('schedules', 'exclusion-calendar')}{spec?.excludeCalendar?.[0] ?? + translate('none')} +

+ {#if state?.limitedActions}

{translate('schedules', 'start-time')} {spec?.startTime ?? translate('none')} @@ -44,10 +50,5 @@ translate('none')}

{/if} -
+ - diff --git a/src/lib/components/schedule/schedule-form-view.svelte b/src/lib/components/schedule/schedule-form-view.svelte index 130ec2584..4c0d86636 100644 --- a/src/lib/components/schedule/schedule-form-view.svelte +++ b/src/lib/components/schedule/schedule-form-view.svelte @@ -6,8 +6,8 @@ import SchedulesCalendarView from '$lib/components/schedule/schedules-calendar-view.svelte'; import Alert from '$lib/holocene/alert.svelte'; import Button from '$lib/holocene/button.svelte'; - import Icon from '$lib/holocene/icon/icon.svelte'; import Input from '$lib/holocene/input/input.svelte'; + import Link from '$lib/holocene/link.svelte'; import Loading from '$lib/holocene/loading.svelte'; import { translate } from '$lib/i18n/translate'; import { error, loading } from '$lib/stores/schedules'; @@ -115,11 +115,11 @@ {#if $loading} {:else} -
- - {backTitle} - -

{title}

+
+ + {backTitle} + +

{title}