-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update tooltips, add task timings, fix diagram links (#475)
- Loading branch information
1 parent
20c7357
commit f7a48b9
Showing
34 changed files
with
432 additions
and
252 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
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
13 changes: 13 additions & 0 deletions
13
...details/components/Details/components/TaskRunStepWrapper/components/TaskRunStep/index.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,13 @@ | ||
import React from 'react'; | ||
import { Tabs } from '../../../../../../../../providers/Tabs/components/Tabs'; | ||
import { useTabsContext } from '../../../../../../../../providers/Tabs/hooks'; | ||
|
||
export const TaskRunStep = ({ | ||
tabs, | ||
}: { | ||
tabs: { label: string; component: React.ReactNode; disabled?: boolean }[]; | ||
}) => { | ||
const { activeTab, handleChangeTab } = useTabsContext(); | ||
|
||
return <Tabs tabs={tabs} activeTabIdx={activeTab} handleChangeTab={handleChangeTab} />; | ||
}; |
File renamed without changes.
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
File renamed without changes.
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
13 changes: 9 additions & 4 deletions
13
src/pages/pipeline-details/components/Details/components/TaskRunWrapper/index.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 |
---|---|---|
@@ -1,14 +1,19 @@ | ||
import React from 'react'; | ||
import { TabsContextProvider } from '../../../../../../providers/Tabs/provider'; | ||
import { CustomTaskRun } from './components/CustomTaskRun'; | ||
import { TaskRun } from './components/TaskRun'; | ||
import { TaskRunWrapperProps } from './types'; | ||
|
||
export const TaskRunWrapper = ({ pipelineRunTaskData }: TaskRunWrapperProps) => { | ||
const isApprovalTask = !!pipelineRunTaskData?.approvalTask; | ||
|
||
return isApprovalTask ? ( | ||
<CustomTaskRun pipelineRunTaskData={pipelineRunTaskData} /> | ||
) : ( | ||
<TaskRun pipelineRunTaskData={pipelineRunTaskData} /> | ||
return ( | ||
<TabsContextProvider id="pipeline-details-page-inner-taskrun" initialTabIdx={0}> | ||
{isApprovalTask ? ( | ||
<CustomTaskRun pipelineRunTaskData={pipelineRunTaskData} /> | ||
) : ( | ||
<TaskRun pipelineRunTaskData={pipelineRunTaskData} /> | ||
)} | ||
</TabsContextProvider> | ||
); | ||
}; |
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.