-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add history tab to workflow page (#643)
* add history tab to workflow page * fix linting issues
- Loading branch information
1 parent
6f9c89e
commit 4d2458f
Showing
5 changed files
with
63 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import type { | ||
StyletronCSSObject, | ||
StyletronCSSObjectOf, | ||
} from '@/hooks/use-styletron-classes'; | ||
|
||
const cssStylesObj = { | ||
pageContainer: { | ||
display: 'flex', | ||
flexDirection: 'column', | ||
}, | ||
eventsContainer: (theme) => ({ | ||
display: 'flex', | ||
marginTop: theme.sizing.scale500, | ||
}), | ||
compactSection: { | ||
display: 'flex', | ||
flexDirection: 'column', | ||
width: '370px', | ||
}, | ||
timelineSection: { | ||
display: 'flex', | ||
flexDirection: 'column', | ||
flex: 1, | ||
}, | ||
} satisfies StyletronCSSObject; | ||
|
||
export const cssStyles: StyletronCSSObjectOf<typeof cssStylesObj> = | ||
cssStylesObj; |
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,26 @@ | ||
'use client'; | ||
import React from 'react'; | ||
|
||
import { HeadingXSmall } from 'baseui/typography'; | ||
|
||
import useStyletronClasses from '@/hooks/use-styletron-classes'; | ||
|
||
import { cssStyles } from './workflow-history.styles'; | ||
|
||
export default function WorkflowHistory() { | ||
const { cls } = useStyletronClasses(cssStyles); | ||
|
||
return ( | ||
<div className={cls.pageContainer}> | ||
<HeadingXSmall>Workflow history</HeadingXSmall> | ||
<div className={cls.eventsContainer}> | ||
<section className={cls.compactSection}> | ||
<p>compact</p> | ||
</section> | ||
<section className={cls.timelineSection}> | ||
<p>timeline</p> | ||
</section> | ||
</div> | ||
</div> | ||
); | ||
} |
2 changes: 2 additions & 0 deletions
2
src/views/workflow-page/config/workflow-page-tabs-contents-map.config.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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import WorkflowHistory from '@/views/workflow-history/workflow-history'; | ||
import WorkflowSummaryTab from '@/views/workflow-summary-tab/workflow-summary-tab'; | ||
|
||
import type { WorkflowPageTabsContentsMap } from '../workflow-page-tab-content/workflow-page-tab-content.types'; | ||
|
||
const workflowPageTabsContentsMapConfig = { | ||
summary: WorkflowSummaryTab, | ||
history: WorkflowHistory, | ||
} as const satisfies WorkflowPageTabsContentsMap; | ||
|
||
export default workflowPageTabsContentsMapConfig; |
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
2 changes: 1 addition & 1 deletion
2
src/views/workflow-summary-tab/config/workflow-summary-tab-details.config.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