Skip to content

Commit fb27c2d

Browse files
committed
refactor: move progress log to the summary dashboard
1 parent 28c9cdc commit fb27c2d

15 files changed

+124
-66
lines changed

dist/git-reader/git-repository.js

+2-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/git-reader/git-repository.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export declare function log(arg1: string, arg2: object): void;
2+
export declare function debug(arg1: string, arg2: object): void;
23
export declare function time(timerName: string): void;
34
export declare function timeLog(timerName: string): void;

dist/index.js

+26-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/interfaces.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ export interface ExpandedCommit {
2222
commit: Commit;
2323
changedFiles: ChangedFile[];
2424
}
25+
export interface Dashboard {
26+
displayDashboard(): string;
27+
}

dist/stats/aggregate/aggregate.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { ChangedFile, ExpandedCommit } from "../../interfaces.js";
22
export type AggregateStrategy = "year-month" | "year-quarter";
33
export type FilePath = string;
44
type AggregateKey = string;
5+
export type AggregateFileData<T> = Record<FilePath, Record<AggregateKey, T>>;
56
interface AggregateOptions {
67
strategy: AggregateStrategy;
78
}
@@ -12,7 +13,7 @@ export declare abstract class Aggregate<T> {
1213
abstract initializeValue(): T;
1314
abstract incrementValue(currentValue: T, changedFile: ChangedFile, expandedCommit: ExpandedCommit): T;
1415
addCommit(expandedCommit: ExpandedCommit): void;
15-
getData(): Record<FilePath, Record<AggregateKey, T>>;
16+
getData(): AggregateFileData<T>;
1617
listFiles(): FilePath[];
1718
listAggregates(filePath: FilePath): AggregateKey[];
1819
getValue(filePath: FilePath, aggregateKey: AggregateKey): T;

0 commit comments

Comments
 (0)