Skip to content
Merged

Large diffs are not rendered by default.

320 changes: 0 additions & 320 deletions src/frontend/dist/assets/index-CnnXn_hp.js

This file was deleted.

320 changes: 320 additions & 0 deletions src/frontend/dist/assets/index-DQWvM1i5.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

2 changes: 1 addition & 1 deletion src/frontend/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link rel="icon" type="image/svg+xml" href="/assets/gradient-icon-CRwZKfVU.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Parallax Open Source</title>
<script type="module" crossorigin src="/assets/index-CnnXn_hp.js"></script>
<script type="module" crossorigin src="/assets/index-DQWvM1i5.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-J8fDKCu3.css">
</head>
<body>
Expand Down
7 changes: 4 additions & 3 deletions src/frontend/src/components/common/drawer-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -278,16 +278,17 @@ export const DrawerLayout: FC<PropsWithChildren> = ({ children }) => {
<Stack>
<Stack direction='row' sx={{ gap: 1, color: 'text.primary' }}>
{/* <IconCluster /> */}
<Typography variant='body1' sx={{ mt: '1.5px', mb: '20px', color: '#A7A7A7FF', fontWeight: 600}}>
<Typography variant='body1' sx={{ mt: '1.5px', color: '#A7A7A7FF', fontWeight: 600 }}>
Cluster topology
</Typography>
</Stack>
<NodeList variant='menu' />
<NodeList variant='menu' sx={{ py: '2rem' }} />
<Button
color='info'
startIcon={<IconPlus />}
onClick={openJoinCommand}
sx={{ mt: '30px' }}
// onClick={openRebalancing}
// onClick={openWaiting}
>
Add Nodes
</Button>
Expand Down
8 changes: 4 additions & 4 deletions src/frontend/src/components/inputs/chat-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ export const ChatInput: FC = () => {
<Button
size='small'
color='primary'
disabled={clusterStatus !== 'available'}
loading={status === 'opened'}
disabled={clusterStatus !== 'available' || status === 'opened'}
// loading={status === 'opened'}
onClick={() => {
if (status === 'opened') {
if (status === 'generating') {
stop();
} else if (status === 'closed') {
} else if (status === 'closed' || status === 'error') {
generate();
}
}}
Expand Down
24 changes: 19 additions & 5 deletions src/frontend/src/components/inputs/chat-messages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,16 @@ export const ChatMessages: FC = () => {
}, 250);
};

return (
const nodeStream = (
<Stack
key='stream'
ref={refContainer}
sx={{
position: 'relative',
flex: 1,
width: '100%',
height: '100%',

overflowX: 'hidden',
overflowY: 'auto',
gap: 4,
'&::-webkit-scrollbar': { display: 'none' },
scrollbarWidth: 'none',
msOverflowStyle: 'none',
Expand All @@ -87,8 +88,21 @@ export const ChatMessages: FC = () => {
{status === 'opened' && <DotPulse size='large' />}

<Box ref={refBottom} sx={{ width: '100%', height: 0 }} />
</Stack>
);

return (
<Box
sx={{
position: 'relative',
gap: 4,
flex: 1,
overflow: 'hidden',
}}
>
{nodeStream}
<IconButton
key='scroll-to-bottom'
onClick={scrollToBottom}
size='small'
aria-label='Scroll to bottom'
Expand All @@ -109,7 +123,7 @@ export const ChatMessages: FC = () => {
>
<IconArrowDown />
</IconButton>
</Stack>
</Box>
);
};

Expand Down
Loading