@handong66/evidoc-dashboard 0.1.0

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.
@@ -0,0 +1,70 @@
1
+ import type { DriftReport, MultiRepositoryReport } from "@handong66/evidoc-core";
2
+ export interface DashboardSnapshot {
3
+ generatedAt: string;
4
+ summary: DriftReport["summary"];
5
+ findings: DriftReport["findings"];
6
+ }
7
+ export type RepositoryHealth = "ok" | "review_needed" | "broken";
8
+ export interface LocalAppHistoryPoint {
9
+ scannedAt: string;
10
+ findings: number;
11
+ broken: number;
12
+ reviewNeeded: number;
13
+ }
14
+ export interface LocalAppRepositoryState {
15
+ root: string;
16
+ name: string;
17
+ health: RepositoryHealth;
18
+ ci: {
19
+ enabled: boolean;
20
+ workflowPath?: string;
21
+ warnings?: string[];
22
+ };
23
+ localGit?: {
24
+ isRepository: boolean;
25
+ ready: boolean;
26
+ branch?: string;
27
+ hooksPath?: string;
28
+ preCommitHook: boolean;
29
+ prePushHook: boolean;
30
+ hasCommits: boolean;
31
+ baseline?: string;
32
+ stagedChangedFiles?: string[];
33
+ unstagedChangedFiles?: string[];
34
+ affectedDocuments?: string[];
35
+ lastGate?: {
36
+ event?: string;
37
+ scope?: string;
38
+ since?: string;
39
+ baselineCommit?: string;
40
+ status?: string;
41
+ fingerprint?: string;
42
+ generatedAt?: string;
43
+ scannedAt?: string;
44
+ stale?: boolean;
45
+ staleReason?: string;
46
+ findings: number;
47
+ broken: number;
48
+ reviewNeeded: number;
49
+ };
50
+ issues?: string[];
51
+ };
52
+ history: LocalAppHistoryPoint[];
53
+ report: DriftReport;
54
+ }
55
+ export interface LocalAppDashboardState {
56
+ generatedAt: string;
57
+ summary: {
58
+ repositoriesScanned: number;
59
+ brokenRepositories: number;
60
+ reviewNeededRepositories: number;
61
+ findings: number;
62
+ broken: number;
63
+ reviewNeeded: number;
64
+ };
65
+ repositories: LocalAppRepositoryState[];
66
+ }
67
+ export declare function createDashboardSnapshot(report: DriftReport): DashboardSnapshot;
68
+ export declare function renderDashboardHtml(report: DriftReport): string;
69
+ export declare function renderMultiRepositoryDashboardHtml(report: MultiRepositoryReport): string;
70
+ export declare function renderLocalAppHtml(state: LocalAppDashboardState): string;