Skip to content

Commit 946ff4a

Browse files
authored
Provide Show more logs link in fullscreen step log (#598)
1 parent 7c20134 commit 946ff4a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/main/frontend/pipeline-console-view/pipeline-console/main/ConsoleLogCard.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ export class ConsoleLogCard extends React.Component<
104104
<Grid item xs={6} sm className="show-more-console">
105105
<Button
106106
variant="text"
107-
sx={{ padding: "0px", textTransform: "none" }}
107+
sx={{
108+
padding: "0px",
109+
textTransform: "none",
110+
marginLeft: "0.25rem",
111+
}}
108112
onClick={() => {
109113
let startByte =
110114
this.props.stepBuffer.startByte - LOG_FETCH_SIZE;
@@ -276,6 +280,7 @@ export class ConsoleLogCard extends React.Component<
276280
logBuffer={this.props.stepBuffer}
277281
handleMoreConsoleClick={this.props.handleMoreConsoleClick}
278282
step={this.props.step}
283+
truncatedLogWarning={this.getTruncatedLogWarning()}
279284
maxHeightScale={0.85}
280285
open={this.state.open}
281286
setClose={handleClose}

src/main/frontend/pipeline-console-view/pipeline-console/main/ConsoleLogModal.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export interface ConsoleLogModelProps {
77
logBuffer: StepLogBufferInfo;
88
handleMoreConsoleClick: (nodeId: string, startByte: number) => void;
99
step: StepInfo;
10+
truncatedLogWarning: React.JSX.Element | undefined;
1011
maxHeightScale: number;
1112
setClose: () => void;
1213
open: boolean;
@@ -71,6 +72,7 @@ export default function ConsoleLogModal(props: ConsoleLogModelProps) {
7172
</Stack>
7273
</Typography>
7374
<CloseIcon onClick={handleClose} />
75+
<div>{props.truncatedLogWarning}</div>
7476
<ConsoleLogStream {...props} />
7577
</Box>
7678
</Modal>

0 commit comments

Comments
 (0)