From f1b52025d199639c1d9db0dd6a8f25eee986594a Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Thu, 1 Oct 2026 19:28:46 +0200 Subject: [PATCH 01/20] feat: Refine the Ask Question Surfaces and Drop the Stop Shortcut Hint --- .../Chat/Input/AskUserQuestionPopover.tsx | 82 ++++---- client/src/components/Chat/Input/ChatForm.tsx | 1 - .../Input/Composer/__tests__/Hints.spec.tsx | 4 - .../Chat/Messages/Content/AskUserQuestion.tsx | 66 ++++++- .../Messages/Content/AskUserQuestions.tsx | 175 ++++++++---------- .../AskUserQuestionCollapse.test.tsx | 4 +- .../Input/__tests__/useComposerHint.spec.ts | 45 ++--- client/src/hooks/Input/useAskAnswerMode.ts | 23 +-- client/src/hooks/Input/useComposerHint.ts | 24 +-- client/src/locales/en/translation.json | 4 - eslint-suppressions.json | 9 +- 11 files changed, 192 insertions(+), 245 deletions(-) diff --git a/client/src/components/Chat/Input/AskUserQuestionPopover.tsx b/client/src/components/Chat/Input/AskUserQuestionPopover.tsx index 53b53cbb755..ada6ad7575c 100644 --- a/client/src/components/Chat/Input/AskUserQuestionPopover.tsx +++ b/client/src/components/Chat/Input/AskUserQuestionPopover.tsx @@ -46,7 +46,6 @@ function AskUserQuestionPopoverContent({ } function AskUserQuestionsPopoverPanel({ ask }: { ask: ReturnType }) { - const localize = useLocalize(); const { liveAsk, collapse } = ask; const questions = liveAsk?.questions; if (liveAsk == null || questions == null || questions.length === 0) { @@ -54,37 +53,40 @@ function AskUserQuestionsPopoverPanel({ ask }: { ask: ReturnType -
-
-

- {localize( - questions.length === 1 ? 'com_ui_asking_questions_one' : 'com_ui_asking_questions', - { 0: questions.length }, - )} -

- -
- +
+
+ } + />
); } +/** Moves the question to the chat card and hands the composer back. */ +function MoveToChatButton({ onClick }: { onClick: () => void }) { + const localize = useLocalize(); + return ( + +