-
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.
Merge branch 'main' into refactor-automations-client
- Loading branch information
Showing
28 changed files
with
409 additions
and
136 deletions.
There are no files selected for viewing
6 changes: 2 additions & 4 deletions
6
...-limits-create-or-edit-dialog/global-concurrency-limits-create-or-edit-dialog.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
7 changes: 2 additions & 5 deletions
7
...its/global-concurrency-limits-data-table/global-concurrency-limits-data-table.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
6 changes: 2 additions & 4 deletions
6
...obal-concurrency-limits-delete-dialog/global-concurrency-limits-delete-dialog.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
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"; |
3 changes: 0 additions & 3 deletions
3
...urrency/task-run-concurrency-limits/task-run-concurrency-limit-active-task-runs/index.tsx
This file was deleted.
Oops, something went wrong.
49 changes: 49 additions & 0 deletions
49
...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,49 @@ | ||
import { createFakeFlow, createFakeFlowRun, createFakeTaskRun } from "@/mocks"; | ||
import { routerDecorator } from "@/storybook/utils"; | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
|
||
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", | ||
}; |
22 changes: 22 additions & 0 deletions
22
...sk-run-concurrency-limit-active-task-runs/task-run-concurrency-limit-active-task-runs.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,22 @@ | ||
import type { components } from "@/api/prefect"; | ||
import { RunCard } from "@/components/ui/run-card"; | ||
|
||
type Props = { | ||
data: Array<{ | ||
taskRun: components["schemas"]["TaskRun"]; | ||
flowRun?: components["schemas"]["FlowRun"] | null; | ||
flow?: components["schemas"]["Flow"] | null; | ||
}>; | ||
}; | ||
|
||
export const TaskRunConcurrencyLimitActiveTaskRuns = ({ data }: Props) => { | ||
return ( | ||
<ul className="flex flex-col gap-2"> | ||
{data.map((d) => ( | ||
<li key={d.taskRun.id}> | ||
<RunCard flow={d.flow} flowRun={d.flowRun} taskRun={d.taskRun} /> | ||
</li> | ||
))} | ||
</ul> | ||
); | ||
}; |
2 changes: 1 addition & 1 deletion
2
...-limits/task-run-concurrency-limit-details/task-run-concurrency-limit-details.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
7 changes: 2 additions & 5 deletions
7
...cy-limits/task-run-concurrency-limit-header/task-run-concurrency-limit-header.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
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
7 changes: 2 additions & 5 deletions
7
...task-run-concurrency-limits-data-table/task-run-concurrency-limits-data-table.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
6 changes: 2 additions & 4 deletions
6
...un-concurrency-limits-delete-dialog/task-run-concurrency-limits-delete-dialog.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
6 changes: 2 additions & 4 deletions
6
...k-run-concurrency-limits-reset-dialog/task-run-concurrency-limit-reset-dialog.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
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
Oops, something went wrong.