Add Skills browser, Cron jobs, SOUL.md editor
- Skills: categorized list with search, detail view with markdown - Cron: job list grouped by status, manual trigger button - Soul: full SOUL.md editor with save/revert - Pulse: quick link cards to Skills, Cron, Soul - All routes proxied server-side (no CORS)
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { Puzzle, Timer, Sparkles } from "lucide-react";
|
||||
import { StatusCard } from "@/components/StatusCard";
|
||||
import { SessionCard } from "@/components/SessionCard";
|
||||
import { MemorySnapshotCard } from "@/components/MemorySnapshotCard";
|
||||
import { useSessions } from "@/lib/hooks";
|
||||
|
||||
const QUICK_LINKS = [
|
||||
{ href: "/skills", label: "Skills", icon: Puzzle, color: "#a78bfa" },
|
||||
{ href: "/cron", label: "Cron", icon: Timer, color: "#f59e0b" },
|
||||
{ href: "/soul", label: "Soul", icon: Sparkles, color: "#ec4899" },
|
||||
] as const;
|
||||
|
||||
export default function PulsePage() {
|
||||
const { data: sessionsData, isLoading } = useSessions(8);
|
||||
|
||||
@@ -17,6 +25,18 @@ export default function PulsePage() {
|
||||
<StatusCard />
|
||||
<MemorySnapshotCard />
|
||||
|
||||
{/* Quick links */}
|
||||
<div className="grid grid-cols-3 gap-2">
|
||||
{QUICK_LINKS.map(({ href, label, icon: Icon, color }) => (
|
||||
<Link key={href} href={href}>
|
||||
<div className="glass glass-hover p-3 flex flex-col items-center gap-1.5 transition-all">
|
||||
<Icon size={18} style={{ color }} />
|
||||
<span className="text-[11px] font-medium" style={{ color }}>{label}</span>
|
||||
</div>
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h2 className="text-sm font-medium text-zinc-400 mb-2">
|
||||
Recent Sessions
|
||||
|
||||
Reference in New Issue
Block a user