feat(customers): add dashboard and customer management
This commit is contained in:
parent
694b7bd09a
commit
92cb8d1286
28 changed files with 2521 additions and 13 deletions
24
backend/hermes/app/schemas/dashboard.py
Normal file
24
backend/hermes/app/schemas/dashboard.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
from pydantic import BaseModel
|
||||
|
||||
from app.schemas.customer import CustomerResponse
|
||||
|
||||
|
||||
class MetricCard(BaseModel):
|
||||
label: str
|
||||
value: int
|
||||
|
||||
|
||||
class EmptyWidget(BaseModel):
|
||||
title: str
|
||||
message: str
|
||||
|
||||
|
||||
class DashboardSummary(BaseModel):
|
||||
customers: list[MetricCard] = []
|
||||
latest_customers: list[CustomerResponse] = []
|
||||
users: list[MetricCard] = []
|
||||
roles: list[MetricCard] = []
|
||||
activities: EmptyWidget
|
||||
tasks: EmptyWidget
|
||||
tickets: EmptyWidget
|
||||
projects: EmptyWidget
|
||||
Loading…
Add table
Add a link
Reference in a new issue