import { useEffect, useMemo, useState, type ReactNode } from "react"; import { useHive } from "../store"; import { pruneTelemetry, saveOverride } from "../store/wiring"; import { confirmAction, deleteProject } from "../store/raw"; import { fetchStorage, type StorageBreakdown } from "../api"; import { fmtBytes, fmtNum } from "../lib/format"; // One labelled metric tile in the storage summary. `accent` gives the prune- // preview tile a subtly tinted card so it reads as the actionable figure. function StorageTile(props: { label: string; value: string; valueClass?: string; hint?: ReactNode; accent?: boolean }) { return (
Rename how a project appears across the dashboard. The change is saved locally and applies to every session from that working directory.
Telemetry content size {scopedProject ? "for this project" : "across all projects"} (payloads + tool/message text; the physical database file is larger and shrinks after a prune). Pruning removes telemetry older than a chosen age and cannot be undone.