-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add counts api to WorkflowCounts. WIP * Updated protos from 1.24.0 api * Updated go.work.sum from 1.24.0 api * New protos * WIP * Add systemInfo api * Get workflow counts working with api * New api dependencies * Get WorkflowCount status filters working with other queries * Include WorkflowType for fun' * Split out all and status into their own WorkflowCount components * Better enabled check for cloud * Update unit tests * Better check for enabled * Fix check for groupByCountEnabled * Remove peacock * Add translate() * WIP: Add integration tests for counts * Add testid, add integration tests for new workflow counts * Export mockGroupByApi
- Loading branch information
1 parent
29ea87e
commit 03135e2
Showing
32 changed files
with
609 additions
and
358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<script lang="ts"> | ||
import Spinner from '$lib/holocene/icon/svg/spinner.svelte'; | ||
import { translate } from '$lib/i18n/translate'; | ||
import { loading, updating } from '$lib/stores/workflows'; | ||
export let count = 0; | ||
</script> | ||
|
||
<div class="font-base flex text-center text-sm leading-4"> | ||
<p data-testid="workflow-count" data-loaded={!$loading && !$updating}> | ||
{#if $loading || $updating} | ||
<Spinner class="h-4 w-4 animate-spin" /> | ||
{:else if count >= 0} | ||
{count.toLocaleString()} {translate('workflows').toLocaleLowerCase()} | ||
{/if} | ||
</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<script lang="ts"> | ||
import { loading, updating } from '$lib/stores/workflows'; | ||
import type { WorkflowStatus as Status } from '$lib/types/workflows'; | ||
import WorkflowStatus from '../workflow-status.svelte'; | ||
export let status: Status; | ||
export let count = 0; | ||
</script> | ||
|
||
<WorkflowStatus | ||
loading={$loading || $updating} | ||
{count} | ||
{status} | ||
test-id="workflow-status-{status}" | ||
/> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.