feat(KB-086): complete Step 7 — integrate ActivityLogModal with Header and App

This commit is contained in:
gsxdsm
2026-03-30 18:31:38 -07:00
parent 5c02600bc8
commit 581d33cec1
3 changed files with 134 additions and 25 deletions

View File

@@ -1,11 +1,12 @@
import { useState, useEffect, useRef, useCallback } from "react";
import { Settings, Pause, Play, Square, Download, LayoutGrid, List, Terminal, Lightbulb, Search, X, Activity, MoreHorizontal, Clock, Folder } from "lucide-react";
import { Settings, Pause, Play, Square, Download, LayoutGrid, List, Terminal, Lightbulb, Search, X, Activity, MoreHorizontal, Clock, Folder, History } from "lucide-react";
interface HeaderProps {
onOpenSettings?: () => void;
onOpenGitHubImport?: () => void;
onOpenPlanning?: () => void;
onOpenUsage?: () => void;
onOpenActivityLog?: () => void;
onOpenSchedules?: () => void;
onToggleTerminal?: () => void;
onToggleFiles?: () => void;
@@ -224,6 +225,13 @@ export function Header({
</button>
)}
{/* Activity Log button */}
{onOpenActivityLog && (
<button className="btn-icon" onClick={onOpenActivityLog} title="View Activity Log">
<History size={16} />
</button>
)}
{/* Desktop actions */}
{!isMobile && (
<button className="btn-icon" onClick={onOpenGitHubImport} title="Import from GitHub">