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
2 changes: 2 additions & 0 deletions src/lib/common/LiveChatEntry.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
showBubbleMsg = false;
receivedMsg = '';
}, receivedMsg?.length > 200 ? 8000 : 3000);
} else if (e.data.action == ChatAction.NewWindow && e.data.url) {
window.open(e.data.url, '_blank');
}
};

Expand Down
3 changes: 2 additions & 1 deletion src/lib/helpers/enums.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ const chatAction = {
Logout: 'logout',
Chat: 'chat',
NewChat: 'new-chat',
ReceiveNotification: 'receive-notification'
ReceiveNotification: 'receive-notification',
NewWindow: 'new-window'
};
export const ChatAction = Object.freeze(chatAction);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<script>
import { _ } from 'svelte-i18n';
import { page } from '$app/stores';
import lodash from 'lodash';
import HeadTitle from "$lib/common/HeadTitle.svelte";
import Breadcrumb from '$lib/common/Breadcrumb.svelte';
import EmbeddingPage from '$lib/common/embedding/EmbeddingPage.svelte';
Expand All @@ -8,11 +10,11 @@
let label = '';
</script>

<HeadTitle title="{$_(label || 'Reporting')}" addOn="Reporting" />
<Breadcrumb title="{$_('Agent')}" pagetitle="{$_(label || 'Reporting')}" />
<HeadTitle title="{$_(label || 'Agent')}" addOn={`${lodash.capitalize($page.params.embed || '')}`} />
<Breadcrumb title="{$_('Agent')}" pagetitle="{$_(label || 'Agent')}" />

<EmbeddingPage
htmlTagId="agent-reporting-content"
slugName="reportType"
htmlTagId="agent-embed-content"
slugName="embedType"
bind:label={label}
/>
2 changes: 1 addition & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ const config = {
"/page/agent/router",
"/page/agent/evaluator",
"/page/agent/code-scripts",
"/page/agent/reporting/[reportType]",
"/page/agent/[agentId]",
"/page/agent/[agentId]/build",
"/page/agent/[agentId]/train",
"/page/agent/[embed]/[embedType]",
"/page/instruction/testing",
"/page/instruction/log",
"/page/conversation",
Expand Down