From a372269a5d2a04c72ad964a7f48012598eebbd48 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Mon, 7 Feb 2022 00:07:43 +0100 Subject: [PATCH] feat(ui) - custom metrics session list timezone and other changes --- .../SessionListModal/SessionListModal.tsx | 33 +++++++++++-------- .../shared/MainSearchBar/MainSearchBar.tsx | 4 +-- .../shared/SavedSearch/SavedSearch.tsx | 2 +- frontend/app/types/filter/newFilter.js | 2 +- 4 files changed, 24 insertions(+), 17 deletions(-) diff --git a/frontend/app/components/shared/CustomMetrics/SessionListModal/SessionListModal.tsx b/frontend/app/components/shared/CustomMetrics/SessionListModal/SessionListModal.tsx index 5a517679a..372c36118 100644 --- a/frontend/app/components/shared/CustomMetrics/SessionListModal/SessionListModal.tsx +++ b/frontend/app/components/shared/CustomMetrics/SessionListModal/SessionListModal.tsx @@ -1,5 +1,5 @@ import React, { useEffect, useState } from 'react'; -import { SlideModal, NoContent, Dropdown, Icon } from 'UI'; +import { SlideModal, NoContent, Dropdown, Icon, TimezoneDropdown } from 'UI'; import SessionItem from 'Shared/SessionItem'; import stl from './SessionListModal.css'; import { connect } from 'react-redux'; @@ -59,18 +59,25 @@ function SessionListModal(props: Props) {
Showing all sessions between {startTime} and {endTime}
- Series: - } - /> +
+ Timezone + +
+
+ Sort By + } + /> +
+ {/* Series */}
{ return (
-
-
+
+
Viewing: - {savedSearch.name} + {savedSearch.name}
)}
diff --git a/frontend/app/types/filter/newFilter.js b/frontend/app/types/filter/newFilter.js index 0cd999305..bf3b4de1c 100644 --- a/frontend/app/types/filter/newFilter.js +++ b/frontend/app/types/filter/newFilter.js @@ -42,7 +42,7 @@ export const filtersMap = { [FilterKey.REFERRER]: { key: FilterKey.REFERRER, type: FilterType.MULTIPLE, category: FilterCategory.RECORDING_ATTRIBUTES, label: 'Referrer', operator: 'is', operatorOptions: filterOptions.stringOperators, icon: 'filters/referrer' }, [FilterKey.DURATION]: { key: FilterKey.DURATION, type: FilterType.DURATION, category: FilterCategory.RECORDING_ATTRIBUTES, label: 'Duration', operator: 'is', operatorOptions: filterOptions.stringOperators, icon: 'filters/duration' }, [FilterKey.USER_COUNTRY]: { key: FilterKey.USER_COUNTRY, type: FilterType.MULTIPLE_DROPDOWN, category: FilterCategory.RECORDING_ATTRIBUTES, label: 'User Country', operator: 'is', operatorOptions: filterOptions.stringOperators, icon: 'filters/country', options: countryOptions }, - [FilterKey.CONSOLE]: { key: FilterKey.CONSOLE, type: FilterType.MULTIPLE, category: FilterCategory.JAVASCRIPT, label: 'Console', operator: 'is', operatorOptions: filterOptions.stringOperators, icon: 'filters/console' }, + // [FilterKey.CONSOLE]: { key: FilterKey.CONSOLE, type: FilterType.MULTIPLE, category: FilterCategory.JAVASCRIPT, label: 'Console', operator: 'is', operatorOptions: filterOptions.stringOperators, icon: 'filters/console' }, [FilterKey.USERID]: { key: FilterKey.USERID, type: FilterType.MULTIPLE, category: FilterCategory.USER, label: 'User Id', operator: 'is', operatorOptions: filterOptions.stringOperators, icon: 'filters/userid' }, [FilterKey.USERANONYMOUSID]: { key: FilterKey.USERANONYMOUSID, type: FilterType.MULTIPLE, category: FilterCategory.USER, label: 'User AnonymousId', operator: 'is', operatorOptions: filterOptions.stringOperators, icon: 'filters/userid' },