From 6e948109732a51c23685f447a3a82b49c905c709 Mon Sep 17 00:00:00 2001 From: imccyu <276526105+imccyu@users.noreply.github.com> Date: Thu, 23 Jul 2026 20:26:48 +0800 Subject: [PATCH] feat(gui): carry the question detail field over the wire and render it AskUserQuestionItem.detail is part of the user-interaction seam contract but the web frame schema dropped it and the composer never rendered it (review r3635427108). askUserQuestionItemSchema now forwards detail, the composer renders it under the title in the description text style, and the fixture's multi-select question carries one. --- packages/client/connection/src/client/fixture.ts | 1 + .../ui-question/src/client/QuestionComposer.module.css | 8 ++++++++ .../client/ui-question/src/client/QuestionComposer.tsx | 1 + .../client/ui-question/tests/question-composer.spec.tsx | 4 ++++ packages/host/apiproxy/src/api/events.schema.ts | 1 + 5 files changed, 15 insertions(+) diff --git a/packages/client/connection/src/client/fixture.ts b/packages/client/connection/src/client/fixture.ts index e26b9098a6..d609009bc1 100644 --- a/packages/client/connection/src/client/fixture.ts +++ b/packages/client/connection/src/client/fixture.ts @@ -307,6 +307,7 @@ export function createFixtureApi(): ApiProxy { id: 'signals', header: '信号', question: '哪些面试信号最重要?', + detail: '按当前招聘目标选择;跳过则视为不设偏好。', multiSelect: true, options: [ { label: '系统设计' }, diff --git a/packages/client/ui-question/src/client/QuestionComposer.module.css b/packages/client/ui-question/src/client/QuestionComposer.module.css index 21cd664ee3..e41a76caae 100644 --- a/packages/client/ui-question/src/client/QuestionComposer.module.css +++ b/packages/client/ui-question/src/client/QuestionComposer.module.css @@ -59,6 +59,14 @@ white-space: nowrap; } +.detail { + margin: 2px 0 0; + color: var(--dsw-alias-label-tertiary); + font-size: 13px; + line-height: 20px; + font-weight: 400; +} + .headerActions, .footerActions { display: flex; diff --git a/packages/client/ui-question/src/client/QuestionComposer.tsx b/packages/client/ui-question/src/client/QuestionComposer.tsx index c85d731287..3571263f61 100644 --- a/packages/client/ui-question/src/client/QuestionComposer.tsx +++ b/packages/client/ui-question/src/client/QuestionComposer.tsx @@ -171,6 +171,7 @@ function QuestionFlow({ pending }: { pending: PendingQuestion }) { : question.question} {question.multiSelect === true && 可多选} + {question.detail !== undefined &&
{question.detail}
}