Skip to content

Commit

Permalink
Add 6M filter for stats page (#1270)
Browse files Browse the repository at this point in the history
Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com>
  • Loading branch information
stefashkaa and stefashkaa authored Jan 12, 2024
1 parent 411cdd8 commit df83289
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/consts/snapshots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ const QUARTER_IN_DAYS_FILTER = {
count: 90,
};

const HALF_YEAR_IN_DAYS_FILTER = {
name: Timeframes.HALF_YEAR,
label: '6M',
type: SnapshotTypes.DAY,
count: 180,
};

const YEAR_IN_MONTHS_FILTER = {
name: Timeframes.YEAR,
label: '1Y',
Expand All @@ -73,13 +80,15 @@ export const NETWORK_STATS_FILTERS: SnapshotFilter[] = [
WEEK_IN_HOURS_FILTER,
MONTH_IN_DAYS_FILTER,
QUARTER_IN_DAYS_FILTER,
HALF_YEAR_IN_DAYS_FILTER,
YEAR_IN_MONTHS_FILTER,
];

export const ASSET_SUPPLY_LINE_FILTERS = [
export const ASSET_SUPPLY_LINE_FILTERS: SnapshotFilter[] = [
DAY_IN_HOURS_FILTER,
WEEK_IN_HOURS_FILTER,
MONTH_IN_DAYS_FILTER,
QUARTER_IN_DAYS_FILTER,
HALF_YEAR_IN_DAYS_FILTER,
YEAR_IN_DAYS_FILTER,
];
1 change: 1 addition & 0 deletions src/types/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export enum Timeframes {
WEEK = 'WEEK',
MONTH = 'MONTH',
QUARTER = 'QUARTER',
HALF_YEAR = 'HALF_YEAR',
YEAR = 'YEAR',
ALL = 'ALL',
}
Expand Down

0 comments on commit df83289

Please sign in to comment.