Simulation Details page layout Update

This commit is contained in:
2026-02-23 22:03:52 -05:00
parent 5b2b0cbb1f
commit c0b62300f3
11 changed files with 527 additions and 92 deletions

View File

@@ -4,6 +4,7 @@
formatDate,
type SimulationState,
} from "./simulationState.svelte";
import { formatTime } from "$lib/ts/utils";
let { state }: { state: SimulationState } = $props();
</script>
@@ -15,6 +16,8 @@
<th>ID</th>
<th>Sim Name</th>
<th>Search Pattern</th>
<th>Search Time</th>
<th>Total Time</th>
<th>Date Run</th>
<th>Link</th>
</tr>
@@ -27,6 +30,8 @@
<td style="text-transform: capitalize;"
>{parseConfig(sim.config).pattern || "Unknown"}</td
>
<td>{formatTime(sim.search_time || NaN)}</td>
<td>{formatTime(sim.total_time || NaN)}</td>
<td>{formatDate(sim.created_at)}</td>
<td><a href={`/simulation/${sim.id}`}>View Details</a></td>
</tr>