Skip to content

Commit fd0ab6d

Browse files
added logs button
1 parent 933c3ee commit fd0ab6d

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

src/ui/components/dag/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const DAG: React.FC<{ runId: TId; fetching?: boolean }> = ({
4646
return (
4747
<div style={styles.container}>
4848
<div style={styles.dag}>
49-
<LayoutFlow graph={graph} metadata={metadata} />
49+
<LayoutFlow graph={graph} runId={runId} metadata={metadata} />
5050
</div>
5151
</div>
5252
);

src/ui/components/lineage/index.tsx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const getLayoutedElements = (
113113

114114
const nodeTypes = { step: StepNode, artifact: ArtifactNode };
115115

116-
export const LayoutFlow: React.FC<any> = (graph: any, metadata?: any) => {
116+
export const LayoutFlow: React.FC<any> = (graph: any) => {
117117
const dispatch = useDispatch();
118118
const {
119119
initialNodes: layoutedNodes,
@@ -145,7 +145,7 @@ export const LayoutFlow: React.FC<any> = (graph: any, metadata?: any) => {
145145
return (
146146
<>
147147
<div className="controls">
148-
<Box
148+
{/* <Box
149149
style={{ paddingTop: '6px' }}
150150
onClick={() =>
151151
window.open(
@@ -155,10 +155,23 @@ export const LayoutFlow: React.FC<any> = (graph: any, metadata?: any) => {
155155
)
156156
}
157157
>
158-
{/* Logs */}
158+
159159
<icons.logs size={iconSizes.lg} color={iconColors.black} />
160-
</Box>
161-
{/* <button
160+
</Box> */}
161+
162+
<button
163+
onClick={() => {
164+
dispatch(
165+
runsActions.graphForRun({
166+
runId: graph.runId,
167+
}),
168+
);
169+
}}
170+
>
171+
Refresh
172+
</button>
173+
<button onClick={() => setLegend(!legend)}>Legend</button>
174+
<button
162175
onClick={() => {
163176
window.open(
164177
graph?.metadata[0]?.value
@@ -173,22 +186,9 @@ export const LayoutFlow: React.FC<any> = (graph: any, metadata?: any) => {
173186
// );
174187
}}
175188
>
176-
Logs
177-
</button> */}
178-
<button
179-
onClick={() => {
180-
dispatch(
181-
runsActions.graphForRun({
182-
runId: graph.runId,
183-
}),
184-
);
185-
}}
186-
>
187-
Refresh
189+
Orchestrator Logs
188190
</button>
189-
190191
<div style={{ position: 'relative' }}>
191-
<button onClick={() => setLegend(!legend)}>Legend</button>
192192
<div className="legend" style={{ display: legend ? '' : 'none' }}>
193193
<span>
194194
<Analysis /> <span>Data Analysis Artifact</span>

0 commit comments

Comments
 (0)