-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UI v2] feat: Adds active task runs component
- Loading branch information
1 parent
fc1ea02
commit 38b8c11
Showing
3 changed files
with
63 additions
and
5 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...currency/task-run-concurrency-limits/task-run-concurrency-limit-active-task-runs/index.ts
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 @@ | ||
export { TaskRunConcurrencyLimitActiveTaskRuns } from "./task-run-concurrency-limit-active-task-runs"; |
54 changes: 54 additions & 0 deletions
54
...oncurrency-limit-active-task-runs/task-run-concurrency-limit-active-task-runs.stories.tsx
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,54 @@ | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
|
||
import { | ||
createFakeFlow, | ||
createFakeFlowRun, | ||
createFakeTaskRun, | ||
routerDecorator, | ||
} from "@/storybook/utils"; | ||
|
||
import { TaskRunConcurrencyLimitActiveTaskRuns } from "./task-run-concurrency-limit-active-task-runs"; | ||
|
||
const MOCK_DATA = [ | ||
{ | ||
flow: createFakeFlow(), | ||
flowRun: createFakeFlowRun(), | ||
taskRun: createFakeTaskRun(), | ||
}, | ||
{ | ||
flow: createFakeFlow(), | ||
flowRun: createFakeFlowRun(), | ||
taskRun: createFakeTaskRun({ tags: ["foo", "bar", "baz"] }), | ||
}, | ||
{ | ||
flow: createFakeFlow(), | ||
flowRun: createFakeFlowRun(), | ||
taskRun: createFakeTaskRun(), | ||
}, | ||
{ | ||
taskRun: createFakeTaskRun(), | ||
}, | ||
{ | ||
flow: createFakeFlow(), | ||
flowRun: createFakeFlowRun(), | ||
taskRun: createFakeTaskRun(), | ||
}, | ||
{ | ||
taskRun: createFakeTaskRun({ tags: ["foo", "bar", "baz"] }), | ||
}, | ||
]; | ||
|
||
const meta: Meta<typeof TaskRunConcurrencyLimitActiveTaskRuns> = { | ||
title: | ||
"Components/Concurrency/TaskRunConcurrencyLimits/TaskRunConcurrencyLimitActiveTaskRuns", | ||
component: TaskRunConcurrencyLimitActiveTaskRuns, | ||
decorators: [routerDecorator], | ||
args: { data: MOCK_DATA }, | ||
}; | ||
export default meta; | ||
|
||
type Story = StoryObj<typeof TaskRunConcurrencyLimitActiveTaskRuns>; | ||
|
||
export const story: Story = { | ||
name: "TaskRunConcurrencyLimitActiveTaskRuns", | ||
}; |
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