Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 6M filter for stats page #1270

Merged
merged 1 commit into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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