cosmic-lawyer

byMaulik Patel

Create a modern web application for a Law Firm Case Management System. The platform should be used internally by the law firm team to manage legal cases, clients, and case progress. The system must have two roles: 1. Admin (Law firm owner / senior lawyer) 2. Users (Lawyers, associates, and staff) The system should include the following modules: CLIENT MANAGEMENT - Add new clients - Store client details (Name, Phone, Email, Address) - Client ID generation - Client notes - View all cases related to a client CASE MANAGEMENT - Create new case - Assign case to lawyer or team member - Case fields: - Case title - Case number - Case type (Civil / Criminal / Corporate / Family etc) - Court name - Opponent party details - Case description - Case start date - Next hearing date - Case status (Ongoing / Pending / Completed / Closed) - Priority level CASE TIMELINE - Show timeline of events for each case - Hearing history - Notes from each hearing - Upcoming hearing reminders DOCUMENT & EVIDENCE MANAGEMENT - Upload case documents - Upload evidence files (PDF, images, videos) - Categorize documents - Attach documents to cases - Download and preview files TASK MANAGEMENT - Create tasks related to a case - Assign tasks to lawyers or staff - Task deadlines - Task status tracking CALENDAR & HEARING SCHEDULE - Calendar showing all upcoming hearing dates - Alerts for upcoming hearings - Daily and weekly schedule view DASHBOARD Admin dashboard showing: - Total cases - Active cases - Completed cases - Upcoming hearings - Recently added clients - Tasks pending SEARCH & FILTER - Search by client name - Search by case number - Filter cases by status or lawyer USER MANAGEMENT Admin can: - Add new team members - Assign roles - Control access permissions NOTIFICATIONS - Reminder for upcoming hearing dates - Task deadline alerts REPORTS - Cases by status - Cases by lawyer - Monthly case activity DESIGN REQUIREMENTS - Modern and clean UI - Mobile responsive - Simple navigation - Secure login system TECH REQUIREMENTS - Secure authentication - Role-based access control - File storage for documents and evidence

LoginClientsUsersTasksCalendarTimelineCasesDashboardReportsDocuments
Login

Comments (0)

No comments yet. Be the first!

Project Tasks22

#1

Implement App Theme & Structure

To Do

As a user I want to see a consistent cosmic-lawyer theme and structure across all pages. Implement the global design system: Deep Blue (#003366) primary, Gold (#FFD700) accent, White (#FFFFFF) secondary, Roboto + Merriweather typography. Set up global CSS variables, layout shell (TopBar, Sidebar, Footer), glassmorphism surface tokens, courtroom aesthetic micro-animations, and IST day/night background shift. Remove any scaffold pages not needed (welcome page, AI assistant page, settings page if not in user flow). Ensure all existing scaffold pages are wired to the new theme.

AI 85%
Human 15%
High Priority
2 days
AI Credits:7
Frontend Developer
#2

Build Login Page

To Do

As a user I want to sign in to cosmic-lawyer via a polished login page. Implement the Login page based on the existing JSX design (v2): two-column layout with BrandingPanel (courtroom illustration, gold spotlight, trust badges) and LoginCard (frosted-glass card, email input, password input with show/hide, forgot password link, Sign In CTA with gavel-strike animation, restricted access note). Mobile collapses to single column. Connects to existing authentication backend.

Depends on:#1
Waiting for dependencies
AI 90%
Human 10%
High Priority
1 day
AI Credits:5
Frontend Developer
#3

Build Dashboard Page

To Do

As a user I want to view key firm metrics on a dashboard after login. Implement the Dashboard page (v2): TopBar, Sidebar (Dashboard active), StatsCards (Total Cases, Active Cases, Completed Cases, Upcoming Hearings, Recently Added Clients, Pending Tasks), ActivityChart, RecentItems, QuickActions, Notifications panel, and Footer. Admin sees full metrics; User sees assigned tasks view. Based on existing JSX design.

Depends on:#2#1
Waiting for dependencies
AI 88%
Human 12%
High Priority
2 days
AI Credits:8
Frontend Developer
#8

Build Calendar Page

To Do

As a user I want to view hearing schedules and daily/weekly plans on the Calendar page. Implement Calendar page (v2): full calendar view with monthly/weekly/daily toggle, hearing date markers, upcoming hearing alerts, IST timezone display, and event detail panel on click. Admin and User both access this page from Dashboard. Based on existing JSX design.

Depends on:#1#3
Waiting for dependencies
AI 85%
Human 15%
Medium Priority
2 days
AI Credits:7
Frontend Developer
#11

Build Reports Page

To Do

As an admin I want to generate and view reports on case activity on the Reports page. Implement Reports page (v2): ReportsHeader (Generate Report CTA), ReportFiltersBar (report type, date range, lawyer, status filters), ReportSummaryCards (Total Cases, Active, Completed, Pending), CasesByStatusChart (donut chart), CasesByLawyerChart (horizontal bar chart), MonthlyCaseActivityChart (multi-line area chart with IST year selector), ReportDataTable (sortable, searchable, paginated), ExportActionsBar (Export PDF/CSV/Print with gavel animation). Based on existing JSX design.

Depends on:#3#1
Waiting for dependencies
AI 85%
Human 15%
Medium Priority
2 days
AI Credits:8
Frontend Developer
#7

Build Tasks Page

To Do

As a user I want to create, assign, and track tasks related to cases on the Tasks page. Implement Tasks page (v2): TasksPageHeader (with New Task FAB on mobile), TaskStatsStrip (Total, In Progress, Completed, Overdue), TaskFilterBar (List/Kanban toggle, status/priority/assignee/case/date filters), TaskBoard (List view with rows; Kanban with 4 columns — To Do, In Progress, Completed, Overdue; drag-and-drop cards), TaskDetailDrawer (title, status, priority, assignee, linked case, due date, description, sub-tasks, activity log, attachments). Based on existing JSX design.

Depends on:#3#1
Waiting for dependencies
AI 87%
Human 13%
High Priority
2.5 days
AI Credits:9
Frontend Developer
#10

Build Users Page

To Do

As an admin I want to add team members, assign roles, and manage permissions on the Users page. Implement Users page (v2): PageHeader (Add New Member CTA), StatsStrip (Total Members, Active Lawyers, Associates & Staff, Pending Role Assignments), SearchFilterBar, UsersTable (avatar, name, role badge — gold/Admin, blue/Lawyer, grey/Associate/Staff, email, phone, assigned cases count, status toggle, actions — edit/delete/assign role, pagination, empty state), AddEditUserDrawer (form with name, email, phone, role, permissions checklist, status), RolePermissionsPanel (permissions matrix accordion). Based on existing JSX design.

Depends on:#3#1
Waiting for dependencies
AI 88%
Human 12%
High Priority
2 days
AI Credits:8
Frontend Developer
#5

Build Clients Page

To Do

As a user I want to add and manage client records on the Clients page. Implement Clients page (v2): client list/table with avatar, name, Client ID, phone, email, address, case count link, and actions (Edit, Delete, View Cases). Add/Edit client drawer with all fields and notes section. Client ID auto-generation. View all cases related to a client. Based on existing JSX design.

Depends on:#1#3
Waiting for dependencies
AI 87%
Human 13%
High Priority
2 days
AI Credits:8
Frontend Developer
#4

Build Cases Page

To Do

As a user I want to create, view, assign, and manage legal cases on the Cases page. Implement Cases page (v2): case list/table with columns for Case No., Title, Type, Court, Assigned Lawyer, Status badge, Priority badge, Next Hearing date, and Actions. Includes Create Case drawer/modal with all fields (title, number, type, court name, opponent details, description, dates, status, priority). Admin can assign cases to lawyers. Filtering by status and lawyer. Based on existing JSX design.

Depends on:#3#1
Waiting for dependencies
AI 85%
Human 15%
High Priority
2.5 days
AI Credits:9
Frontend Developer
#15

Implement Tasks Backend API

To Do

As a user I want to use backend APIs to create, assign, update, and track tasks. Implement FastAPI endpoints: POST /tasks, GET /tasks, GET /tasks/{id}, PUT /tasks/{id}, DELETE /tasks/{id}, PATCH /tasks/{id}/status. Fields: title, description, assigned_to, case_id, due_date, priority, status (To Do / In Progress / Completed / Overdue). Role-based: Admin can assign; Users see own tasks.

Depends on:#7
Waiting for dependencies
AI 80%
Human 20%
High Priority
1.5 days
AI Credits:6
Backend Developer
#18

Implement Users Management API

To Do

As an admin I want to use backend APIs to add team members, assign roles, and manage permissions. Implement FastAPI endpoints: GET /users, POST /users, PUT /users/{id}, DELETE /users/{id}, PATCH /users/{id}/role, GET /users/{id}/permissions, PUT /users/{id}/permissions. Roles: Admin, Lawyer, Associate, Staff. Permission matrix per module. Role-based access enforcement.

Depends on:#10
Waiting for dependencies
AI 78%
Human 22%
High Priority
1.5 days
AI Credits:6
Backend Developer
#16

Implement Calendar Backend API

To Do

As a user I want to use backend APIs to retrieve and manage hearing schedules on the calendar. Implement FastAPI endpoints: GET /calendar/hearings (with date range filter), POST /calendar/hearings, PUT /calendar/hearings/{id}, DELETE /calendar/hearings/{id}. IST timezone handling. Integration with Cases next_hearing_date field. Alert/reminder scheduling hooks.

Depends on:#8
Waiting for dependencies
AI 78%
Human 22%
Medium Priority
1.5 days
AI Credits:5
Backend Developer
#12

Implement Cases Backend API

To Do

As a user I want to use backend APIs to create, retrieve, update, and delete cases. Implement FastAPI endpoints: POST /cases, GET /cases, GET /cases/{id}, PUT /cases/{id}, DELETE /cases/{id}, POST /cases/{id}/assign. Include case fields: title, number, type, court name, opponent details, description, start date, next hearing date, status, priority. Role-based access: Admins can assign; Users view assigned only. MySQL storage with Alembic migration.

Depends on:#4
Waiting for dependencies
AI 80%
Human 20%
High Priority
2 days
AI Credits:7
Backend Developer
#19

Implement Reports Backend API

To Do

As an admin I want to use backend APIs to generate reports on case activity. Implement FastAPI endpoints: GET /reports/cases-by-status, GET /reports/cases-by-lawyer, GET /reports/monthly-activity (with year/month params), GET /reports/export?format=pdf|csv. Aggregate queries from cases, tasks, clients. IST-aware date grouping. PDF/CSV export generation.

Depends on:#11
Waiting for dependencies
AI 75%
Human 25%
Medium Priority
2 days
AI Credits:7
Backend Developer
#6

Build Documents Page

To Do

As a user I want to upload, categorize, preview, and attach documents to cases on the Documents page. Implement Documents page (v2): TopNavigationBar, Sidebar (Documents active), PageHeaderBreadcrumb, SearchFilterToolbar (case, category, file type, date range filters), UploadDropzone (drag-and-drop, progress bars, 50MB limit), DocumentStatsBar, DocumentGridListView (grid/list toggle, file-type icons, case tag, preview/download/attach actions), PaginationBar, and Footer. Based on existing JSX design.

Depends on:#4#1
Waiting for dependencies
AI 88%
Human 12%
High Priority
2.5 days
AI Credits:9
Frontend Developer
#9

Build Timeline Page

To Do

As a user I want to view the event history of a case on the Timeline page. Implement Timeline page (v2): chronological timeline of case events, hearing history with notes, upcoming hearing reminders, case detail header, IST-formatted timestamps, and add-note interaction. Accessible from Cases page (Cases → Update Details → View History). Based on existing JSX design.

Depends on:#4#1
Waiting for dependencies
AI 86%
Human 14%
Medium Priority
1.5 days
AI Credits:6
Frontend Developer
#13

Implement Clients Backend API

To Do

As a user I want to use backend APIs to manage client records. Implement FastAPI endpoints: POST /clients, GET /clients, GET /clients/{id}, PUT /clients/{id}, DELETE /clients/{id}, GET /clients/{id}/cases, POST /clients/{id}/notes. Auto-generate unique Client IDs. Store name, phone, email, address, notes. MySQL storage.

Depends on:#5
Waiting for dependencies
AI 80%
Human 20%
High Priority
1.5 days
AI Credits:6
Backend Developer
#17

Implement Timeline Backend API

To Do

As a user I want to use backend APIs to view and record case timeline events. Implement FastAPI endpoints: GET /cases/{id}/timeline, POST /cases/{id}/timeline/events, PUT /cases/{id}/timeline/events/{event_id}, DELETE /cases/{id}/timeline/events/{event_id}. Store event type, description, hearing notes, IST timestamp. Linked to case ID.

Depends on:#9
Waiting for dependencies
AI 78%
Human 22%
Medium Priority
1 day
AI Credits:5
Backend Developer
#14

Implement Documents Backend API

To Do

As a user I want to use backend APIs to upload, retrieve, categorize, and attach documents to cases. Implement FastAPI endpoints: POST /documents/upload (multipart, max 50MB), GET /documents, GET /documents/{id}, PUT /documents/{id}, DELETE /documents/{id}, POST /documents/{id}/attach-case. Support PDF, DOCX, XLSX, images, video. File storage integration (local/S3). Category and case-link fields.

Depends on:#6
Waiting for dependencies
AI 78%
Human 22%
High Priority
2 days
AI Credits:7
Backend Developer
#20

Implement Notifications System

To Do

As a user I want to receive reminders for upcoming hearings and task deadlines via the notifications system. Implement backend notification service: scheduled jobs (APScheduler/Celery) to check upcoming hearing dates and task deadlines (IST), create notification records, deliver in-app alerts via WebSocket or polling endpoint GET /notifications, PATCH /notifications/{id}/read. Frontend notification bell badge updates in real time on TopBar.

Depends on:#15#16
Waiting for dependencies
AI 72%
Human 28%
Medium Priority
2 days
AI Credits:7
Backend Developer
#21

Implement Search & Filter API

To Do

As a user I want to use backend APIs to search clients by name, search cases by number, and filter cases by status or lawyer. Implement FastAPI endpoints: GET /search?q= (global search across clients and cases), GET /cases?status=&lawyer_id= (filtered), GET /clients?name= (filtered). Full-text search with MySQL LIKE or full-text index. Results paginated.

Depends on:#12#13
Waiting for dependencies
AI 78%
Human 22%
Medium Priority
1 day
AI Credits:5
Backend Developer
#22

Integrate Frontend with Backend APIs

To Do

As a user I want all pages to be fully connected to the live backend APIs replacing mock data. Wire all page components (Dashboard, Cases, Clients, Documents, Tasks, Calendar, Timeline, Users, Reports) to their respective FastAPI endpoints using axios/fetch with JWT auth headers. Implement loading states, error boundaries, and empty states throughout. Handle IST timezone display consistently across all date fields.

Depends on:#16#21#18#15#14#19#17#13#12#20
Waiting for dependencies
AI 75%
Human 25%
High Priority
3 days
AI Credits:9
Frontend Developer

No page designs yet.

The Design Agent will generate JSX pages automatically after user flows are created.

Login: Sign In
Dashboard: View Metrics
Cases: Create Case
Cases: Assign Lawyer
Clients: Add Client
Clients: View Cases
Users: Add Member
Users: Assign Role
Reports: Generate Report
Calendar: View Hearings