mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 12:07:09 +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,32 @@
|
||||
import { BrowserRouter, Navigate, Route, Routes, useParams } from "react-router-dom";
|
||||
import RunList from "./routes/RunList";
|
||||
import RunDetail from "./routes/RunDetail";
|
||||
|
||||
function RunIndexRedirect() {
|
||||
const { id } = useParams<{ id: string }>();
|
||||
if (!id) {
|
||||
return <NotFound />;
|
||||
}
|
||||
return <Navigate to={`/runs/${id}/steps/1`} replace />;
|
||||
}
|
||||
|
||||
function NotFound() {
|
||||
return <div className="status-block">not found</div>;
|
||||
}
|
||||
|
||||
export default function App() {
|
||||
return (
|
||||
<BrowserRouter>
|
||||
<div className="app-shell">
|
||||
<main className="app-main">
|
||||
<Routes>
|
||||
<Route path="/" element={<RunList />} />
|
||||
<Route path="/runs/:id" element={<RunIndexRedirect />} />
|
||||
<Route path="/runs/:id/steps/:step" element={<RunDetail />} />
|
||||
<Route path="*" element={<NotFound />} />
|
||||
</Routes>
|
||||
</main>
|
||||
</div>
|
||||
</BrowserRouter>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user