Stats Page
tickets to write:
Chart.js for graphing
frontend
Statistics pagenew route (/statistics)stats icon in navbargridview of graphsdate picker (mui)view dropdown (mui select)line graph componentbar chart componentpie chart componentview pagefalls under URL (/statistics/view-id)grid of graph componentsget view hookget all graph hookcreate new graph pagenew graph formlive previewcreate new graph hookgraph details pagegraph componentmetrics/data tableexport graph buttonfalls under URL (/statistics/parent-view-id/graph-id)create new view modal (NER Modal)create new view formcreate new view hookendpoints
models:
Quantifier
Total
Average
Metric:
Type
Car,
Project,
Team,
Change Request,
Budget,
Design Reviews,
User
Quantifier
Graph:
orgId
Timeframe
start date
end date
Title @unqiue with orgId
linkId @unique
graphType
cars: Car[]
teams: Team[]
projects: Project[]
data: Metric
grouping: Metric?
permissions: Permission[] (modify Role model to include permission)
User Created
Deleted
GraphCollection/View:
orgId
Graphs
Timeframe
start date
end date
Title @unique with orgId
linkId
permission: Permission[]
UserCreated
Enum:
graphType:
BAR
LINE
PIE
dataType:
CAR
PROJECT
TEAM
CHANGE REQUEST
BUDGET
DR
USER
values:
SUM
AVERAGE
Models:
Graph
organizationId: String
startDate: DateTime
endDate: DateTime
Title: String
linkId: String
graphType
Cars: Car[]
Teams: Team[]
Projects: Project[]
userCreated: User
userCreatedId: String
dateDeleted: DateTime
Data: GraphData
groupBy: GraphData?
GraphData:
dataType
values
GraphCollection:
organizationId: String
Graphs: Graph[]
Title: String
linkId: String
userCreated: User
userCreatedId: String
dateDeleted: DateTime
permissions: Permission[]
User (additions):
createdGraphCollections: GraphCollection[]
deletedGraphCollections: GraphCollection[]
createdGraphs: Graph[]
deletedGraphs: Graph[]