Files
legal-ai/.taskmaster/docs/ui-updates-prd.txt
Chaim 2b988fd805 Add UI updates PRD for task master
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 16:54:32 +00:00

31 lines
2.1 KiB
Plaintext

# UI Updates — Legal AI Next.js
## Context
The legal-ai system uses a Next.js 15 UI at web-ui/. The workflow pipeline was significantly updated with new statuses, methodology, and agent improvements. The UI needs to reflect these changes.
## Task 1: Remove old Flask UI from Coolify
The old Flask app runs at legal-ai.nautilus.marcusgroup.org via Docker/Coolify. It should be archived and removed to save resources. The Next.js UI (legal-ai-next.nautilus.marcusgroup.org) becomes the sole UI. After removal, DNS should point legal-ai.nautilus.marcusgroup.org to the Next.js app.
Files: Coolify dashboard, DNS config.
## Task 2: Update WorkflowTimeline component with new statuses
The WorkflowTimeline component in web-ui/src/app/cases/[caseNumber]/page.tsx (line 127) only knows old statuses. It needs to support the full pipeline:
- new → proofread → documents_ready → analyst_verified → research_complete → outcome_set → direction_approved → drafted → qa_passed → exported
- Plus: qa_failed, blocked
Each status needs: Hebrew label, color, icon, description tooltip.
Files: web-ui/src/app/cases/[caseNumber]/page.tsx, possibly a new WorkflowTimeline component file.
## Task 3: Status overview page or component
Create a page or modal that shows all possible statuses with explanations — what each status means, which agent sets it, what happens next. Could be a /statuses page or a help tooltip in the WorkflowTimeline.
## Task 4: Manual status editing in case page
Add a dropdown or modal in the case page that allows manually changing the case status. This is needed for cases where the automated pipeline gets stuck or needs to be reset. Should call case_update API endpoint.
Files: web-ui/src/app/cases/[caseNumber]/page.tsx, web-ui/src/lib/api/.
## Task 5: Merge action buttons into overview card
Currently there's a separate "פעולות" (actions) card with 2 buttons: "פתח בעורך החלטה" and "עריכת פרטי תיק". These should move into the main overview/summary card at the top of the case page. The separate actions card should be removed — it wastes space for just 2 buttons.
Files: web-ui/src/app/cases/[caseNumber]/page.tsx.