refactor: migrate page components to Design System v4
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -77,11 +77,11 @@ export default function FlowPilotSessionPage() {
|
||||
if (fp.error && !fp.session) {
|
||||
return (
|
||||
<div className="flex items-center justify-center min-h-[50vh]">
|
||||
<div className="glass-card-static p-6 text-center max-w-md">
|
||||
<div className="card-flat p-6 text-center max-w-md">
|
||||
<p className="text-sm text-rose-400">{fp.error}</p>
|
||||
<button
|
||||
onClick={() => window.location.reload()}
|
||||
className="mt-3 text-xs text-muted-foreground hover:text-foreground transition-colors"
|
||||
className="mt-3 text-xs text-[#848b9b] hover:text-[#e2e5eb] transition-colors"
|
||||
>
|
||||
Try again
|
||||
</button>
|
||||
@@ -94,7 +94,7 @@ export default function FlowPilotSessionPage() {
|
||||
if (fp.isLoading && !fp.session) {
|
||||
return (
|
||||
<div className="flex items-center justify-center min-h-[50vh]">
|
||||
<Loader2 size={24} className="animate-spin text-muted-foreground" />
|
||||
<Loader2 size={24} className="animate-spin text-[#848b9b]" />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -134,11 +134,11 @@ export default function FlowPilotSessionPage() {
|
||||
<Sparkles size={14} className="text-amber-400" />
|
||||
</span>
|
||||
<div className="flex-1 min-w-0">
|
||||
<h1 className="font-heading text-sm font-semibold text-foreground truncate">
|
||||
<h1 className="font-heading text-sm font-semibold text-[#e2e5eb] truncate">
|
||||
Escalation Pickup — {fp.session.problem_summary || 'FlowPilot Session'}
|
||||
</h1>
|
||||
</div>
|
||||
<span className="font-label rounded-md bg-amber-500/10 px-2 py-0.5 text-[0.625rem] uppercase tracking-wider text-amber-400 border border-amber-500/20">
|
||||
<span className="font-sans text-xs rounded-md bg-amber-500/10 px-2 py-0.5 text-[0.625rem] uppercase tracking-wider text-amber-400 border border-amber-500/20">
|
||||
Awaiting pickup
|
||||
</span>
|
||||
</div>
|
||||
@@ -163,21 +163,21 @@ export default function FlowPilotSessionPage() {
|
||||
<div className="flex h-full flex-col">
|
||||
{/* Navigation guard modal */}
|
||||
{blocker.state === 'blocked' && (
|
||||
<div className="fixed inset-0 z-50 flex items-center justify-center bg-black/80 backdrop-blur-xs">
|
||||
<div className="bg-card border border-border rounded-xl w-full max-w-md p-6 shadow-lg">
|
||||
<div className="fixed inset-0 z-50 flex items-center justify-center bg-black/80">
|
||||
<div className="bg-[#14161d] border border-[#1e2130] rounded-xl w-full max-w-md p-6 shadow-lg">
|
||||
<div className="flex items-center gap-3 mb-3">
|
||||
<span className="flex h-9 w-9 items-center justify-center rounded-lg bg-amber-500/10">
|
||||
<AlertTriangle size={18} className="text-amber-400" />
|
||||
</span>
|
||||
<h2 className="text-lg font-heading font-semibold text-foreground">Active Session</h2>
|
||||
<h2 className="text-lg font-heading font-semibold text-[#e2e5eb]">Active Session</h2>
|
||||
</div>
|
||||
<p className="mb-4 text-sm text-muted-foreground">
|
||||
<p className="mb-4 text-sm text-[#848b9b]">
|
||||
You have an active troubleshooting session. If you leave, your session will be paused and you can resume it later.
|
||||
</p>
|
||||
<div className="flex gap-2">
|
||||
<button
|
||||
onClick={() => blocker.reset()}
|
||||
className="flex-1 rounded-[10px] bg-gradient-to-r from-cyan-500 to-cyan-400 px-4 py-2.5 text-sm font-semibold text-[#101114] hover:opacity-90 active:scale-[0.97] transition-all"
|
||||
className="flex-1 rounded-lg bg-gradient-to-r from-cyan-500 to-cyan-400 px-4 py-2.5 text-sm font-semibold text-white hover:brightness-110 active:scale-[0.98] transition-all"
|
||||
>
|
||||
Stay in Session
|
||||
</button>
|
||||
@@ -186,7 +186,7 @@ export default function FlowPilotSessionPage() {
|
||||
fp.pauseSession()
|
||||
blocker.proceed()
|
||||
}}
|
||||
className="flex-1 rounded-[10px] bg-[rgba(255,255,255,0.04)] border border-[rgba(255,255,255,0.06)] px-4 py-2.5 text-sm font-medium text-foreground hover:border-[rgba(255,255,255,0.12)] transition-all"
|
||||
className="flex-1 rounded-lg bg-[rgba(255,255,255,0.04)] border border-[rgba(255,255,255,0.06)] px-4 py-2.5 text-sm font-medium text-[#e2e5eb] hover:border-[rgba(255,255,255,0.12)] transition-all"
|
||||
>
|
||||
Pause & Leave
|
||||
</button>
|
||||
@@ -200,15 +200,15 @@ export default function FlowPilotSessionPage() {
|
||||
className="flex items-center gap-3 border-b px-5 py-3 shrink-0"
|
||||
style={{ borderColor: 'var(--glass-border)' }}
|
||||
>
|
||||
<span className="flex h-7 w-7 items-center justify-center rounded-lg bg-primary/10">
|
||||
<Sparkles size={14} className="text-primary" />
|
||||
<span className="flex h-7 w-7 items-center justify-center rounded-lg bg-[rgba(34,211,238,0.10)]">
|
||||
<Sparkles size={14} className="text-[#22d3ee]" />
|
||||
</span>
|
||||
<div className="flex-1 min-w-0">
|
||||
<h1 className="font-heading text-sm font-semibold text-foreground truncate">
|
||||
<h1 className="font-heading text-sm font-semibold text-[#e2e5eb] truncate">
|
||||
{fp.session.problem_summary || 'FlowPilot Session'}
|
||||
</h1>
|
||||
</div>
|
||||
<span className="font-label rounded-md bg-card px-2 py-0.5 text-[0.625rem] uppercase tracking-wider text-muted-foreground border border-border">
|
||||
<span className="font-sans text-xs rounded-md bg-[#14161d] px-2 py-0.5 text-[0.625rem] uppercase tracking-wider text-[#848b9b] border border-[#1e2130]">
|
||||
{fp.session.status}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user