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:
@@ -55,16 +55,16 @@ function ErrorCard({ error }: { error: ErrorState }) {
|
||||
const Icon = iconMap[error.type]
|
||||
|
||||
return (
|
||||
<div className="flex min-h-screen items-center justify-center bg-background px-4">
|
||||
<div className="bg-card border border-border w-full max-w-md rounded-xl p-8 text-center">
|
||||
<div className="flex min-h-screen items-center justify-center bg-[#0c0d10] px-4">
|
||||
<div className="bg-[#14161d] border border-[#1e2130] w-full max-w-md rounded-xl p-8 text-center">
|
||||
<div className="mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-accent">
|
||||
<Icon className="h-8 w-8 text-muted-foreground" />
|
||||
<Icon className="h-8 w-8 text-[#848b9b]" />
|
||||
</div>
|
||||
<h1 className="mb-2 text-xl font-heading font-semibold text-foreground">{titleMap[error.type]}</h1>
|
||||
<p className="mb-6 text-sm text-muted-foreground">{error.message}</p>
|
||||
<h1 className="mb-2 text-xl font-heading font-semibold text-[#e2e5eb]">{titleMap[error.type]}</h1>
|
||||
<p className="mb-6 text-sm text-[#848b9b]">{error.message}</p>
|
||||
<Link
|
||||
to="/"
|
||||
className="inline-block rounded-lg bg-gradient-brand px-6 py-2.5 text-sm font-medium text-white shadow-lg shadow-primary/20 hover:opacity-90"
|
||||
className="inline-block rounded-lg bg-[#22d3ee] px-6 py-2.5 text-sm font-medium text-white hover:brightness-110"
|
||||
>
|
||||
Go to ResolutionFlow
|
||||
</Link>
|
||||
@@ -144,10 +144,10 @@ export function SharedSessionPage() {
|
||||
|
||||
if (loading) {
|
||||
return (
|
||||
<div className="flex min-h-screen items-center justify-center bg-background">
|
||||
<div className="flex min-h-screen items-center justify-center bg-[#0c0d10]">
|
||||
<div className="flex flex-col items-center gap-4">
|
||||
<Spinner />
|
||||
<p className="text-sm text-muted-foreground">Loading shared session...</p>
|
||||
<p className="text-sm text-[#848b9b]">Loading shared session...</p>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
@@ -162,21 +162,21 @@ export function SharedSessionPage() {
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-background">
|
||||
<div className="min-h-screen bg-[#0c0d10]">
|
||||
<PageMeta
|
||||
title={data ? `Shared Session - ${data.tree_name}` : 'Shared Session'}
|
||||
description="View a shared troubleshooting session on ResolutionFlow"
|
||||
/>
|
||||
{/* Minimal header */}
|
||||
<header className="border-b border-border px-6 py-4">
|
||||
<header className="border-b border-[#1e2130] px-6 py-4">
|
||||
<div className="mx-auto flex max-w-7xl items-center justify-between">
|
||||
<Link to="/" className="flex items-center gap-2">
|
||||
<BrandLogo size="sm" />
|
||||
<span className="text-lg font-heading font-semibold text-foreground">ResolutionFlow</span>
|
||||
<span className="text-lg font-heading font-semibold text-[#e2e5eb]">ResolutionFlow</span>
|
||||
</Link>
|
||||
<Link
|
||||
to="/login"
|
||||
className="rounded-lg border border-border px-4 py-2 text-sm text-muted-foreground hover:bg-accent hover:text-foreground"
|
||||
className="rounded-lg border border-[#1e2130] px-4 py-2 text-sm text-[#848b9b] hover:bg-accent hover:text-[#e2e5eb]"
|
||||
>
|
||||
Sign In
|
||||
</Link>
|
||||
@@ -188,14 +188,14 @@ export function SharedSessionPage() {
|
||||
{/* Metadata section */}
|
||||
<div className="mb-8">
|
||||
{data.share_name && (
|
||||
<h1 className="mb-2 text-2xl font-heading font-bold text-foreground">{data.share_name}</h1>
|
||||
<h1 className="mb-2 text-2xl font-heading font-bold text-[#e2e5eb]">{data.share_name}</h1>
|
||||
)}
|
||||
<p className="text-lg text-muted-foreground">
|
||||
<span className="text-muted-foreground">Tree:</span> {data.tree_name}
|
||||
<p className="text-lg text-[#848b9b]">
|
||||
<span className="text-[#848b9b]">Tree:</span> {data.tree_name}
|
||||
</p>
|
||||
|
||||
{(data.ticket_number || data.client_name) && (
|
||||
<p className="mt-1 text-sm text-muted-foreground">
|
||||
<p className="mt-1 text-sm text-[#848b9b]">
|
||||
{data.ticket_number && (
|
||||
<span>Ticket: #{data.ticket_number}</span>
|
||||
)}
|
||||
@@ -208,7 +208,7 @@ export function SharedSessionPage() {
|
||||
</p>
|
||||
)}
|
||||
|
||||
<div className="mt-2 flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-muted-foreground">
|
||||
<div className="mt-2 flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-[#848b9b]">
|
||||
<span>Started: {formatDate(data.started_at)}</span>
|
||||
{data.completed_at && (
|
||||
<>
|
||||
@@ -256,9 +256,9 @@ export function SharedSessionPage() {
|
||||
</main>
|
||||
|
||||
{/* Footer */}
|
||||
<footer className="py-8 text-center text-sm text-muted-foreground">
|
||||
<footer className="py-8 text-center text-sm text-[#848b9b]">
|
||||
Powered by{' '}
|
||||
<Link to="/" className="underline hover:text-foreground">
|
||||
<Link to="/" className="underline hover:text-[#e2e5eb]">
|
||||
ResolutionFlow
|
||||
</Link>
|
||||
</footer>
|
||||
|
||||
Reference in New Issue
Block a user