Skip to content

refactor(ui): remove duplicate helper paths#101647

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/deadcode-all-surfaces-20260707-v43
Jul 7, 2026
Merged

refactor(ui): remove duplicate helper paths#101647
vincentkoc merged 1 commit into
mainfrom
refactor/deadcode-all-surfaces-20260707-v43

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Removes redundant Control UI helper paths that duplicated canonical implementations or exposed unused compatibility-style facades.

Why This Change Was Made

The cron model suggestion resolver now has one implementation and one owner, with its behavior tests colocated there. Unused identity and route exports were deleted, and chat avatar callers now import the canonical avatar helper directly.

User Impact

No intended user-visible behavior change. The Control UI has fewer duplicate code paths and a smaller internal API surface.

Evidence

  • Targeted UI tests: 6 files, 183 tests passed.
  • Core and core-test typecheck lanes passed.
  • Changed-surface guards passed: conflict markers, changelog, wildcard tests, duplicate coverage, dependency pins, package patches, and temporary-file checks.
  • Scoped Oxlint across all 9 touched files: 0 warnings, 0 errors.
  • git diff --check: passed.
  • Dead-code analyzer findings: 3,635 -> 3,622.
  • Refreshed codebase graph: 281,052 nodes / 1,138,939 edges.
  • Fresh local and branch autoreviews: no findings.
  • The broad check:changed lint phase was not usable as branch proof: Testbox traversed packages/speech-core/node_modules/openclaw/** and reported 3,760 unrelated dependency/generated-tree errors after the relevant guards and typecheck lanes had passed.

No changelog entry: internal refactor only.

@vincentkoc vincentkoc self-assigned this Jul 7, 2026
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Jul 7, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

Land-ready verification completed on exact head 51a163d8cf3b8ebe149581ae332442a4d92e57f8.

  • Targeted Control UI tests: 6 files, 183 tests passed.
  • Core and core-test typecheck lanes passed.
  • Changed-surface guards passed.
  • Scoped Oxlint across all 9 touched files: 0 warnings, 0 errors.
  • git diff --check passed.
  • Dead-code analyzer findings reduced from 3,635 to 3,622.
  • Codebase graph refreshed to 281,052 nodes / 1,138,939 edges.
  • Fresh local and branch autoreviews found no issues.
  • scripts/pr review-guard, review-validate-artifacts, and prepare-run passed; hosted gates accepted the exact PR head.

Known proof gap: the broad check:changed lint phase followed packages/speech-core/node_modules/openclaw/** in Testbox and reported 3,760 unrelated dependency/generated-tree errors after the relevant guards and typecheck lanes had passed. Scoped lint for every touched file is clean.

@vincentkoc vincentkoc marked this pull request as ready for review July 7, 2026 12:21
@vincentkoc vincentkoc merged commit 60f0749 into main Jul 7, 2026
75 of 79 checks passed
@vincentkoc vincentkoc deleted the refactor/deadcode-all-surfaces-20260707-v43 branch July 7, 2026 12:21
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

shakkernerd added a commit that referenced this pull request Jul 7, 2026
Related: #101647

## What Problem This Solves

Removes stale Control UI test mocks that modeled helper exports no longer exposed by the chat display module.

## Why This Change Was Made

The chat message tests no longer reach the display module, so their mock was removed. The chat view tests retain only the fallback asset mock and exercise the canonical avatar helpers directly.

## User Impact

No user-visible behavior change. Tests now reflect the current module ownership without duplicating avatar logic.

## Evidence

- Focused Testbox run: 2 files, 209 tests passed.
- Testbox: `tbx_01kwyatxdvb64ncvbn9ertg6fa`
- Actions run: https://github.com/openclaw/openclaw/actions/runs/28868305075
- `git diff --check`: passed.
- Codex autoreview: no actionable findings.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 8, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 8, 2026
Related: openclaw#101647

## What Problem This Solves

Removes stale Control UI test mocks that modeled helper exports no longer exposed by the chat display module.

## Why This Change Was Made

The chat message tests no longer reach the display module, so their mock was removed. The chat view tests retain only the fallback asset mock and exercise the canonical avatar helpers directly.

## User Impact

No user-visible behavior change. Tests now reflect the current module ownership without duplicating avatar logic.

## Evidence

- Focused Testbox run: 2 files, 209 tests passed.
- Testbox: `tbx_01kwyatxdvb64ncvbn9ertg6fa`
- Actions run: https://github.com/openclaw/openclaw/actions/runs/28868305075
- `git diff --check`: passed.
- Codex autoreview: no actionable findings.
giodl73-repo pushed a commit to giodl73-repo/openclaw that referenced this pull request Jul 8, 2026
giodl73-repo pushed a commit to giodl73-repo/openclaw that referenced this pull request Jul 8, 2026
Related: openclaw#101647

## What Problem This Solves

Removes stale Control UI test mocks that modeled helper exports no longer exposed by the chat display module.

## Why This Change Was Made

The chat message tests no longer reach the display module, so their mock was removed. The chat view tests retain only the fallback asset mock and exercise the canonical avatar helpers directly.

## User Impact

No user-visible behavior change. Tests now reflect the current module ownership without duplicating avatar logic.

## Evidence

- Focused Testbox run: 2 files, 209 tests passed.
- Testbox: `tbx_01kwyatxdvb64ncvbn9ertg6fa`
- Actions run: https://github.com/openclaw/openclaw/actions/runs/28868305075
- `git diff --check`: passed.
- Codex autoreview: no actionable findings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant