Repository navigation
feat: add WinUI test project with extracted shared helpers - #45
Merged
Merged
Conversation
Extract testable pure logic from WinUI tray app into shared helpers: - MenuDisplayHelper: status icons, text truncation, provider formatting - DeepLinkParser: URI parsing for openclaw:// deep links - MenuPositioner: tray popup positioning calculations Create tests/OpenClaw.Tray.Tests with comprehensive coverage for all extracted helpers plus settings serialization round-trips. Closes #43
36 tasks
This was referenced Mar 17, 2026
shanselman
pushed a commit
that referenced
this pull request
Mar 18, 2026
The 93-test Tray test suite (added in PR #45) was never wired up to the CI workflow — only OpenClaw.Shared.Tests ran. This adds build + run steps for OpenClaw.Tray.Tests so all 571 tests are validated on every push and pull request. Co-authored-by: Copilot <[email protected]>
shanselman
added a commit
that referenced
this pull request
Mar 18, 2026
The 93-test Tray test suite (added in PR #45) was never wired into CI. Adds build + run steps for OpenClaw.Tray.Tests so all 571 tests validate on every push/PR. Closes #58 Co-authored-by: Copilot <[email protected]>
vixco
pushed a commit
to vixco/openclaw-windows-node
that referenced
this pull request
Aug 16, 2026
The 93-test Tray test suite (added in PR openclaw#45) was never wired up to the CI workflow — only OpenClaw.Shared.Tests ran. This adds build + run steps for OpenClaw.Tray.Tests so all 571 tests are validated on every push and pull request. Co-authored-by: Copilot <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extract testable pure logic from WinUI tray app into shared helpers and create comprehensive test coverage.
New shared helpers (
src/OpenClaw.Shared/)ChannelHealth.IsHealthyStatus/IsIntermediateStatus), text truncation, provider formatting, toggle logicopenclaw://URI parser withDeepLinkResultrecordToJson()/FromJson()New test project (
tests/OpenClaw.Tray.Tests/)93 tests across 4 files:
WinUI refactored to use shared helpers
Updated
App.xaml.cs,DeepLinkHandler.cs,TrayMenuWindow.xaml.cs,SettingsManager.csReview
Dual-model code review (Opus + Codex) — both found same issue (missing connecting/reconnecting in channel icons). Fixed by delegating to
ChannelHealthhelpers.All 568 tests pass (475 shared + 93 tray).
Closes #43