@ehfuse/taskbox 0.5.209 → 0.5.210
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/charts/CumulativeFlowChart.d.ts +15 -0
- package/dist/charts/LeadTimeDistributionChart.d.ts +15 -0
- package/dist/dialogs/SprintChartsDialog.d.ts +3 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +7 -7
- package/dist/index.esm.js.map +4 -4
- package/dist/index.js +7 -7
- package/dist/index.js.map +4 -4
- package/dist/utils/taskFlowMetrics.d.ts +55 -0
- package/package.json +1 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 흐름 지표(누적흐름도·리드타임/사이클타임) 계산 유틸이다.
|
|
3
|
+
* 업무함에는 상태 전이 스냅샷이 없어(번다운과 같은 전제) 작성/시작/완료 일시로 역산한다 —
|
|
4
|
+
* 대기=작성됐지만 시작일 전, 진행=시작일이 지났고 미완료, 완료=완료일시 기준이다.
|
|
5
|
+
* 시작일이 비어 있으면 작성 즉시 착수로 본다(그 업무에는 대기 구간이 없다).
|
|
6
|
+
*/
|
|
7
|
+
import type { TaskBoxItem } from "../types";
|
|
8
|
+
/** 누적흐름도 한 날의 상태별 건수다. */
|
|
9
|
+
export interface FlowDayPoint {
|
|
10
|
+
day: string;
|
|
11
|
+
done: number;
|
|
12
|
+
inProgress: number;
|
|
13
|
+
waiting: number;
|
|
14
|
+
}
|
|
15
|
+
/** 누적흐름도 계산 결과다. */
|
|
16
|
+
export interface CumulativeFlowModel {
|
|
17
|
+
points: FlowDayPoint[];
|
|
18
|
+
max: number;
|
|
19
|
+
currentWip: number;
|
|
20
|
+
currentTotal: number;
|
|
21
|
+
currentDone: number;
|
|
22
|
+
}
|
|
23
|
+
/** 리드타임/사이클타임 한 벌의 요약이다. */
|
|
24
|
+
export interface DurationSummary {
|
|
25
|
+
count: number;
|
|
26
|
+
median: number;
|
|
27
|
+
average: number;
|
|
28
|
+
p85: number;
|
|
29
|
+
}
|
|
30
|
+
/** 리드타임/사이클타임 분포 계산 결과다. */
|
|
31
|
+
export interface LeadCycleModel {
|
|
32
|
+
labels: string[];
|
|
33
|
+
leadCounts: number[];
|
|
34
|
+
cycleCounts: number[];
|
|
35
|
+
lead: DurationSummary | null;
|
|
36
|
+
cycle: DurationSummary | null;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* 흐름 지표 대상 업무인지 판정한다 — 완료 워크플로가 없는 공지·일정, 보관 업무,
|
|
40
|
+
* 그리고 연결 칩 해석용으로만 실려 온 행(linked_only)을 뺀다(내 목록에 없는 업무까지 세면 안 된다).
|
|
41
|
+
*/
|
|
42
|
+
export declare function isFlowTask(task: TaskBoxItem): boolean;
|
|
43
|
+
/** "YYYY-MM-DD[ HH:mm]" 을 ms 로 바꾼다(형식이 아니면 null — 시각이 없으면 그 날 0시). */
|
|
44
|
+
export declare function parseTaskTimeMs(value: string | undefined): number | null;
|
|
45
|
+
/**
|
|
46
|
+
* 누적흐름도(CFD)를 계산한다 — 날짜별로 접수된 업무를 완료/진행/대기로 쌓는다.
|
|
47
|
+
* 세로 간격이 진행 중(WIP), 가로 간격이 리드타임을 뜻하는 그 그림이다.
|
|
48
|
+
*/
|
|
49
|
+
export declare function buildCumulativeFlow(tasks: TaskBoxItem[], days: number, todayStr: string): CumulativeFlowModel;
|
|
50
|
+
/**
|
|
51
|
+
* 리드타임/사이클타임 분포를 계산한다 — 최근 N일 안에 **완료된** 업무가 표본이다.
|
|
52
|
+
* 리드타임=작성→완료(고객 체감 시간), 사이클타임=시작→완료(실제 작업 시간)이며,
|
|
53
|
+
* 시작일이 없거나 완료일시보다 뒤인 업무는 사이클타임 표본에서 뺀다(추정으로 채우지 않는다).
|
|
54
|
+
*/
|
|
55
|
+
export declare function buildLeadCycleDistribution(tasks: TaskBoxItem[], days: number, todayStr: string): LeadCycleModel;
|
package/package.json
CHANGED