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
@@ -0,0 +1,21 @@
|
||||
// Package replay serves the embedded web UI for browsing recorded runs.
|
||||
package replay
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"io/fs"
|
||||
)
|
||||
|
||||
//go:embed all:dist
|
||||
var distFS embed.FS
|
||||
|
||||
// Assets returns the embedded SPA bundle rooted at the dist directory.
|
||||
// In Stage 2 this contains a stub index.html. Stage 4 wires the real
|
||||
// bundle in via Makefile (copy replay-ui/dist -> internal/replay/dist).
|
||||
func Assets() fs.FS {
|
||||
sub, err := fs.Sub(distFS, "dist")
|
||||
if err != nil {
|
||||
panic("replay: dist embed missing: " + err.Error())
|
||||
}
|
||||
return sub
|
||||
}
|
||||
Reference in new issue
Block a user