From 630c0470c7b03cd16224164e6596226700468cbd Mon Sep 17 00:00:00 2001 From: Laurent-Philippe Albou <24249870+lpalbou@users.noreply.github.com> Date: Mon, 2 Nov 2026 05:46:12 +0100 Subject: [PATCH 1/3] checkpoint: every chat box on the shared panel-chat 0.7 ChatComposer (authoring assistant, Follow Up, code assistant, run waiting input) --- CHANGELOG.md | 6 ++ package.json | 4 +- scripts/subflow_authoring_drive.mjs | 4 +- src/components/CodeAssistantPanel.tsx | 43 +++------ src/components/FlowDocsAssistant.test.tsx | 2 +- src/components/RunFlowModal.tsx | 89 +++++++----------- .../assistant/AssistantComposer.tsx | 43 ++++----- src/styles/index.css | 90 ++----------------- src/styles/responsive.css | 7 -- 9 files changed, 86 insertions(+), 202 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 75133f90..6423fffd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 0.16.0. ### Changed +- Every chat box uses the shared rounded multiline composer from `@abstractframework/panel-chat` 0.7.0: + the authoring assistant and Follow Up (Ctrl/Cmd+Enter sends, since each starts a run), the code + assistant and the run window's waiting input and Continue (Enter sends, Shift+Enter adds a line); + attachments through the + button or drag and drop. The dependency moves from panel-chat 0.5 to + 0.7, which also brings the 0.6 docs assistant wording and read-aloud behaviour; requires + `@abstractframework/ui-kit` ^0.9.8. - The top bar's account is the kit's ONE account widget (operator ruling 2026-10-29: the docs button, Appearance, About and the account are the same kit components in every app). Signed in, one button shows the person icon, your name and the connection light; its menu holds Signed in as, Gateway, Copy user id and Disconnect. It replaces diff --git a/package.json b/package.json index cabe1f8d..6b0d675d 100644 --- a/package.json +++ b/package.json @@ -44,8 +44,8 @@ }, "dependencies": { "@abstractframework/app-server": "^0.1.12", - "@abstractframework/panel-chat": "^0.5.0", - "@abstractframework/ui-kit": "^0.9.6", + "@abstractframework/panel-chat": "^0.7.0", + "@abstractframework/ui-kit": "^0.9.8", "@monaco-editor/react": "^4.6.0", "@tanstack/react-query": "^5.17.0", "clsx": "^2.1.0", diff --git a/scripts/subflow_authoring_drive.mjs b/scripts/subflow_authoring_drive.mjs index 4b1961bd..c80cd35d 100644 --- a/scripts/subflow_authoring_drive.mjs +++ b/scripts/subflow_authoring_drive.mjs @@ -72,7 +72,7 @@ try { }, REQUEST); await new Promise((r) => setTimeout(r, 400)); await page.evaluate(() => { - const send = Array.from(document.querySelectorAll('.assistant-actions-send button')).find((b) => b.textContent?.trim() === 'Send'); + const send = document.querySelector('.assistant-input-area .pc-composer__send--compact'); send?.click(); }); note('request sent — waiting for the turn (up to 10 min)'); @@ -84,7 +84,7 @@ try { while (Date.now() < deadline) { await new Promise((r) => setTimeout(r, 5000)); const state = await page.evaluate(() => { - const stop = Array.from(document.querySelectorAll('.assistant-actions-send button')).find((b) => /Stop/i.test(b.textContent || '')); + const stop = document.querySelector('.assistant-input-area .pc-composer__trailing .pc-workflow-chat__stop'); const pill = document.querySelector('.assistant-state-pill')?.textContent || ''; const lastMsg = Array.from(document.querySelectorAll('.assistant-message, .assistant-messages [class*=message]')).pop()?.textContent?.slice(0, 120) || ''; return { busy: Boolean(stop), pill, lastMsg }; diff --git a/src/components/CodeAssistantPanel.tsx b/src/components/CodeAssistantPanel.tsx index e735c8b2..e3c335c0 100644 --- a/src/components/CodeAssistantPanel.tsx +++ b/src/components/CodeAssistantPanel.tsx @@ -1,5 +1,6 @@ import { useCallback, useEffect, useRef, useState } from 'react'; import { clipboardWriteOrThrow } from '../lib/copy_feedback'; +import { ChatComposer } from '@abstractframework/panel-chat'; import { askCodeAssistant, buildCodeAssistantPrompt, @@ -155,44 +156,28 @@ export function CodeAssistantPanel({ context, contracts: givenContracts, onInser ))} {busy ?
Thinking…
: null} -
{ - e.preventDefault(); - void ask(draft); - }} - > -