Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@
"vite": "^7.0.4"
}
}
// test
// test 2
9 changes: 7 additions & 2 deletions src/components/SidePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ import { useCallback, useEffect, useRef, useState } from "react";
import { invoke } from "@tauri-apps/api/core";
import * as repo from "../lib/repo";
import { burst } from "../lib/confetti";
import { RainbowText } from "./RainbowText";
import { HUES, RainbowText, cycle } from "./RainbowText";
import type { AgentState, Blocker, Commit, Decision, FanOutRollup, Note, ToolEvent } from "../types";

// Horizontal rainbow for the "Left behind" section's bottom divider —
// same hue table as the heading text, applied via border-image so a
// single-pixel border-bottom can carry a gradient (background can't).
const RAINBOW_DIVIDER = `linear-gradient(90deg, ${HUES.map((_, i) => cycle(i, 0.6)).join(", ")})`;

interface Props {
cwd: string; // expanded absolute project dir of the active tab
sessionId: string | null; // session currently bound to the active tab, for scoping decisions/tool events away from sibling tabs on the same cwd
Expand Down Expand Up @@ -341,7 +346,7 @@ export function SidePanel({
)}
<div className="flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto p-3">
{prevCwd && prevCwd !== cwd && (
<section className="border-b border-zinc-800 pb-3">
<section className="border-b pb-3" style={{ borderImage: `${RAINBOW_DIVIDER} 1` }}>
<h2 className="mb-1.5 flex items-center gap-1.5 font-semibold tracking-wide uppercase">
<RainbowText text="Left behind" />
{prevState && <span className={`h-2 w-2 rounded-full ${STATE_DOT[prevState]}`} title={prevState} />}
Expand Down