extract to a new store: dashboardStore
This commit is contained in:
30
src/store-type.ts
Normal file
30
src/store-type.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import { Feature } from '@/modules/feature/feature'
|
||||
import { FeatureStep } from '@/modules/feature/feature-steps'
|
||||
import { Strategy } from '@/modules/lean/strategy'
|
||||
|
||||
export type Meta = {
|
||||
totalDays: number
|
||||
daysWithProblemSolving: number
|
||||
strategy: Record<Strategy, number>
|
||||
}
|
||||
|
||||
export type Analysis = {
|
||||
worstFeature: Feature
|
||||
meanQualityIssue: number
|
||||
meanComplexity: number
|
||||
meanLeadTime: number
|
||||
mainStrategy: Strategy | string
|
||||
}
|
||||
|
||||
export type Dashboard = {
|
||||
uuid: string
|
||||
meta: Meta
|
||||
analysis: Analysis
|
||||
}
|
||||
|
||||
export type FeatureState = {
|
||||
steps: FeatureStep[]
|
||||
features: Feature[]
|
||||
backlog: Feature[]
|
||||
meta: Meta
|
||||
}
|
||||
Reference in New Issue
Block a user