Add full sysinfo block preview with frontend-only WaveEnv/WPS mocks#3027
Draft
Add full sysinfo block preview with frontend-only WaveEnv/WPS mocks#3027
Conversation
Co-authored-by: sawka <[email protected]>
Co-authored-by: sawka <[email protected]>
Copilot
AI
changed the title
[WIP] Set up sysinfo block mock in WaveEnv
Add full sysinfo block preview with frontend-only WaveEnv/WPS mocks
Mar 10, 2026
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.
The preview server had the new WaveEnv-based mocking path for widgets and block chrome, but
sysinfowas still missing a corresponding setup. This wiressysinfointo the same model/block rendering flow and lets the preview drive updates entirely on the frontend via WPS.What changed
sysinfopreview that renders the real block, not just the inner view.meta.view = "sysinfo") so the existing block registry, block chrome, andSysinfoViewModelrun unchanged.sysinfoevents throughhandleWaveEvent()to exercise the live subscription/update path without backend involvement.WaveEnv typing
SysinfoEnvto useWaveEnvSubset<...>so its contract matches the newer typed env pattern already used by other encapsulated views/blocks.Preview WPS support
waveEventSubscribeSingle()functional while still avoiding any backend interaction.Preview behavior
Files
frontend/preview/previews/sysinfo.preview.tsxfrontend/preview/preview.tsxfrontend/app/view/sysinfo/sysinfo.tsxScreenshot
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.