Repository navigation
Description
Goal
Messages and cards in the chat transcript follow the Angular design: user messages as outlined blocks, assistant text without a bubble, executed actions as flat cards whose header says in one line how the command ran ("Ran automatically · rule <pattern> · " and the exit code), and all other transcript items (errors, notices, questions, web activity, documents, code blocks) in the same language.
Context
- Design reference: chat column of
docs/design/angular/screens/Main.pnganddocs/design/angular/screens/DeskChat.png(desktop),docs/design/angular/screens/MobChat.png(mobile). - The confirmation card inside DeskChat/MobChat (parts list, per-sub-command rules, "Save rules (N)") is built by Confirmation dialog: expand each sub-command to stage an allow rule, save rules separately #1357 (epic Confirmation dialog: allow rules per sub-command #1355, backend Rule suggestions per sub-command and batch save of staged rules #1356). Its body lives in
ConfirmActionForm(apps/smart-ssh-community/frontend/src/components/chat/ActionCard.tsx:291-382),chat/CoverageList.tsx,chat/QuickRuleButton.tsx,chat/RiskBadges.tsx. - User message: accent-tinted bubble (
chat/ChatItemView.tsx:81); assistant text:rounded-lg bg-surface-raised p-3 shadow-smbubble, max 85 % (chat/AssistantMessageView.tsx:80), hover actions (:92-109, spec 0055 Part 2), truncated note with Continue (:110-122). - Executed card: label "Suggest command" plus "automatically executed" badge (
chat/ActionCard.tsx:73-107,chat/chatItem.ts:254-265), success-tinted frame (chatItem.ts:272-276), separate muted rule line (AutoExecRulesLine.tsx:49-72, renderedActionCard.tsx:120-122; dataAutoExecRuleinsrc/api/types.ts:318-324, one per segment), output with "exit code: N" at the bottom (ActionCard.tsx:437-459), running indicator and live output (ActionCard.tsx:248-289,LiveCommandOutput.tsx), injection check (InjectionCheckStatus.tsx), file read/write results (ActionCard.tsx:414-434), "Take into note" (:470-513). - Other items:
chat/ChatItemView.tsx(error card, rule notice, auto-continuation limit, compaction notice, cancelled, empty/refused answer, web unavailable, budget waiting, history items, attachments line),chat/ErrorCard.tsx,chat/CodeBlock.tsx,chat/DocumentCard.tsx,QuestionCard.tsx,WebActivityCard.tsx. - Spec 0011 §7 describes the rule line as "eine gedämpfte Zeile unter dem Kommando"; spec 0029 §2 the header order label – risk badges – decision badge.
Requirements
- User message:
surface-raisedblock with a 1 pxborder-strongrule,fgtext, max 86 % width (85 % narrow), right-aligned as today. - Assistant text: no bubble; paragraphs in
fg-soft, inline code mono onsurface-raised, headings and lists from the typography plugin with the theme tokens; hover actions and the truncation note keep their behaviour (spec 0055 Part 2, spec 0065). - Executed-action card (decision
AutoExec): neutral 1 pxborderonsurface-sunken; header row with 1 px bottom rule:bolticon insuccess-fg,text-label"Ran automatically" insuccess-fg, then per covering rule "rule" + the pattern as a bordered mono chip (still a link to the rule when it exists, plain text when deleted) + "· ", and the exit code right-aligned in mono once the result exists; then$ <command>in mono and the output infg-subtle. Several rules (one per segment) are listed in the header and wrap. Restored chats without rule data show the header without rules. - Cards that ran after a confirmation or were denied keep their meaning and status tone (Allow/Confirm/Deny colours of spec 0009) in the same flat layout:
bolt/check/xicon plus label in the status colour instead of tinted frames. - Running state (indicator, "Disconnect this command", live output), injection check, file read/write results, diff previews, "Take into note" and every item type of
ChatItemViewget the flat style (1 px rules,text-labelheadings, icons from the icon set, status squares); no behaviour or text change except the merged rule line. QuestionCard,WebActivityCard,DocumentCard,CodeBlock,ErrorCard: square, 1 px rules, label typography, icons from the set.- Confirmation card: if Confirmation dialog: expand each sub-command to stage an allow rule, save rules separately #1357 is already merged, restyle its card (rows, scope chips, "Save rules (N)", Execute/Deny) to the design in
DeskChat.png/MobChat.png; if Confirmation dialog: expand each sub-command to stage an allow rule, save rules separately #1357 is still open, restyle only the frame and header of the current card and leave its body to Confirmation dialog: expand each sub-command to stage an allow rule, save rules separately #1357, which then builds the card in the new style. - Keep the scroll column classes used by e2e (
div.overflow-y-auto.flex-1inChatPanel.tsx:213) or update those selectors. - New strings in all 25 locales.
Acceptance Criteria
- A chat with a user question, an assistant answer and an automatically executed command matches the chat column of
docs/design/angular/screens/Main.pngin dark andMainLight.pngin light theme. - An automatically executed compound command covered by two rules shows both rules (pattern chip links to the rule, scope text) and, after completion, the exit code in the card header; a deleted rule shows its pattern without a link.
- A confirmed, a denied and a blocked command show their status in the card header with the status colour and icon.
- Assistant hover actions, Continue after a truncated answer, Take into note, live output and Disconnect this command work as before.
- Every transcript item type renders without rounded corners or blurred shadows and uses icons from the set (no emoji).
- Screen readers get the same information as before (rule pattern, scope and exit code have text; icons are decorative or labelled); axe scans of the chat screens in
e2e/tests/accessibility.spec.tspass. - Spec 0011 §7 and spec 0029 §2 describe the merged card header.
- New strings exist in all 25 locales; colour guard passes.
- Unit tests
ChatPanel.test.tsx,ChatPanelAutoExecRules.test.tsx,ChatPanelLiveOutput.test.tsx,ChatPanelInjectionCheck.test.tsx,ChatPanelQuestion.test.tsx,ChatPanelWaitingInput.test.tsx,chat/CodeBlock.test.tsx,ChatItemViewMemo.test.tsx,QuestionCard.test.tsx,WebActivityCard.test.tsxand e2echat-question-card.spec.ts,chat-scroll-follow.spec.ts,chat-panel-review.spec.ts(transcript parts) are updated. - Relevant automated tests pass
Technical Notes
- Not part of this issue (listed for a product decision): collapsing executed output to a preview ("… 49 more lines"), disabling the composer while a confirmation is open.
- To keep this issue and Confirmation dialog: expand each sub-command to stage an allow rule, save rules separately #1357 from editing the same lines, do not change
ConfirmActionForm's body while Confirmation dialog: expand each sub-command to stage an allow rule, save rules separately #1357 is open; moving it into its own file first (no behaviour change) is fine if Confirmation dialog: expand each sub-command to stage an allow rule, save rules separately #1357 has not started.
Files: apps/smart-ssh-community/frontend/src/components/chat/ChatItemView.tsx, AssistantMessageView.tsx, ActionCard.tsx (card shell, executed header, results, running indicator), chatItem.ts, CodeBlock.tsx, DocumentCard.tsx, ErrorCard.tsx (under src/components/chat/), apps/smart-ssh-community/frontend/src/components/AutoExecRulesLine.tsx, LiveCommandOutput.tsx, InjectionCheckStatus.tsx, QuestionCard.tsx, WebActivityCard.tsx (under src/components/), tests listed above, apps/smart-ssh-community/frontend/src/locales/*/common.json (actionCard, chat), apps/smart-ssh-community/frontend/e2e/tests/, docs/specs/0011-rule-quick-accept.md, docs/specs/0029-risk-badge-positioning.md
Spec impact: update 0011 (§7), update 0029 (§2)
Open questions
- Ordering with Confirmation dialog: expand each sub-command to stage an allow rule, save rules separately #1357: recommendation: run this issue after Confirmation dialog: expand each sub-command to stage an allow rule, save rules separately #1357 (same milestone, same directory), so the card is restyled once with its final structure.
Related Work
- Part of the Angular redesign (docs/design/angular/). Blocked by: Redesign: shared SVG icon set replaces emoji and glyph icons #1363 (icon-set), Confirmation dialog: expand each sub-command to stage an allow rule, save rules separately #1357 — run after Confirmation dialog: expand each sub-command to stage an allow rule, save rules separately #1357 so the confirmation card is restyled once.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
feat(frontend): flat chat transcript with executed-action card header (…
test(e2e): follow the flat action card frame in confirmation specs (#…
smart-ssh-coder commentedon Nov 20, 2026
Implementation ready for review. PR #1404. Flat chat transcript implemented: merged executed-card header (rules, scope chips, exit code), status icon/colour headers, bubble-less assistant text, square styling for other items; specs 0011/0029 and changelog updated; vitest and e2e green, CI green. Confirmation card body and Main.png comparison/screenshots not done (listed as follow-ups).
smart-ssh-reviewer commentedon Nov 20, 2026
Review: 1. The confirmation card body (rows, scope chips, Save rules (N), Execute/Deny) is not restyled to DeskChat.png/MobChat.png, although #1357 is merged and the issue requires the restyle in that case. 2. AC 1 (chat column matches Main.png/MainLight.png) has no evidence; please add dark and light screenshots and fix any deviations. 3. The test 'shows the exit code in the header once the result exists' still passes with ActionCard/AutoExecRulesLine/chatItem reverted to develop, so it has no effect; it needs to assert that the exit code is in the header row. 4. No test asserts the status icon and colour for confirmed/denied/blocked cards (AC 3) or the absence of rounded corners (AC 5); the listed unit and e2e tests were not updated (AC 9).
6 remaining items
smart-ssh-reviewer commentedon Nov 20, 2026
Review: Review round 3: all round-2 findings are fixed (confirmation card restyled, AC 1 screenshots show the scenario, flat-transcript tests fail against develop). One small blocking point is left, from this round's changes: 1. Spec 0029 §2 still says 'Haken = Bestätigung nötig', but the pending card now shows a shield. Change it to 'Schild'. 2. Spec 0011 §4 says the covering rule appears only as a tooltip. Now it is also visible text in the row, and 'Regeln speichern (N)' sits in the footer next to Deny/Execute. Update only the affected sentences.
docs(specs): align 0029 and 0011 with the redesigned confirmation card (
smart-ssh-coder commentedon Nov 20, 2026
Implementation ready for review. PR #1404. Fixed the two remaining review points: Spec 0029 now says shield, and Spec 0011 section 4 reflects the visible covering-rule text and footer Save-rules button. CI green.
smart-ssh-reviewer commentedon Nov 20, 2026
Review passed – moving on to merge. Review round 4: both remaining spec points are fixed. Spec 0029 §2 now says shield, and spec 0011 §4 describes the visible covering-rule text and the Save rules (N) button in the footer, matching the code. The listed unit tests (110) and the chat e2e specs (58) pass locally, and CI is green. Follow-ups: i18n key for the exit-code header text; shared Button/tooltip primitives are still rounded.
smart-ssh-coordinator commentedon Nov 20, 2026
Merge not possible, back to coding: PR #1404 has conflicts with develop – please resolve them.
smart-ssh-coder commentedon Nov 20, 2026
Implementation ready for review. PR #1404. Round-3 spec wording (0029 shield, 0011 visible rule text and footer save button) fixed in 5f1c638; CI green on pushed head.
smart-ssh-reviewer commentedon Nov 20, 2026
Review: 1. PR #1404 still conflicts with develop (head unchanged at 5f1c638). The conflict is in ChatPanel.tsx, in the three busy-indicator hunks (AI waiting, auto-continuation, generating). Merge develop and keep develop's
<Icon name="spark" className="shrink-0 animate-pulse" />in all three. Then run the chat unit tests and e2e specs again and push. Nothing else is open; the round-4 findings are all fixed.merge: develop into issue-1371-redesign-chat-transcript-messages (#1371)
smart-ssh-coder commentedon Nov 20, 2026
Implementation ready for review. PR #1404. Merged develop, resolved the ChatPanel.tsx busy-indicator conflicts by keeping the spark Icon in all three places; chat unit tests and chat-panel-review e2e green, CI green on the pushed head.
smart-ssh-reviewer commentedon Nov 20, 2026
Review passed – moving on to merge. Review round 6: the merge of develop resolved the ChatPanel.tsx conflict. The PR diff against develop has the same content as the round-4 approval; develop's flat spark busy indicators are kept. Locally: 243 chat unit tests and 154 chat/accessibility e2e runs passed, and tsc and lint are clean. CI is green on 167690a. The follow-ups from round 4 are still open: an i18n key for the exit-code header text, and the rounded shared Button/tooltip primitives.
feat(frontend): redesign chat transcript with flat cards (#1404)
smart-ssh-coordinator commentedon Nov 20, 2026
Merged and branch deleted: PR #1404 (squash) in develop
smart-ssh-planner commentedon Nov 20, 2026
Follow-ups filed: #1414 Translate the exit code text and hide the $ prompt from screen readers in the chat action card. Not filed: shared Button/tooltip primitives still rounded (restyling belongs to the open redesign epic #1360); the async class-scan test timing and the screenshots branch are minor/obsolete.