Skip to content

refactor(tests): remove unused chat rendering adapters - #173102

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/test-audit-chat-interop-20261015
Oct 15, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor/test-audit-chat-interop-20261015

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Chat test support still contains unused Lit adapters after the tests migrated to direct Solid rendering.

User Impact

No user-visible change. Production components, test cases, and assertions are unchanged.

Why This Change Was Made

Remove the orphan attachment and composer-question helper files and the unused message-content adapter. Keep the activity-group and message-group helpers and their public re-export, which still have test consumers.

This finishes leftover test support from #171625, #171586, and #171892. Repository-wide reference checks found no consumers of the four removed helpers. The diff removes 36 lines net from test support only.

Evidence

  • Reviewed head: ab83bac78fd4444602b6ea35da23f761d78ee26c, based on d38e32f10740aebbc897d41479d0140119ce8039.
  • All 46 existing tests passed across five keeper files in 16.38 seconds: chat-attachments.test.tsx, chat-attachment-inputs.test.tsx, chat-question-card-loading.test.ts, chat-message-group.solid.test.tsx, and chat-message-embed-policy.test.ts.
  • Focused proof used node scripts/run-vitest.mjs --config ui/vitest.config.ts <keeper files> --maxWorkers=1, on Linux with Node 24.19.0 and a checkout-owned frozen install.
  • Targeted formatting and git diff --check passed. Changed-file classification identifies only UI test support.
  • Independent preservation review completed with no P0-P2 findings.
  • Targeted type-aware lint passed with node scripts/run-oxlint.mjs --tsconfig ui/tsconfig.json ui/src/pages/chat/components/chat-message-group.test-support.ts, including its SDK declaration prerequisite.
  • Exact-head hosted CI passed: https://github.com/openclaw/openclaw/actions/runs/38731171936, attempt 1.
  • Native squash landing completed on October 15, 2026 at 12:11:25 UTC as d90ba712b2ad78d449ca1a1c451257e367eb4554. GitHub reports MERGED, and the squash was verified on main.
  • Landed source verification confirmed both deleted helpers are absent and the remaining helper is byte-identical to the reviewed head.

@vincentkoc vincentkoc self-assigned this Oct 15, 2026
@clawsweeper

clawsweeper Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@vincentkoc
vincentkoc marked this pull request as ready for review October 15, 2026 11:58
@vincentkoc
vincentkoc enabled auto-merge (squash) October 15, 2026 12:03
@vincentkoc
vincentkoc merged commit d90ba71 into main Oct 15, 2026
150 checks passed
@vincentkoc
vincentkoc deleted the refactor/test-audit-chat-interop-20261015 branch October 15, 2026 12:11
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant