diff --git a/app/page.tsx b/app/page.tsx index 0650b55..adcbbd7 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -7,6 +7,7 @@ import { } from "react"; import type { FileDiffOptions } from "@pierre/diffs"; import { PatchDiff, Virtualizer } from "@pierre/diffs/react"; +import { useLiveSnapshot } from "./use-live-snapshot"; type FileStatus = "added" | "modified" | "deleted" | "renamed" | "binary"; @@ -72,7 +73,6 @@ type DiffSnapshot = { }; }; -const FALLBACK_POLL_MS = 1_500; const DIFF_OPTIONS = { diffIndicators: "classic", diffStyle: "unified", @@ -135,6 +135,21 @@ function statusLabel(status: FileStatus) { return "Modified"; } +function BrandBlock() { + return ( +
+ +
+

Diffsplain

+

Agent-made change notes

+
+
+ ); +} + function DiffLines({ patch }: { patch: string }) { const shellRef = useRef(null); const renderablePatch = useMemo( @@ -194,16 +209,7 @@ function EmptyState({ return (
-
- -
-

Diffsplain

-

Agent-made change notes

-
-
+