Remove Cupertino fixture alternatives

Keep capture and probe tooling on the app's single Material surface by removing obsolete platform switches, hosts, and documentation. Preserve the existing Material routes and fixture behavior while retaining compatibility APIs outside this lane.
This commit is contained in:
2026-11-11 20:10:51 +00:00
parent 3f05421e8b
commit 69ae0519bd
10 changed files with 57 additions and 80 deletions
+5 -5
View File
@@ -29,8 +29,8 @@ change, from `app/`:
```
URL parameters (the kit sets them from `open=` and the options):
`route=<app route>`, `q=<search>`, `platform=material|cupertino`,
`theme=light|dark`; `--params` (or a step's or script's `params`) adds fixture
`route=<app route>`, `q=<search>`, `theme=light|dark`; `--params` (or a step's
or script's `params`) adds fixture
options such as `chats=2&rich=1`. Use `route=/settings` to open Settings and then
click `Server health`; the fixture channel returns `server_stats` automatically.
Without `theme`, the app follows the browser's colour
@@ -39,7 +39,7 @@ scheme. `--theme` also sets that colour scheme through Chrome emulation.
## Steps
You can pass steps on the command line as `verb=value`. With `--script`, they
go in a JSON array or in `{ "size", "platform", "theme", "q", "steps": [...] }`.
go in a JSON array or in `{ "size", "theme", "q", "steps": [...] }`.
In JSON, a step can also set `wait` (ms), `timeout`, `name`, `ms` and `frames`.
| step | effect |
@@ -84,8 +84,8 @@ Its bytes are served from the build, so copy the fixture in after building:
## Recipes (run from `app/` after building `build/probe-app`)
Capture a page at phone and fold widths. Use 560 for phone: headless Chrome
misrenders Flutter below about 500 px. The app has one Material UI; do not
capture `platform=cupertino`.
misrenders Flutter below about 500 px. The app has one Material UI. The fixture
is Material-only on every platform.
```sh
for size in 560x1000 880x1000; do
+3 -3
View File
@@ -16,7 +16,7 @@ import { contactSheet, pickFrames } from './sheet.mjs';
import { describe, flutterPage, parseTarget } from './page.mjs';
const USAGE = `usage: capture.mjs (--build <dir> | --url <url>) --out <dir> [options] [steps...]
options: --script <steps.json> --size WxH (880x1000) --platform material|cupertino
options: --script <steps.json> --size WxH (880x1000)
--theme light|dark --q <search> --wait <ms after actions, 1000>
--film-ms <ms, 900> --cdp http://127.0.0.1:<port> --probe true|false
--params <query, e.g. chats=2&rich=1, added to every open>
@@ -47,7 +47,7 @@ let steps = cliSteps;
if (opts.script) {
const script = JSON.parse(await readFile(opts.script, 'utf8'));
const list = Array.isArray(script) ? script : script.steps;
if (!Array.isArray(script)) for (const k of ['size', 'platform', 'theme', 'q', 'params']) if (script[k] && !opts[k]) opts[k] = script[k];
if (!Array.isArray(script)) for (const k of ['size', 'theme', 'q', 'params']) if (script[k] && !opts[k]) opts[k] = script[k];
steps = [...list, ...cliSteps];
}
// The default size applies only when neither the command line nor the script sets one.
@@ -74,7 +74,7 @@ const save = async (path, data) => { await writeFile(path, data); report.files.p
function routeUrl(step, base) {
const route = step.open;
const params = { platform: step.platform ?? opts.platform, theme: step.theme ?? opts.theme, q: step.q ?? opts.q };
const params = { theme: step.theme ?? opts.theme, q: step.q ?? opts.q };
let url;
if (/^https?:/.test(route)) url = new URL(route);
else if (probe) { url = new URL('/', base); url.searchParams.set('route', route); }
@@ -1,6 +1,5 @@
{
"size": "560x1000",
"platform": "material",
"theme": "dark",
"params": "chats=4&colors=1&header=1&rich=1",
"steps": [