mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-10 10:00:08 +00:00
Adds a workflow progress panel component underneath the `actionbar-container`. I suggest starting a review at the extraneous changes that were needed. Including but not limited to: - `get createTime()` in queueStore - `promptIdToWorkflowId`, `initializingPromptIds`, and `nodeProgressStatesByPrompt` in executionStore - `create_time` handling in v2ToV1Adapter - `pointer-events-auto` on ComfyActionbar.vue The rest of the changes should be contained under `QueueProgressOverlay.vue`, and has less of a blast radius in case something goes wrong. --------- Co-authored-by: pythongosssss <125205205+pythongosssss@users.noreply.github.com> Co-authored-by: GitHub Action <action@github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Jin Yi <jin12cc@gmail.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Alexander Brown <drjkl@comfy.org> Co-authored-by: Johnpaul Chiwetelu <49923152+Myestery@users.noreply.github.com> Co-authored-by: Christian Byrne <cbyrne@comfy.org> Co-authored-by: Comfy Org PR Bot <snomiao+comfy-pr@gmail.com> Co-authored-by: christian-byrne <72887196+christian-byrne@users.noreply.github.com>
74 lines
1.5 KiB
TypeScript
74 lines
1.5 KiB
TypeScript
import type { Meta, StoryObj } from '@storybook/vue3-vite'
|
|
|
|
import CompletionSummaryBanner from './CompletionSummaryBanner.vue'
|
|
|
|
const meta: Meta<typeof CompletionSummaryBanner> = {
|
|
title: 'Queue/CompletionSummaryBanner',
|
|
component: CompletionSummaryBanner,
|
|
parameters: {
|
|
layout: 'padded'
|
|
}
|
|
}
|
|
|
|
export default meta
|
|
type Story = StoryObj<typeof meta>
|
|
|
|
const thumb = (hex: string) =>
|
|
`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><rect width='24' height='24' fill='%23${hex}'/></svg>`
|
|
|
|
const thumbs = [thumb('ff6b6b'), thumb('4dabf7'), thumb('51cf66')]
|
|
|
|
export const AllSuccessSingle: Story = {
|
|
args: {
|
|
mode: 'allSuccess',
|
|
completedCount: 1,
|
|
failedCount: 0,
|
|
thumbnailUrls: [thumbs[0]]
|
|
}
|
|
}
|
|
|
|
export const AllSuccessPlural: Story = {
|
|
args: {
|
|
mode: 'allSuccess',
|
|
completedCount: 3,
|
|
failedCount: 0,
|
|
thumbnailUrls: thumbs
|
|
}
|
|
}
|
|
|
|
export const MixedSingleSingle: Story = {
|
|
args: {
|
|
mode: 'mixed',
|
|
completedCount: 1,
|
|
failedCount: 1,
|
|
thumbnailUrls: thumbs.slice(0, 2)
|
|
}
|
|
}
|
|
|
|
export const MixedPluralPlural: Story = {
|
|
args: {
|
|
mode: 'mixed',
|
|
completedCount: 2,
|
|
failedCount: 3,
|
|
thumbnailUrls: thumbs
|
|
}
|
|
}
|
|
|
|
export const AllFailedSingle: Story = {
|
|
args: {
|
|
mode: 'allFailed',
|
|
completedCount: 0,
|
|
failedCount: 1,
|
|
thumbnailUrls: []
|
|
}
|
|
}
|
|
|
|
export const AllFailedPlural: Story = {
|
|
args: {
|
|
mode: 'allFailed',
|
|
completedCount: 0,
|
|
failedCount: 4,
|
|
thumbnailUrls: []
|
|
}
|
|
}
|