Add full sysinfo block preview backed by mock WaveEnv/WOS data#3033
Merged
Add full sysinfo block preview backed by mock WaveEnv/WOS data#3033
Conversation
Co-authored-by: sawka <2722291+sawka@users.noreply.github.com>
Deploying waveterm with
|
| Latest commit: |
dd6ee48
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8dfa5850.waveterm.pages.dev |
| Branch Preview URL: | https://copilot-add-sysinfo-mock-to.waveterm.pages.dev |
Copilot
AI
changed the title
[WIP] Add sysinfo block mock to WOS preview
Add full sysinfo block preview backed by mock WaveEnv/WOS data
Mar 11, 2026
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (3 files)
The code correctly:
|
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.
This adds a standalone preview for
sysinfousing the newer WaveEnv mock pattern, but renders the full block instead of the bare view. The preview seeds a mock block in WOS (meta.view = "sysinfo"), provides history via mock RPC, and drives live updates through frontend-only WPS event dispatch.What changed
frontend/preview/previews/sysinfo.preview.tsxto render a fullBlockwith sysinfo block chrome, tab/workspace context, and mock WOS objects.frontend/preview/previews/sysinfo.preview-util.tsto generate deterministic sysinfo history + live events for preview use.frontend/preview/previews/sysinfo.preview.test.tsto lock down the mock event/history shape used by the preview.Preview wiring
workspace,tab, andblockobjects so the preview exercises the real block path rather than a component-only render.view: "sysinfo"connection: "local"sysinfo:type: "CPU + Mem"graph:numpointsEventReadHistoryCommandin the preview env soSysinfoViewModelcan load initial history normally.Live FE-only event flow
handleWaveEvent()directly in the preview to simulate incomingsysinfoevents without touching backend transport.sysinfo.tsx.Result
Screenshot
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.