Skip to content

Commit

Permalink
chore: react-virtuoso LogViewer companion (#8862)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyBonar authored Mar 7, 2024
1 parent bf21896 commit f8f860d
Show file tree
Hide file tree
Showing 13 changed files with 32 additions and 391 deletions.
9 changes: 4 additions & 5 deletions webui/react/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion webui/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"fp-ts": "^2.16.1",
"fuse.js": "^7.0.0",
"hermes-parallel-coordinates": "^0.6.17",
"hew": "npm:@hpe.com/hew@^0.6.31",
"hew": "npm:@hpe.com/hew@^0.6.32",
"humanize-duration": "^3.28.0",
"immutable": "^4.3.0",
"io-ts": "^2.2.20",
Expand Down
1 change: 0 additions & 1 deletion webui/react/src/components/ModelRegistry.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
}
.options {
display: flex;
flex-grow: 1;
justify-content: flex-end;
padding-bottom: 16px;
}
3 changes: 1 addition & 2 deletions webui/react/src/components/Page.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
padding: 16px;
}
.body {
align-items: center;
flex-grow: 1;
flex-shrink: 0;
height: max-content;
min-height: 0;
Expand All @@ -28,7 +28,6 @@

.body {
overflow: auto;
padding-bottom: 0;
}
}
&.noScroll {
Expand Down
7 changes: 5 additions & 2 deletions webui/react/src/components/PageHeader/PageHeader.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
}
}
.sticky {
background-color: var(--theme-colors-monochrome-17);
border-bottom: solid var(--theme-stroke-width) var(--theme-colors-monochrome-12);
background-color: var(--theme-background);
border-bottom: solid var(--theme-stroke-width) var(--theme-float-border);
padding: 16px;
position: sticky;
top: 0;
z-index: 20;
}
1 change: 0 additions & 1 deletion webui/react/src/components/TaskList.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
}
.options {
display: flex;
flex-grow: 1;
justify-content: flex-end;
padding-bottom: 16px;
}
Expand Down
4 changes: 4 additions & 0 deletions webui/react/src/pages/Cluster.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
.pivoter {
display: flex;
flex: 1;
flex-direction: column;

[role='tablist'] > div {
&:global(.ant-tabs-nav-wrap)::before {
box-shadow: none;
Expand Down
16 changes: 7 additions & 9 deletions webui/react/src/pages/ClusterLogs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,13 @@ const ClusterLogs: React.FC = () => {
}, []);

return (
<div>
<LogViewer
decoder={jsonToClusterLog}
serverAddress={serverAddress}
sortKey="id"
onError={handleError}
onFetch={handleFetch}
/>
</div>
<LogViewer
decoder={jsonToClusterLog}
serverAddress={serverAddress}
sortKey="id"
onError={handleError}
onFetch={handleFetch}
/>
);
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.pivoter {
height: 100%;

[role='tablist'] > div {
&:global(.ant-tabs-nav-wrap)::before {
box-shadow: none;
Expand Down
2 changes: 1 addition & 1 deletion webui/react/src/pages/TaskLogs.module.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.filters {
padding: 8px 0 0 8px;
padding-left: var(--spacing-md);
}
Loading

0 comments on commit f8f860d

Please sign in to comment.