Skip to content

fix(editor): Refine instance AI visual styling (no-changelog)#28291

Open
Tuukkaa wants to merge 7 commits intomasterfrom
instance-ai-visual-tweaks-3
Open

fix(editor): Refine instance AI visual styling (no-changelog)#28291
Tuukkaa wants to merge 7 commits intomasterfrom
instance-ai-visual-tweaks-3

Conversation

@Tuukkaa
Copy link
Copy Markdown
Contributor

@Tuukkaa Tuukkaa commented Apr 10, 2026

Summary

Visual refinements to instance AI components for consistency with the n8n design system:

  • PlanReviewPanel: Simplify UI and use design system components
  • AnsweredQuestions: Style as user bubble with improved dark mode contrast
  • Confirmations: Use medium-sized buttons and standard card hover states
  • ArtifactsPanel: Use N8nHeading for section titles, refine artifact row styling
  • CredentialSetup: Use ghost variant for pagination nav buttons
  • Questions: Lighten hover state backgrounds, increase pagination button size
  • ThreadList: Refine spacing
  • System prompt: Add no-emoji rule and separate communication style section

Related Linear tickets, Github issues, and Community forum posts

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)
  • I have seen this code, I have run this code, and I take responsibility for this code.

Tuukkaa and others added 7 commits April 9, 2026 16:51
…ents

Remove header icon, task count, status badges, kind icons/badges,
accordion behavior, and divider lines. Use N8nText, N8nInput components
instead of raw HTML elements. Shorten approve button label to "Approve".

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… mode contrast

Restyle AnsweredQuestions to match user message alignment and appearance
(right-aligned grey bubble). Use neutral design token for ConfirmationPreview
background in dark mode for better contrast.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…section

Extract communication style rules (conciseness, no emojis, always end with
text) into a dedicated section, keeping Safety focused on actual safety
concerns.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- ArtifactCard: replace hoverable prop with standard box-shadow hover
- CredentialSetup & WorkflowSetup: remove green success border on
  completed/confirm cards, keep regular border

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…st spacing

Use consistent medium-size buttons across all instance AI confirmation
components, add background to gateway resource decision panel, and
reduce thread item height to 32px with proper padding.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use design system N8nHeading for artifacts/tasks panel titles, increase
pagination button sizes, use ghost variant for credential nav buttons,
and lighten question list hover states.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove accidentally committed debug mock messages.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Tuukkaa Tuukkaa changed the title fix(editor): Refine instance AI visual styling and design system usage fix(editor): Refine instance AI visual styling and design system usage (no-changelog) Apr 10, 2026
@Tuukkaa Tuukkaa requested review from OlegIvaniv and r00gm April 10, 2026 07:45
@Tuukkaa Tuukkaa changed the title fix(editor): Refine instance AI visual styling and design system usage (no-changelog) fix(editor): Refine instance AI visual styling (no-changelog) Apr 10, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 10, 2026

Codecov Report

❌ Patch coverage is 0% with 16 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...tures/ai/instanceAi/components/PlanReviewPanel.vue 0.00% 10 Missing ⚠️
...res/ai/instanceAi/components/AnsweredQuestions.vue 0.00% 5 Missing ⚠️
...features/ai/instanceAi/components/ArtifactCard.vue 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 10, 2026

Bundle Report

Changes will decrease total bundle size by 6.28kB (-0.01%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
editor-ui-esm 45.46MB -6.28kB (-0.01%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: editor-ui-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/worker-*.js -3.14MB 17.9kB -99.43%
assets/worker-*.js 3.14MB 3.16MB 17560.39% ⚠️
assets/core-*.js -13 bytes 614.01kB -0.0%
assets/InstanceAiView-*.js -4.51kB 284.43kB -1.56%
assets/InstanceAiView-*.css -1.76kB 153.06kB -1.14%

Files in assets/InstanceAiView-*.js:

  • ./src/features/ai/instanceAi/components/AnsweredQuestions.vue → Total Size: 364 bytes

  • ./src/features/ai/instanceAi/components/DomainAccessApproval.vue → Total Size: 374 bytes

  • ./src/features/ai/instanceAi/components/ArtifactCard.vue → Total Size: 344 bytes

  • ./src/features/ai/instanceAi/components/InstanceAiThreadList.vue → Total Size: 376 bytes

  • ./src/features/ai/instanceAi/components/InstanceAiConfirmationPanel.vue → Total Size: 402 bytes

  • ./src/features/ai/instanceAi/components/PlanReviewPanel.vue → Total Size: 356 bytes

  • ./src/features/ai/instanceAi/components/SplitButton.vue → Total Size: 340 bytes

  • ./src/features/ai/instanceAi/components/InstanceAiCredentialSetup.vue → Total Size: 394 bytes

  • ./src/features/ai/instanceAi/components/InstanceAiQuestions.vue → Total Size: 370 bytes

  • ./src/features/ai/instanceAi/components/GatewayResourceDecision.vue → Total Size: 386 bytes

  • ./src/features/ai/instanceAi/components/InstanceAiArtifactsPanel.vue → Total Size: 392 bytes

  • ./src/features/ai/instanceAi/components/ToolResultJson.vue → Total Size: 352 bytes

  • ./src/features/ai/instanceAi/components/DataSection.vue → Total Size: 527 bytes

  • ./src/features/ai/instanceAi/components/ConfirmationPreview.vue → Total Size: 539 bytes

  • ./src/features/ai/instanceAi/components/InstanceAiWorkflowSetup.vue → Total Size: 386 bytes

@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label Apr 10, 2026
@Tuukkaa Tuukkaa marked this pull request as ready for review April 10, 2026 08:33
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 17 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="packages/frontend/editor-ui/src/features/ai/instanceAi/components/InstanceAiThreadList.vue">

<violation number="1" location="packages/frontend/editor-ui/src/features/ai/instanceAi/components/InstanceAiThreadList.vue:245">
P2: Custom agent: **Design System Tokens**

Replace the hard-coded height with the design-system height token (Design System Style Rules §2 hard-coded visual values).</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.

.threadItem {
display: flex;
align-items: center;
height: 32px;
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot Apr 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Custom agent: Design System Tokens

Replace the hard-coded height with the design-system height token (Design System Style Rules §2 hard-coded visual values).

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/frontend/editor-ui/src/features/ai/instanceAi/components/InstanceAiThreadList.vue, line 245:

<comment>Replace the hard-coded height with the design-system height token (Design System Style Rules §2 hard-coded visual values).</comment>

<file context>
@@ -242,6 +242,7 @@ function handleThreadAction(action: string, threadId: string) {
 .threadItem {
 	display: flex;
 	align-items: center;
+	height: 32px;
 	border-radius: var(--radius);
 	transition: background-color 0.1s ease;
</file context>
Suggested change
height: 32px;
height: var(--height--md);
Fix with Cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

n8n team Authored by the n8n team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant