Remove redundant operation overview from beta page

This commit is contained in:
2026-09-21 19:29:09 -04:00
parent 588c4d8e0e
commit e448457d58
2 changed files with 6 additions and 4 deletions
@@ -2,7 +2,7 @@
import { timeFormat } from '$ui/stores/time-zone.js';
import type { ActivityEvent, OperationStep } from '$lib/operation-flow.js';
import Button from './primitives/Button.svelte';
let { steps, events, active = false }: { steps: OperationStep[]; events: ActivityEvent[]; active?: boolean } = $props();
let { steps = [], events, active = false, showOverview = true }: { steps?: OperationStep[]; events: ActivityEvent[]; active?: boolean; showOverview?: boolean } = $props();
let limit = $state(25);
let query = $state('');
let newestFirst = $state(true);
@@ -11,6 +11,7 @@
const visible = $derived(newestFirst ? matching.slice(-limit).reverse() : matching.slice(0, limit));
</script>
{#if showOverview}
<section>
<h2>Operation flow</h2>
<ol class="flow">
@@ -22,8 +23,9 @@
{/each}
</ol>
</section>
{/if}
<section>
{#if latest}<p class="latest"><strong>Latest update</strong> {latest.message}<time datetime={latest.created_at}>{$timeFormat.dateTime(latest.created_at)}</time></p>{/if}
{#if showOverview && latest}<p class="latest"><strong>Latest update</strong> {latest.message}<time datetime={latest.created_at}>{$timeFormat.dateTime(latest.created_at)}</time></p>{/if}
<details>
<summary>Activity history · {events.length} events{active ? ' · updates automatically' : ''}</summary>
{#if events.length}