Skip to content

Commit

Permalink
refactor: move progress log to the summary dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-107 committed Jan 2, 2025
1 parent 28c9cdc commit fb27c2d
Show file tree
Hide file tree
Showing 15 changed files with 124 additions and 66 deletions.
15 changes: 2 additions & 13 deletions dist/git-reader/git-repository.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/git-reader/git-repository.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export declare function log(arg1: string, arg2: object): void;
export declare function debug(arg1: string, arg2: object): void;
export declare function time(timerName: string): void;
export declare function timeLog(timerName: string): void;
40 changes: 26 additions & 14 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dist/interfaces.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ export interface ExpandedCommit {
commit: Commit;
changedFiles: ChangedFile[];
}
export interface Dashboard {
displayDashboard(): string;
}
3 changes: 2 additions & 1 deletion dist/stats/aggregate/aggregate.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { ChangedFile, ExpandedCommit } from "../../interfaces.js";
export type AggregateStrategy = "year-month" | "year-quarter";
export type FilePath = string;
type AggregateKey = string;
export type AggregateFileData<T> = Record<FilePath, Record<AggregateKey, T>>;
interface AggregateOptions {
strategy: AggregateStrategy;
}
Expand All @@ -12,7 +13,7 @@ export declare abstract class Aggregate<T> {
abstract initializeValue(): T;
abstract incrementValue(currentValue: T, changedFile: ChangedFile, expandedCommit: ExpandedCommit): T;
addCommit(expandedCommit: ExpandedCommit): void;
getData(): Record<FilePath, Record<AggregateKey, T>>;
getData(): AggregateFileData<T>;
listFiles(): FilePath[];
listAggregates(filePath: FilePath): AggregateKey[];
getValue(filePath: FilePath, aggregateKey: AggregateKey): T;
Expand Down
Loading

0 comments on commit fb27c2d

Please sign in to comment.