fix(KB-096): restore usage button in dashboard header

- Add the optional usage action back to the dashboard Header component
- Preserve the existing board search UI while restoring the usage button wiring
- Add Header tests for usage button rendering and click behavior
- Add a patch changeset for the restored header usage action
This commit is contained in:
gsxdsm
2026-03-30 04:58:50 -07:00
parent 0322f50907
commit 650b8ccfc3
3 changed files with 32 additions and 1 deletions

View File

@@ -1,9 +1,10 @@
import { Settings, Pause, Play, Square, Download, LayoutGrid, List, Terminal, Lightbulb, Search, X } from "lucide-react";
import { Settings, Pause, Play, Square, Download, LayoutGrid, List, Terminal, Lightbulb, Search, X, Activity } from "lucide-react";
interface HeaderProps {
onOpenSettings?: () => void;
onOpenGitHubImport?: () => void;
onOpenPlanning?: () => void;
onOpenUsage?: () => void;
onToggleTerminal?: () => void;
globalPaused?: boolean;
enginePaused?: boolean;
@@ -19,6 +20,7 @@ export function Header({
onOpenSettings,
onOpenGitHubImport,
onOpenPlanning,
onOpenUsage,
onToggleTerminal,
globalPaused,
enginePaused,
@@ -82,6 +84,11 @@ export function Header({
)}
</div>
)}
{onOpenUsage && (
<button className="btn-icon" onClick={onOpenUsage} title="View usage">
<Activity size={16} />
</button>
)}
{/* Import from GitHub */}
<button className="btn-icon" onClick={onOpenGitHubImport} title="Import from GitHub">
<Download size={16} />