Repository navigation
feat(dashboards): variable colours; ci(e2e): E2E on Linux and Windows · release 3.4.0 - #15
Merged
Merged
Conversation
The E2E against pymodbus only ever ran locally. A new e2e job runs it on ubuntu-24.04 and windows-latest after the other jobs pass. - Linux: WebKitWebDriver, Xvfb and socat come through the linux-deps action, which takes an `extra` package list included in its cache key. - Windows: msedgedriver matching the runner's WebView2, installed with msedgedriver-tool and put on PATH, as the Tauri WebDriver CI guide does. The app binary is modbus-tool.exe and the interpreter is python. - Windows has no socat, so its run has no serial checks: the run prints which checks it did not run instead of counting them as passed. The reference server's serial port is optional for the same reason. Local Linux run: 88/88, unchanged. The Windows run is new and will be measured on the first CI run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Rdii6QU3MVeyCefPEk5AL
The user asked for a proper colour picker with fixed and custom colours (spec D22). A variable's colour sets its trend line, its bar or its lit lamp. The fixed colours are five Aura tokens that follow the theme: ring, success, warning, danger, text-muted. accent nearly disappears on the dark theme, and info equals ring on the light one. A custom colour is a #rrggbb picked with color-picker-svelte 2.0.4 (MIT, Svelte 5, one MIT dependency). Without a colour the automatic palette works as before. Saved files without colours are read as automatic. color-picker-svelte 2.0.4 always opens its popup below on Position.Auto: ColorPicker's showAbove never returns its result. Below the last variable the dialog clipped the popup. The field now chooses above or below from the room in the dialog. E2E 88/88: the lamp set to Red lights in the computed --color-danger. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Rdii6QU3MVeyCefPEk5AL
On the first CI run the Linux E2E failed at its first step. It waits for the app's theme to be set, and the 5 s default ran out on a cold WebKit start on a fresh runner (the run had already spent 40 s starting). Only this start-up wait is longer; every check keeps its own timeout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Rdii6QU3MVeyCefPEk5AL
Version 3.4.0 in package.json, tauri.conf.json and Cargo.toml, and the dated CHANGELOG section that becomes the release text. A minor version: variables get colours, a new capability. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Rdii6QU3MVeyCefPEk5AL
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
On CI the Linux E2E still failed at start-up after 30 s, so this is not a slow start: the app never set its theme. Guessing at WebKit environment settings would not tell the cause, so the run now records it: - on a failed start it saves a screenshot and prints the page URL, the ready state and the start of the body; - E2E_OUT names the folder for the run's files; - CI uploads that folder when a job fails. ColorField measures the dialog with DOMRect y and height instead of top and bottom. The i18n checker read box.top as a possible window.top alias, which marked its unused-message check incomplete. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Rdii6QU3MVeyCefPEk5AL
3.3.1 built read blocks of up to 125 registers, the protocol's limit. Over TCP and UDP the master refuses more than 123 (rmodbus caps a frame at 255 bytes; check_limits in master.rs and the README's Known limits), so a block of 124 or 125 neighbouring registers failed on every read and its variables never updated. Found while rereading the README's limits. maxReadCount is now the one place for the rule: 2000 bits, and 125 registers, 123 on TCP/UDP. The dashboard blocks and the poll editor's quantity limit both use it, where the editor had its own copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Rdii6QU3MVeyCefPEk5AL
…natives The README is the project's only shop window, and it did not mention the dashboards at all. - A download link to the latest release at the top. - An 11 s GIF (441 KB) recorded from the real app: the slave generates a sine, a square wave and a ramp, the master reads them back over TCP, and a dashboard shows them in a trend, a gauge, a lamp and bars. - Dashboards in the feature list. - A comparison with Modbus Poll and Modbus Slave, ModbusTools, QModMaster, mbpoll and Simply Modbus. Each fact was checked today on the project's own site or repository, with the sources linked; anything a source does not state is shown as not offered. - The E2E section says CI now runs on Linux and Windows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Rdii6QU3MVeyCefPEk5AL
The CI artifact showed what goes wrong. The page loads (tauri://localhost, ready state complete), but #app stays empty, so the app's module never mounts it. main.ts mounts synchronously, so the module either throws while loading or is not loaded at all. On a failed start the run now re-imports that module and prints its error and stack, along with the WebKit user agent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Rdii6QU3MVeyCefPEk5AL
Getting ModbusTool into winget and Flathub needs pull requests from the maintainer's account. This prepares everything those pull requests use. - tauri.conf.json: the bundle names its publisher, chetto1983. The 3.3.1 MSI showed "github" (derived from the identifier) as the Manufacturer in Windows' installed apps, which winget compares with the publisher. Description, homepage and category are set too. - Release workflow: a winget job submits each new version with wingetcreate update, once the WINGET_TOKEN secret is set. It downloads wingetcreate v1.12.13.0 and checks its SHA-256 before running it. - packaging/flatpak: metainfo (appstreamcli validate passes), desktop file (desktop-file-validate passes) and a build-from-source manifest following the Tauri Flathub guide, with network and serial devices. The manifest has not been built: flatpak-builder was not available. - docs/publishing.md: the steps for both stores and what is still open for Flathub (disable the self-updater inside Flatpak, pick the GNOME runtime, generate the offline sources, build it). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Rdii6QU3MVeyCefPEk5AL
…seded runs webdriverio 10 has no executeAsync, so the module check threw before it reported anything. It now uses execute with an async function, which WebDriver awaits. Checked locally: it reports the module as loaded. CI cancels a run when a newer push reaches the same branch or pull request. Today every push started a full run, Windows E2E included, next to the older ones still going. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Rdii6QU3MVeyCefPEk5AL
On Windows the session was not created ("DevToolsActivePort file doesn't
exist"). That error usually means msedgedriver does not match WebView2.
msedgedriver-tool picks the driver from the Edge browser, and on a
runner the WebView2 runtime can be at another version. The step now
prints all three, so the fix can follow from what is actually installed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Rdii6QU3MVeyCefPEk5AL
A one-page site at chetto1983.github.io/ModbusTool: hero with the dashboard GIF, features, screenshots, the comparison table and download cards that point at the latest release's files through the GitHub API (the release page without it). scripts/build-site.mjs assembles _site from site/, the app's fonts, screenshots and icon, and writes tokens.css from src/app.css, so the page and the app share one palette. The Pages workflow builds and deploys it on master; it needs Settings -> Pages -> Source: GitHub Actions. knip learns site/site.js is an entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Rdii6QU3MVeyCefPEk5AL
…s not start On the Linux runner the page stays at an empty #app while importing the bundle again succeeds, so main.ts did not throw. The diagnosis now lists the resource entries (status and time) and the stylesheet count, and says whether the app mounts after the re-import: that tells a bundle that never ran from one that ran and rendered nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Rdii6QU3MVeyCefPEk5AL
On windows-latest (windows-2025) the WebDriver session is never created: "DevToolsActivePort file doesn't exist", with WebView2, Edge and msedgedriver all at 156.0.4314.58, so it is not a version mismatch. The runner-images issue #14738 reports the same failure on windows-2025 with matching versions and passing runs on windows-2022; it was closed upstream without a fix. This run measures whether windows-2022 works here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Rdii6QU3MVeyCefPEk5AL
…nswers on Linux Windows: on windows-2022 (WebView2 131) the session now starts and the first master checks pass; the click on the fourth grid row was refused as "not interactable". The runner desktop is 1024x768, the window is clamped to it, and the row sits below the grid's scrolled viewport. Clicks now scroll the element into view first, as a user would. Locally 88/88. Linux: the bundle never runs although the re-import resolves. A module script waits for the stylesheet before it, so the diagnosis now reports whether that stylesheet loaded and whether fetching the page's own files from tauri:// answers within 5 s. Calibrated locally, where both answer 200 and the stylesheet has 367 rules. Resource timing is dropped: it is empty for tauri:// even when the app starts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Rdii6QU3MVeyCefPEk5AL
…not start The Linux runner rules out the stylesheet: it loaded (367 rules), and tauri:// answers 200 for the bundle and the stylesheet. The bundle still never mounts. Guessing from the page has run out; the output of tauri-driver, WebKitWebDriver, the app and its webview now goes to a log in E2E_OUT, and its tail is printed with the start-up diagnosis. Checked locally: the log holds WebKit's EGL warnings and the run passes 88/88. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Rdii6QU3MVeyCefPEk5AL
On windows-2022 the run reached 85/86: the slave grid read ["","",""] where the reference had written 7, 8, 9. WebDriver's element text is empty for an element hidden by its scroll container, and in the runner's short window (desktop 1024x768) the first rows were scrolled out of the grid by the earlier clicks. The values are in the DOM either way; the helper now reads textContent. Locally 88/88. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Rdii6QU3MVeyCefPEk5AL
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.
What & why
#rrggbbpicked withcolor-picker-svelte2.0.4 (MIT, Svelte 5).Position.Auto, becauseshowAbovenever returns its result, so the dialog clipped it. The field now chooses above or below from the room in the dialog.e2ejob now runs it onubuntu-24.04andwindows-latest.Verification:
docs/superpowers/verification/2026-11-06-dashboards.md.Closes #
Type
Checklist
npm run check && npm run lint && npm run format:check && npm testpasscargo fmt --check && cargo clippy --all-targets -- -D warnings && cargo testpass (insrc-tauri/). Only the version changed in Rust.npm run file-size); touched files refactored on touchnpm run e2e): 88/88 locally on Linux. The new CI jobs are the first runs on Windows.CHANGELOG.mdupdated if behaviour or interfaces changed, perCLAUDE.mdNotes for reviewers
--color-danger. Trend-line and bar colours were checked only by eye in the editor.Generated by Claude Code