Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
98e4b68
Initial work towards this.
mike12345567 Oct 2, 2025
1b8916f
Merge branch 'master' of github.com:n8n-io/n8n into ai-1431-t2w-blank…
mike12345567 Oct 3, 2025
0b45914
Adding highlight.
mike12345567 Oct 3, 2025
67731d0
Adding new desgin components for suggestion component.
mike12345567 Oct 3, 2025
cd318a5
Using new components.
mike12345567 Oct 3, 2025
69a5243
Removing fetch of credits on init and getting builder mode to open pr…
mike12345567 Oct 3, 2025
8c54d28
Toggle behaviour.
mike12345567 Oct 3, 2025
63f1851
Small refactor of how toggling is handled.
mike12345567 Oct 3, 2025
b19485a
Don't open panel until messages have been loaded.
mike12345567 Oct 3, 2025
19c10bd
Getting toggling working properly.
mike12345567 Oct 3, 2025
5798dbd
Adjusting width of chat experience.
mike12345567 Oct 3, 2025
a0898a6
Correctly adjust height when value set.
mike12345567 Oct 3, 2025
14e1910
Removing CanvasAIPrompt and some other minor updates.
mike12345567 Oct 3, 2025
b5b0733
Setting z-index.
mike12345567 Oct 3, 2025
6fa62a3
Getting focus on component when slide completes.
mike12345567 Oct 3, 2025
668df02
Type check failures.
mike12345567 Oct 3, 2025
76737b9
Addressing PR comments.
mike12345567 Oct 3, 2025
394dbcf
Linting.
mike12345567 Oct 3, 2025
767ec06
Don't show blank state initially.
mike12345567 Oct 3, 2025
9bdd34c
Type check and making sure builder closes if you leave the canvas.
mike12345567 Oct 3, 2025
943b11f
Getting scrolling to bottom working again.
mike12345567 Oct 3, 2025
9c808fa
Some typing fixes as well.
mike12345567 Oct 3, 2025
7485554
Fix for test cases.
mike12345567 Oct 3, 2025
c87710b
Addressing memory leak PR comment.
mike12345567 Oct 6, 2025
e78958c
Placeholder updates.
mike12345567 Oct 6, 2025
aa17412
Fix test snapshot.
mike12345567 Oct 6, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exports[`AskAssistantButton > renders button with unread messages correctly 1`]
<span
class="text medium"
>
Ask Assistant
n8n AI
</span>
</div>
</div>
Expand Down Expand Up @@ -73,7 +73,7 @@ exports[`AskAssistantButton > renders default button correctly 1`] = `
<span
class="text medium"
>
Ask Assistant
n8n AI
</span>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { StoryFn } from '@storybook/vue3-vite';

import AskAssistantChat from './AskAssistantChat.vue';
import type { ChatUI } from '../../types/assistant';
import type { ChatUI, WorkflowSuggestion } from '../../types/assistant';

export default {
title: 'Assistant/AskAssistantChat',
Expand All @@ -21,7 +21,7 @@ const Template: StoryFn = (args, { argTypes }) => ({
components: {
AskAssistantChat,
},
template: '<div style="width:275px; height:500px"><ask-assistant-chat v-bind="args" /></div>',
template: '<div style="width:380px; height:500px"><ask-assistant-chat v-bind="args" /></div>',
methods,
});

Expand All @@ -33,6 +33,38 @@ DefaultPlaceholderChat.args = {
},
};

const mockSuggestions: WorkflowSuggestion[] = [
{
id: 'invoice-pipeline',
summary: 'Invoice processing pipeline',
prompt:
'Create an invoice parsing workflow using n8n forms. Extract key information and store in Airtable.',
},
{
id: 'ai-news-digest',
summary: 'Daily AI news digest',
prompt:
'Create a workflow that fetches the latest AI news every morning at 8 AM and sends a summary via Telegram.',
},
{
id: 'rag-assistant',
summary: 'RAG knowledge assistant',
prompt:
'Build a pipeline that accepts PDF files, chunks documents, and creates a chatbot that can answer questions.',
},
];

export const WithSuggestions = Template.bind({});
WithSuggestions.args = {
user: {
firstName: 'Max',
lastName: 'Test',
},
suggestions: mockSuggestions,
creditsQuota: 100,
creditsRemaining: 75,
};

export const Chat = Template.bind({});
Chat.args = {
user: {
Expand Down
Loading
Loading