Simulation Details page layout Update
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user