diff --git a/frontend/app/components/Client/ManageUsers/ManageUsers.js b/frontend/app/components/Client/ManageUsers/ManageUsers.js index 010b8cdea..dd703813e 100644 --- a/frontend/app/components/Client/ManageUsers/ManageUsers.js +++ b/frontend/app/components/Client/ManageUsers/ManageUsers.js @@ -24,7 +24,7 @@ const LIMIT_WARNING = 'You have reached users limit.'; errors: state.getIn([ 'members', 'saveRequest', 'errors' ]), loading: state.getIn([ 'members', 'loading' ]), saving: state.getIn([ 'members', 'saveRequest', 'loading' ]), - roles: state.getIn(['roles', 'list']).filter(r => !r.protected).map(r => ({ text: r.name, value: r.roleId })).toJS(), + roles: state.getIn(['roles', 'list']).filter(r => !r.protected).map(r => ({ label: r.name, value: r.roleId })).toJS(), isEnterprise: state.getIn([ 'user', 'account', 'edition' ]) === 'ee', }), { init, diff --git a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetricTableErrors/CustomMetricTableErrors.tsx b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetricTableErrors/CustomMetricTableErrors.tsx index 983c590f6..8885edcf6 100644 --- a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetricTableErrors/CustomMetricTableErrors.tsx +++ b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetricTableErrors/CustomMetricTableErrors.tsx @@ -1,15 +1,13 @@ import React, { useEffect } from 'react'; import { Pagination, NoContent } from 'UI'; -import ErrorListItem from '../../../components/Errors/ErrorListItem'; +import ErrorListItem from 'App/components/Dashboard/components/Errors/ErrorListItem'; import { withRouter, RouteComponentProps } from 'react-router-dom'; import { useModal } from 'App/components/Modal'; -import ErrorDetailsModal from '../../../components/Errors/ErrorDetailsModal'; +import ErrorDetailsModal from 'App/components/Dashboard/components/Errors/ErrorDetailsModal'; -const PER_PAGE = 5; interface Props { - metric: any; - isTemplate?: boolean; - isEdit?: boolean; + metric: any, + isEdit: any, history: any, location: any, } @@ -39,6 +37,7 @@ function CustomMetricTableErrors(props: RouteComponentProps) { return ( diff --git a/frontend/app/components/Dashboard/components/MetricListItem/MetricListItem.tsx b/frontend/app/components/Dashboard/components/MetricListItem/MetricListItem.tsx index 50bb99164..492a41bd5 100644 --- a/frontend/app/components/Dashboard/components/MetricListItem/MetricListItem.tsx +++ b/frontend/app/components/Dashboard/components/MetricListItem/MetricListItem.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Icon, NoContent, Label, Link, Pagination } from 'UI'; +import { Icon, NoContent, Label, Link, Pagination, Popup } from 'UI'; import { checkForRecent, formatDateTimeDefault, convertTimestampToUtcTimestamp } from 'App/date'; import { getIcon } from 'react-toastify/dist/components'; @@ -24,11 +24,22 @@ function DashboardLink({ dashboards}: any) { ); } -function MetricListItem(props: Props) { - const { metric } = props; +function MetricTypeIcon({ type }: any) { + const PopupWrapper = (props: any) => { + return ( + {type}} + position="top center" + on="hover" + hideOnScroll={true} + > + {props.children} + + ); + } - const getIcon = (metricType: string) => { - switch (metricType) { + const getIcon = () => { + switch (type) { case 'funnel': return 'filter'; case 'table': @@ -37,13 +48,28 @@ function MetricListItem(props: Props) { return 'bar-chart-line'; } } + + return ( + +
+ +
+
+ ) +} + +function MetricListItem(props: Props) { + const { metric } = props; + + return (
-
+ {/*
-
+
*/} + {metric.name} diff --git a/frontend/app/components/Dashboard/components/WidgetChart/WidgetChart.tsx b/frontend/app/components/Dashboard/components/WidgetChart/WidgetChart.tsx index e6553dcc8..0cccc7a58 100644 --- a/frontend/app/components/Dashboard/components/WidgetChart/WidgetChart.tsx +++ b/frontend/app/components/Dashboard/components/WidgetChart/WidgetChart.tsx @@ -146,7 +146,7 @@ function WidgetChart(props: Props) { return ( ) diff --git a/frontend/app/components/Funnels/FunnelWidget/FunnelWidget.tsx b/frontend/app/components/Funnels/FunnelWidget/FunnelWidget.tsx index 19587be83..b843736df 100644 --- a/frontend/app/components/Funnels/FunnelWidget/FunnelWidget.tsx +++ b/frontend/app/components/Funnels/FunnelWidget/FunnelWidget.tsx @@ -74,7 +74,6 @@ function FunnelWidget(props: Props) { Affected users
{funnel.affectedUsers} - {/* (12%) */}