Add three new pages completing the control-room web UI: - Agent activity: polls /agent-activity every 5s, filterable by type/agent - Knowledge search: FTS over /knowledge/search with snippet + entity links - Audit trail: browseable audit log with actor/action/entity filters Enhanced live events page with correlation-id clustering (Groups toggle). Added fetchAgentActivity/searchKnowledge/fetchAudit to the API client. 11 nav items now cover all planned control-room views.
33 lines
835 B
Svelte
33 lines
835 B
Svelte
<script lang="ts">
|
|
import { cn, type WithElementRef } from "$lib/utils.js";
|
|
import type { HTMLAttributes } from "svelte/elements";
|
|
import { Dialog as DialogPrimitive } from "bits-ui";
|
|
import { Button } from "$lib/components/ui/button/index.js";
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
class: className,
|
|
children,
|
|
showCloseButton = false,
|
|
...restProps
|
|
}: WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
showCloseButton?: boolean;
|
|
} = $props();
|
|
</script>
|
|
|
|
<div
|
|
bind:this={ref}
|
|
data-slot="dialog-footer"
|
|
class={cn("gap-2 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className)}
|
|
{...restProps}
|
|
>
|
|
{@render children?.()}
|
|
{#if showCloseButton}
|
|
<DialogPrimitive.Close>
|
|
{#snippet child({ props })}
|
|
<Button variant="outline" {...props}>Close</Button>
|
|
{/snippet}
|
|
</DialogPrimitive.Close>
|
|
{/if}
|
|
</div>
|