fix(ui): nav & layout — decision-editor in band, compose back-link, wider cases table
Chair-directed navigation/layout fixes (existing components, no new design): 1. "פתח עורך החלטה" moved into the case-page band actions (right after "העלאת מסמכים") so it's reachable from EVERY tab, not only סקירה. Removed the now- redundant full-width CTA from the overview tab. 2. Prominent "→ חזרה לדף התיק" back-link added to the /compose header (the breadcrumb link was too subtle). 3. Home cases table: rail trimmed 360→280px and the title cell made min-w-0 so the table gets the width it needs and no longer shows a horizontal scrollbar. No backend / API change. The larger NEW citation-verification panel stays gated behind Claude Design (preview 24-citation-verification already pushed). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -236,6 +236,12 @@ export default function ComposePage({
|
||||
<span aria-hidden>·</span>
|
||||
<span className="text-navy">עורך החלטה</span>
|
||||
</nav>
|
||||
<Link
|
||||
href={`/cases/${caseNumber}`}
|
||||
className="inline-flex items-center gap-1.5 mb-3 rounded-md border border-rule bg-surface px-3 py-1.5 text-[0.82rem] font-semibold text-gold-deep hover:bg-gold-wash hover:text-navy transition-colors"
|
||||
>
|
||||
<span aria-hidden>→</span> חזרה לדף התיק
|
||||
</Link>
|
||||
<div className="flex items-center gap-3 flex-wrap">
|
||||
<h1 className="text-navy text-2xl font-bold mb-0">ערר {caseNumber}</h1>
|
||||
<StatusChip status={caseQuery.data?.status} />
|
||||
|
||||
@@ -91,6 +91,9 @@ export default function CaseDetailPage({
|
||||
<>
|
||||
{data && <CaseEditDialog data={data} />}
|
||||
<UploadSheet caseNumber={caseNumber} />
|
||||
<Button asChild className="bg-gold text-white hover:bg-gold-deep border-transparent">
|
||||
<Link href={`/cases/${caseNumber}/compose`}>פתח עורך החלטה</Link>
|
||||
</Button>
|
||||
{canStartWorkflow && (
|
||||
<Button
|
||||
className="bg-gold-deep hover:bg-gold-deep/90 text-parchment"
|
||||
@@ -135,16 +138,7 @@ export default function CaseDetailPage({
|
||||
<DocumentsPanel data={data} />
|
||||
|
||||
<AgentActivityPreview caseNumber={caseNumber} />
|
||||
|
||||
{/* gold CTA — open the decision editor */}
|
||||
<Button
|
||||
asChild
|
||||
className="w-full bg-gold text-white hover:bg-gold-deep border-transparent py-6 text-base font-semibold"
|
||||
>
|
||||
<Link href={`/cases/${caseNumber}/compose`}>
|
||||
פתח עורך החלטה →
|
||||
</Link>
|
||||
</Button>
|
||||
{/* decision-editor CTA moved to the band actions (visible on all tabs) */}
|
||||
</TabsContent>
|
||||
|
||||
<TabsContent value="arguments" className="mt-0">
|
||||
|
||||
@@ -69,8 +69,10 @@ export default function HomePage() {
|
||||
{/* KPI row — mockup 04 .kpis (4-up, gold-washed "ממתינים לאישור") */}
|
||||
<KPICards cases={data} loading={isPending} />
|
||||
|
||||
{/* two-column body — main flow + narrow gold gate rail (mockup 04 .cols) */}
|
||||
<div className="grid gap-6 lg:grid-cols-[1fr_360px]">
|
||||
{/* two-column body — main flow + narrow gold gate rail (mockup 04 .cols).
|
||||
Rail trimmed 360→280 so the cases table gets the width it needs and
|
||||
no longer needs a horizontal scrollbar (chair request). */}
|
||||
<div className="grid gap-6 lg:grid-cols-[1fr_280px]">
|
||||
<div className="space-y-6 min-w-0">
|
||||
{/* "תיקים לפי סטטוס" (פסים אופקיים) הוסר — פיזור-הסטטוסים מוצג
|
||||
בדונאט "פיזור סטטוסים" בטור-הצד (#1). */}
|
||||
|
||||
@@ -120,7 +120,7 @@ const columns: ColumnDef<Case>[] = [
|
||||
accessorKey: "title",
|
||||
header: "כותרת",
|
||||
cell: ({ row }) => (
|
||||
<div className="text-ink max-w-[420px] truncate flex items-center gap-2" title={row.original.title}>
|
||||
<div className="text-ink max-w-[420px] min-w-0 truncate flex items-center gap-2" title={row.original.title}>
|
||||
{(row.original.proceeding_type === 'בל"מ' || isBlamSubtype(row.original.appeal_subtype)) && (
|
||||
<Badge
|
||||
variant="outline"
|
||||
|
||||
Reference in New Issue
Block a user