-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(fetchStats, fetchCommitStats): add api call to get stats!
`stats` is now a field on `CommitDetails` interface. `COMMITSTATS_SUCC` saves stats to the `commitDetails` reducer `STATS_SUCC` saves stats to the `workingDataset` reducer - `stats` get passed into the `Body` component by the `BodyContainer`
- Loading branch information
Showing
10 changed files
with
160 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
|
||
export enum DetailsType { | ||
NoDetails, | ||
StatDetails | ||
StatsDetails | ||
} | ||
|
||
interface StatDetails { | ||
type: DetailsType.StatDetails | ||
export interface StatsDetails { | ||
type: DetailsType.StatsDetails | ||
// eventually replace with a Stats interface | ||
index: number | ||
details: Details | ||
title: string | ||
stats: {[key: string]: any} | ||
} | ||
|
||
interface NoDetails { | ||
export interface NoDetails { | ||
type: DetailsType.NoDetails | ||
} | ||
|
||
export type Details = StatDetails | NoDetails | ||
export type Details = StatsDetails | NoDetails |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters