forked from flyteorg/flyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add workflow versions table Signed-off-by: csirius <[email protected]> * feat: workflow version details page Signed-off-by: csirius <[email protected]>
- Loading branch information
Showing
10 changed files
with
198 additions
and
36 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
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
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,38 @@ | ||
import { withRouteParams } from 'components/common/withRouteParams'; | ||
import { EntityDetails } from 'components/Entities/EntityDetails'; | ||
import { ResourceIdentifier, ResourceType } from 'models/Common/types'; | ||
import * as React from 'react'; | ||
|
||
export interface WorkflowVersionDetailsRouteParams { | ||
projectId: string; | ||
domainId: string; | ||
workflowName: string; | ||
} | ||
export type WorkflowDetailsProps = WorkflowVersionDetailsRouteParams; | ||
|
||
/** | ||
* The view component for the Workflow Versions page | ||
* @param projectId | ||
* @param domainId | ||
* @param workflowName | ||
*/ | ||
export const WorkflowVersionDetailsContainer: React.FC<WorkflowVersionDetailsRouteParams> = ({ | ||
projectId, | ||
domainId, | ||
workflowName | ||
}) => { | ||
const id = React.useMemo<ResourceIdentifier>( | ||
() => ({ | ||
resourceType: ResourceType.WORKFLOW, | ||
project: projectId, | ||
domain: domainId, | ||
name: workflowName | ||
}), | ||
[projectId, domainId, workflowName] | ||
); | ||
return <EntityDetails id={id} versionView />; | ||
}; | ||
|
||
export const WorkflowVersionDetails = withRouteParams< | ||
WorkflowVersionDetailsRouteParams | ||
>(WorkflowVersionDetailsContainer); |
Oops, something went wrong.