Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/lib/scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1811,4 +1811,5 @@ $pre-color: null;
$faded-color: #BCBCBC;

$log-sec-height-lg: 400px;
$log-sec-height-md: 280px;
$log-sec-height-sm: 150px;
10 changes: 6 additions & 4 deletions src/lib/scss/custom/pages/_chat.scss
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,12 @@
}

.chat-agent-info {
overflow-y: scroll;
scrollbar-width: none;
flex: 0 0 fit-content;
height: fit-content;
max-height: $log-sec-height-md;

.chat-agent-row {
margin: 8px 0px;
color: white;
Expand Down Expand Up @@ -489,10 +495,6 @@
margin-bottom: 5px;
padding-left: 10px;

.state-key {
// color: var(--bs-primary);
}

.state-source {
font-size: 12px;
}
Expand Down
1 change: 0 additions & 1 deletion src/routes/chat/[agentId]/[conversationId]/chat-box.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,6 @@
agent={agent}
autoScroll={autoScrollLog}
closeWindow={closeInstantLog}
cleanScreen={cleanInstantLogScreen}
/>
</Pane>
{/if}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
/** @type {() => void} */
export let closeWindow;

/** @type {() => void} */
export let cleanScreen;

/** @type {any} */
let scrollbars = [];

Expand Down Expand Up @@ -82,11 +79,6 @@
agentQueueLogs = [];
}

function handleCleanScreen() {
cleanLogs();
cleanScreen && cleanScreen();
}

/**
* @param {number} logType
*/
Expand Down
9 changes: 7 additions & 2 deletions src/routes/page/agent/[agentId]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,13 @@
const duration = 3000;
const params = $page.params;

onMount(async () => {
agent = await getAgent(params.agentId);
onMount(() => {
isLoading = true;
getAgent(params.agentId).then(data => {
agent = data;
}).finally(() => {
isLoading = false;
});
});

function updateCurrentAgent() {
Expand Down