mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
replay ui fix (#56)
* refactor: rename inspect to replay across the codebase Renames inspect-ui/ to replay-ui/, internal/inspect/ to internal/replay/, the CLI subcommand from `sanderling inspect` to `sanderling replay`, and updates all references in docs, Makefile, README, and Go comments. * feat(replay-ui): show spec filename with full path on hover RunList and RunDetail now render the basename of spec_path (e.g. login.spec.ts) with the full path available as a title tooltip.
This commit is contained in:
71 files changed
+104
-92
No files matched your search
+2
-2
@@ -25,7 +25,7 @@ Run a spec against an app for a fixed duration.
|
||||
| `--output` | `./runs` | Output directory for traces. |
|
||||
| `--clear-data` | `false` | Clear app data before launching so the run starts from a fresh install. |
|
||||
|
||||
## `sanderling inspect [run-or-runs-dir]`
|
||||
## `sanderling replay [run-or-runs-dir]`
|
||||
|
||||
Serve a local web UI for browsing traces. The positional argument is optional and may point at either a runs directory (the parent of many runs) or a single run directory (auto-detected by the presence of `meta.json`). Defaults to `./runs`.
|
||||
|
||||
@@ -35,7 +35,7 @@ Serve a local web UI for browsing traces. The positional argument is optional an
|
||||
| `--no-open` | `false` | Skip opening the default browser on startup. |
|
||||
| `--dev` | `false` | Reverse-proxy non-API requests to the Vite dev server on `127.0.0.1:5173`. |
|
||||
|
||||
See [the inspect UI page](./inspect/) for the panel reference and keyboard shortcuts.
|
||||
See [the replay UI page](./replay/) for the panel reference and keyboard shortcuts.
|
||||
|
||||
## `sanderling doctor`
|
||||
|
||||
|
||||
@@ -92,6 +92,6 @@ runs/2026-04-18T12-34-56/
|
||||
└── meta.json
|
||||
```
|
||||
|
||||
Browse it with `sanderling inspect` (see [inspect](./inspect/)), or read `trace.jsonl` step by step.
|
||||
Browse it with `sanderling replay` (see [replay](./replay/)), or read `trace.jsonl` step by step.
|
||||
|
||||
Next: [writing specs](./writing-specs/).
|
||||
@@ -1,18 +1,18 @@
|
||||
---
|
||||
title: sanderling inspect
|
||||
title: sanderling replay
|
||||
---
|
||||
|
||||
# sanderling inspect
|
||||
# sanderling replay
|
||||
|
||||
Local web UI for exploring runs produced by `sanderling test`. Reads `runs/<id>/meta.json` and `runs/<id>/trace.jsonl` from disk.
|
||||
|
||||
```
|
||||
sanderling inspect [run-or-runs-dir] [--port N] [--no-open] [--dev]
|
||||
sanderling replay [run-or-runs-dir] [--port N] [--no-open] [--dev]
|
||||
```
|
||||
|
||||
The positional argument can be a runs directory or a single run directory (auto-detected by `meta.json`). Defaults to `./runs`.
|
||||
|
||||

|
||||

|
||||
|
||||
## Panels
|
||||
|
||||
@@ -44,15 +44,15 @@ Arrow keys inside a tablist or listbox yield to those widgets. Use `j`/`k` when
|
||||
|
||||
`/runs/:id/steps/:n` links to a specific step. Use it in issues or PRs when pointing at a violation.
|
||||
|
||||
The run index auto-refreshes over SSE as new runs land, so `sanderling inspect` and `sanderling test` can run side by side.
|
||||
The run index auto-refreshes over SSE as new runs land, so `sanderling replay` and `sanderling test` can run side by side.
|
||||
|
||||
## Development
|
||||
|
||||
Two-process loop while iterating on the UI:
|
||||
|
||||
```
|
||||
make web-dev # bun + vite on http://127.0.0.1:5173
|
||||
make inspect-dev # sanderling inspect --dev, proxies non-API to 5173
|
||||
make web-dev # bun + vite on http://127.0.0.1:5173
|
||||
make replay-dev # sanderling replay --dev, proxies non-API to 5173
|
||||
```
|
||||
|
||||
Single binary with the bundle embedded:
|
||||
Reference in new issue
Block a user