Repository navigation
docs(demo): light and dark screenshots of the ECharts showcase app - #232
Merged
Merged
Conversation
docs/demo.md showed three single screenshots of the ECharts showcase app. They are now light/dark pairs with #only-light/#only-dark, taken from New-UDEChartShowcase on a PSU instance. Each shot ends at a card's bottom, so no chart is cut. docs/site/screenshots.mjs takes them when PSU_ECHARTS_DEMO_URL is set: the app's theme switch, a fixed 1440 px window, and two identical shots in a row before saving, so the charts are drawn and still. The screenshot test no longer allows singles. Refs #213 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The showcase spec and the showcase screenshots both waited for a page to stop adding charts. tests/browser/echarts-page.mjs now holds that wait once. The screenshot clip counts the card's bottom on the page, not in the window, and names the window width once. The development table names the three screenshot pairs. Refs #213 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 25, 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.
docs/demo.mdshowed three single screenshots of the ECharts showcase app. They are now light/dark pairs, so the screenshot test no longer needs exceptions.What changes
assets/: Ticket report, Data platform and Managed services (service review), each in light and dark. I took them fromNew-UDEChartShowcaseon a PowerShell Universal instance, with the app's own theme switch. Each shot ends just below a card, so no chart is cut. Both images of a pair show the same numbers and have the same size.docs/demo.mdshows each pair with#only-light/#only-darkand alt text per theme.docs/site/screenshots.mjstakes these shots whenPSU_ECHARTS_DEMO_URLpoints at the app. It works likePSU_PIVOT_DEMO_URL: a fixed 1440 px window, the theme set through the app bar's switch, the pointer moved off the charts, no alert or snackbar. Before it saves a shot, it waits until two shots in a row are identical. ECharts animates on a canvas, whichanimations: "disabled"does not stop. With neither variable set, it takes the site shots as before.tests/js/screenshots.test.js:SINGLESis empty. The mechanism stays for a future exception that has a reason and an issue.tests/browser/echarts-page.mjs: the wait for a page's charts, whichpsu.spec.mjshad inline. The spec and the screenshot script now share it.docs/development/index.mdnames the command for the new pairs.Checks
npm test: 219 pass, 0 fail, 0 skipped.npm run lint: 0 errors, 9 warnings (the samereact-hookswarnings as onmain, none in the changed files).npm run growth: all ok.Build-Site.ps1, thenzensical build --strict --cleanwith the pinned design and Zensical version: "No issues found".node build/check-readme-links.js site: 56 links checked.demo/page at 1280 px and 390 px, in light and dark: exactly the three images of the active theme are visible, with no horizontal scroll.psu.spec.mjsagainst the showcase app in Chromium, with the shared helper: 16 passed.Not changed
The ticket report's line chart draws its two "Average" labels on top of each other at the right edge. That comes from the showcase app, not from the screenshots. Both themes show it the same way.
Neutral review
A read-only reviewer with a fresh brief checked the first commit in its own worktree. It had no access to the instance. Its run:
npm test213 pass, 6 skipped, 0 fail. Lint and growth matched mine. It planted an unpaired screenshot, and the test caught it. Verdict: acceptable, no blocker.psu.spec.mjs. Fixed:tests/browser/echarts-page.mjs.SINGLESempty, the exception path is unused. Kept on purpose, as in pivotkit's test.Closes #213
🤖 Generated with Claude Code