feat(ui): IA redesign → production · /home pending-approvals card + Claude Design gate (2/17)
All checks were successful
G12 Leak-Guard / leak-guard (pull_request) Successful in 7s
All checks were successful
G12 Leak-Guard / leak-guard (pull_request) Successful in 7s
- /home: כרטיס "מה ממתין להכרעתך" ב-aside (מצביע INV-IA1 ל-/approvals; usePendingApprovals, ללא מונה-מתחרה) — תואם מוקאפ 04-home המאושר. - web-ui/AGENTS.md: §"שער-עיצוב חובה — Claude Design קודם" — כל יצירת/שינוי עמוד-UI עוברת קודם דרך פרויקט Claude Design "עוזר משפטי — IA Redesign (X17)" (7a85b323-d880-4b6d-bac5-d4aa396fe93c) לאישור, ורק אז מוטמע (הנחיית חיים). בדיקה: npx tsc --noEmit ✓. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -6,6 +6,26 @@ This version has breaking changes — APIs, conventions, and file structure may
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## ⚠️ שער-עיצוב חובה — Claude Design קודם (הנחיית חיים, 2026-06-11)
|
||||||
|
|
||||||
|
**כל יצירת עמוד/דף חדש, וכל שינוי-UI בעמוד/דף קיים — מכל סיבה — חייב לעבור קודם דרך Claude Design לאישור, ורק לאחר אישור מטמיעים בקוד.** אין לשנות/ליצור עמוד-UI ישירות בלי מעבר דרך השער.
|
||||||
|
|
||||||
|
**הפרויקט הקנוני (כל הדפים נמצאים שם):**
|
||||||
|
- שם: **`עוזר משפטי — IA Redesign (X17)`** ב-[claude.ai/design](https://claude.ai/design).
|
||||||
|
- מזהה-פרויקט: `7a85b323-d880-4b6d-bac5-d4aa396fe93c`.
|
||||||
|
- גישה: כלי `DesignSync` (claude.ai/design). מכיל את כל 17 הדפים כ-preview-cards תחת קבוצה `IA Redesign (X17)`, בנויים מטוקני-העיצוב האמיתיים (`globals.css`: navy `#0f172a`, gold `#a97d3a`, cream `#f5f1e8`, parchment, rule…), Heebo, RTL.
|
||||||
|
|
||||||
|
**הפרוטוקול לכל בקשת-עמוד/שינוי-UI:**
|
||||||
|
1. **בקשת-עיצוב ל-Claude Design** — לבנות/לעדכן את ה-preview של העמוד בפרויקט הזה (HTML self-contained, `<!-- @dsCard group="IA Redesign (X17)" -->` כשורה ראשונה, טוקנים+Heebo+RTL זהים), `write_files` + `register_assets` דרך `DesignSync`.
|
||||||
|
2. **להציג לחיים לאישור** — ולהמתין לאישור מפורש.
|
||||||
|
3. **רק אחרי אישור** — להטמיע בקוד (Next 16 + Tailwind v4 + shadcn), לשמר hooks/לוגיקה, tsc/lint, worktree + PR.
|
||||||
|
|
||||||
|
חריג יחיד: תיקון-באג שאינו משנה את ה-UI הוויזואלי (לוגיקה/נתון/hook בלבד) — לא דורש מעבר דרך השער. בכל ספק — דרך השער.
|
||||||
|
|
||||||
|
> רקע: יוזמת ה-IA (X17, #127/#130–132) → מוקאפי-Claude-Design ל-17 הדפים (מאושרים) → תרגום לפרודקשן. ראה memory `feedback_claude_design_gate` ו-`project_ia_redesign_waves`.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## Stack
|
## Stack
|
||||||
|
|
||||||
| Layer | Technology | Version |
|
| Layer | Technology | Version |
|
||||||
|
|||||||
@@ -10,9 +10,13 @@ import { CasesTable } from "@/components/cases/cases-table";
|
|||||||
import { Card, CardContent } from "@/components/ui/card";
|
import { Card, CardContent } from "@/components/ui/card";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { useCases, type Case } from "@/lib/api/cases";
|
import { useCases, type Case } from "@/lib/api/cases";
|
||||||
|
import { usePendingApprovals } from "@/lib/api/chair";
|
||||||
|
|
||||||
export default function HomePage() {
|
export default function HomePage() {
|
||||||
const { data, isPending, error } = useCases(true);
|
const { data, isPending, error } = useCases(true);
|
||||||
|
// INV-IA1 pointer: surface the single approvals aggregate on the dashboard,
|
||||||
|
// deep-linking to /approvals (the owner) — never a competing client counter.
|
||||||
|
const { data: approvals } = usePendingApprovals();
|
||||||
|
|
||||||
const { permits, levies } = useMemo(() => {
|
const { permits, levies } = useMemo(() => {
|
||||||
const permits: Case[] = [];
|
const permits: Case[] = [];
|
||||||
@@ -99,6 +103,39 @@ export default function HomePage() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<aside className="space-y-6 lg:sticky lg:top-6 lg:self-start">
|
<aside className="space-y-6 lg:sticky lg:top-6 lg:self-start">
|
||||||
|
{approvals && approvals.total_pending > 0 ? (
|
||||||
|
<Card className="bg-gold-wash border-gold/40 shadow-sm">
|
||||||
|
<CardContent className="px-6 py-5">
|
||||||
|
<div className="flex items-center justify-between gap-3 mb-3">
|
||||||
|
<h2 className="text-navy text-lg mb-0">מה ממתין להכרעתך</h2>
|
||||||
|
<span className="text-2xl font-semibold text-gold-deep leading-none tabular-nums">
|
||||||
|
{approvals.total_pending}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<ul className="space-y-1.5 mb-4">
|
||||||
|
{approvals.categories
|
||||||
|
.filter((c) => c.count > 0)
|
||||||
|
.map((c) => (
|
||||||
|
<li
|
||||||
|
key={c.key}
|
||||||
|
className="flex items-center justify-between gap-2 text-[0.85rem] text-ink-soft"
|
||||||
|
>
|
||||||
|
<span>{c.label}</span>
|
||||||
|
<span className="text-navy font-semibold tabular-nums">{c.count}</span>
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
<Button
|
||||||
|
asChild
|
||||||
|
size="sm"
|
||||||
|
className="bg-gold text-white hover:bg-gold-deep border-transparent w-full"
|
||||||
|
>
|
||||||
|
<Link href="/approvals">למרכז האישורים ←</Link>
|
||||||
|
</Button>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
) : null}
|
||||||
|
|
||||||
<Card className="bg-surface border-rule shadow-sm">
|
<Card className="bg-surface border-rule shadow-sm">
|
||||||
<CardContent className="px-6 py-5">
|
<CardContent className="px-6 py-5">
|
||||||
<h2 className="text-navy text-lg mb-4">פיזור סטטוסים</h2>
|
<h2 className="text-navy text-lg mb-4">פיזור סטטוסים</h2>
|
||||||
|
|||||||
Reference in New Issue
Block a user