Skip to content
Draft
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
52 changes: 26 additions & 26 deletions package-lock.json

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

5 changes: 3 additions & 2 deletions tests/features/chat-action/chat-action.e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ test.describe('Agent Chat Action Button', () => {
const drawer = page.locator(chatDrawerSelector)
await expect(drawer).toBeVisible()

// The visible prompt should appear as a user message
const userMessage = frame.locator('.v-card.bg-secondary').first()
// The visible (action) prompt renders as an accent-coloured user bubble,
// distinct from ordinary typed messages (secondary).
const userMessage = frame.locator('.v-card.bg-accent').first()
await expect(userMessage).toContainText('Help me create a new dataset', { timeout: 10000 })
})

Expand Down
8 changes: 4 additions & 4 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"@ai-sdk/vue": "^3.0.116",
"@data-fair/agent-tools-data-fair": "^0.6.3",
"@data-fair/frame": "^0.18.0",
"@data-fair/lib-vue": "^1.28.1",
"@data-fair/lib-vue": "^1.30.1",
"@data-fair/lib-vue-agents": "*",
"@data-fair/lib-vuetify": "^2.1.0",
"@data-fair/lib-vuetify": "^2.4.1",
"@data-fair/lib-vuetify-agents": "*",
"@koumoul/vjsf": "^4.1.0",
"@koumoul/vjsf": "^4.5.3",
"@koumoul/vjsf-markdown": "^0.5.0",
"@mcp-b/global": "^2.2.0",
"@mcp-b/webmcp-polyfill": "^2.1.0",
Expand All @@ -38,7 +38,7 @@
"vue": "^3.5.13",
"vue-chartjs": "^5.3.3",
"vue-router": "^5.0.0",
"vuetify": "^4.0.1"
"vuetify": "^4.1.2"
},
"devDependencies": {
"@intlify/unplugin-vue-i18n": "^5.2.0",
Expand Down
7 changes: 7 additions & 0 deletions ui/src/components/AgentChat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<agent-chat-header
:is-admin="isAdmin"
:title="chatTitle"
:elevated="headerElevated"
@show-debug="showDebugDialog = true"
@reset="handleReset"
/>
Expand All @@ -26,6 +27,7 @@
@navigate="url => sendDFrameMessage({ type: 'navigate', url })"
@fix-mermaid="handleFixMermaid"
@mermaid-error="handleMermaidError"
@update:scrolled="value => headerElevated = value"
/>

<agent-chat-input
Expand Down Expand Up @@ -238,6 +240,9 @@ const chatError = computed(() => chat.error.value)

const showDebugDialog = ref(false)

// Raised header shadow, toggled by the messages transcript's scroll position.
const headerElevated = ref(false)

// Emit status messages to parent d-frame
const inIframe = window.parent !== window
const dFrameContent = useVueRouterDFrameContent()
Expand Down Expand Up @@ -371,6 +376,8 @@ function handleReset () {
chat.reset(finalSystemPrompt.value)
actionVisiblePrompt.value = null
sessionStarted.value = false
// The transcript is gone; drop the scroll-driven header shadow until it scrolls again.
headerElevated.value = false
}

function handleSessionCleared () {
Expand Down
Loading
Loading