diff --git a/frontend/app/components/Dashboard/components/Funnels/FunnelIssues/FunnelIssues.tsx b/frontend/app/components/Dashboard/components/Funnels/FunnelIssues/FunnelIssues.tsx index 6c636f901..41edff69e 100644 --- a/frontend/app/components/Dashboard/components/Funnels/FunnelIssues/FunnelIssues.tsx +++ b/frontend/app/components/Dashboard/components/Funnels/FunnelIssues/FunnelIssues.tsx @@ -29,7 +29,7 @@ function FunnelIssues() { filter: { ...item.filter, filters: item.filter.filters.filter((filter: any, index: any) => { - const stage = widget.data.funnel.stages[index]; + const stage = widget.data.funnel?.stages[index]; return stage &&stage.isActive }).map((f: any) => f.toJson()) } diff --git a/frontend/app/components/Session_/OverviewPanel/OverviewPanel.tsx b/frontend/app/components/Session_/OverviewPanel/OverviewPanel.tsx index 3722f6c2c..53b44ea58 100644 --- a/frontend/app/components/Session_/OverviewPanel/OverviewPanel.tsx +++ b/frontend/app/components/Session_/OverviewPanel/OverviewPanel.tsx @@ -40,11 +40,11 @@ function OverviewPanel({ issuesList }: { issuesList: Record[] }) { const performanceChartData = tabStates[currentTab]?.performanceChartData || [] const fetchPresented = fetchList.length > 0; - const resourceList = resourceListUnmap .filter((r: any) => r.isRed || r.isYellow) .concat(fetchList.filter((i: any) => parseInt(i.status) >= 400)) - .concat(graphqlList.filter((i: any) => parseInt(i.status) >= 400)); + .concat(graphqlList.filter((i: any) => parseInt(i.status) >= 400)) + .filter((i: any) => i.type === "fetch"); const resources: any = React.useMemo(() => { return { diff --git a/frontend/app/components/Session_/OverviewPanel/components/TimelinePointer/TimelinePointer.tsx b/frontend/app/components/Session_/OverviewPanel/components/TimelinePointer/TimelinePointer.tsx index 2c54aaeb0..73dffcfce 100644 --- a/frontend/app/components/Session_/OverviewPanel/components/TimelinePointer/TimelinePointer.tsx +++ b/frontend/app/components/Session_/OverviewPanel/components/TimelinePointer/TimelinePointer.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { NETWORK, EXCEPTIONS } from 'Duck/components/player'; import { useModal } from 'App/components/Modal'; -import { Icon, Tooltip } from 'UI'; +import { Icon } from 'UI'; import StackEventModal from '../StackEventModal'; import ErrorDetailsModal from 'App/components/Dashboard/components/Errors/ErrorDetailsModal'; import FetchDetails from 'Shared/FetchDetailsModal'; @@ -9,6 +9,7 @@ import GraphQLDetailsModal from 'Shared/GraphQLDetailsModal'; import { PlayerContext } from 'App/components/Session/playerContext'; import { TYPES } from 'App/types/session/event' import { types as issueTypes } from 'App/types/session/issue' +import { Tooltip } from 'antd'; interface Props { pointer: any; @@ -61,8 +62,6 @@ const TimelinePointer = React.memo((props: Props) => { : item.name} } - delay={0} - placement="top" >
@@ -87,8 +86,6 @@ const TimelinePointer = React.memo((props: Props) => { {elData.name}
} - delay={0} - placement="top" >
@@ -105,8 +102,6 @@ const TimelinePointer = React.memo((props: Props) => { {'Stack Event'}
} - delay={0} - placement="top" >
{ {item.type}
} - delay={0} - placement="top" >
{ {item.message}
} - delay={0} - placement="top" >
diff --git a/frontend/app/components/Session_/Player/Controls/components/CreateNote.tsx b/frontend/app/components/Session_/Player/Controls/components/CreateNote.tsx index e84929f5b..84ab9337f 100644 --- a/frontend/app/components/Session_/Player/Controls/components/CreateNote.tsx +++ b/frontend/app/components/Session_/Player/Controls/components/CreateNote.tsx @@ -76,7 +76,7 @@ function CreateNote({ } }, [isVisible]); - const duration = Duration.fromMillis(time).toFormat('mm:ss'); + const duration = Duration.fromMillis(time || 0).toFormat('mm:ss'); const cleanUp = () => { setCreateNoteTooltip({ isVisible: false, time: 0 }); diff --git a/frontend/app/components/shared/SelectDateRange/SelectDateRange.tsx b/frontend/app/components/shared/SelectDateRange/SelectDateRange.tsx index 627956675..5dd463968 100644 --- a/frontend/app/components/shared/SelectDateRange/SelectDateRange.tsx +++ b/frontend/app/components/shared/SelectDateRange/SelectDateRange.tsx @@ -64,7 +64,7 @@ function SelectDateRange(props: Props) { {isCustom && ( { - if (e.target.parentElement.parentElement.classList.contains('rc-time-picker-panel-select') || e.target.parentElement.parentElement.classList[0].includes('-menu')) { + if (e.target.parentElement.parentElement.classList.contains('rc-time-picker-panel-select') || e.target.parentElement.parentElement.classList[0]?.includes('-menu')) { return false; } setIsCustom(false); diff --git a/frontend/app/components/shared/SessionItem/SessionItem.tsx b/frontend/app/components/shared/SessionItem/SessionItem.tsx index a842be074..a1312428b 100644 --- a/frontend/app/components/shared/SessionItem/SessionItem.tsx +++ b/frontend/app/components/shared/SessionItem/SessionItem.tsx @@ -222,7 +222,7 @@ function SessionItem(props: RouteComponentProps & Props) {
- +
diff --git a/frontend/app/components/ui/CountryFlag/CountryFlag.js b/frontend/app/components/ui/CountryFlag/CountryFlag.js index 5f1497e1d..422d5504d 100644 --- a/frontend/app/components/ui/CountryFlag/CountryFlag.js +++ b/frontend/app/components/ui/CountryFlag/CountryFlag.js @@ -1,22 +1,17 @@ import React from 'react'; import cn from 'classnames'; -import { countries } from 'App/constants'; -import { Icon } from 'UI'; -import stl from './countryFlag.module.css'; +import { Icon, TextEllipsis } from 'UI'; const CountryFlag = ({ userCity = '', - userState = '', country = '', className = '', style = {}, - label = false, width = 22, height = 15, }) => { const knownCountry = !!country && country !== 'UN'; const countryFlag = knownCountry ? country.toLowerCase() : ''; - const countryName = knownCountry ? countries[country] : 'Unknown Country'; return (
@@ -33,9 +28,14 @@ const CountryFlag = ({
)} - {userCity && {userCity},} - {userState && {userState},} - {knownCountry && label &&
{countryName}
} + {userCity && ( + + + + )}
); }; diff --git a/frontend/app/components/ui/TextEllipsis/TextEllipsis.js b/frontend/app/components/ui/TextEllipsis/TextEllipsis.js index 7cd51e39f..1eab52c21 100644 --- a/frontend/app/components/ui/TextEllipsis/TextEllipsis.js +++ b/frontend/app/components/ui/TextEllipsis/TextEllipsis.js @@ -1,7 +1,7 @@ import React from 'react'; import { useState, useRef, useEffect, forwardRef } from 'react'; import cn from 'classnames'; -import { Tooltip } from 'UI'; +import { Tooltip } from 'antd'; import styles from './textEllipsis.module.css'; /** calculates text width in pixels