From 29ff91b2559fe2444951e8005eaf14991b82710e Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Wed, 23 Feb 2022 14:44:59 +0100 Subject: [PATCH] fix(ui) - session health check --- .../app/components/shared/SessionItem/ErrorBars/ErrorBars.tsx | 2 +- frontend/app/components/shared/SessionItem/SessionItem.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/app/components/shared/SessionItem/ErrorBars/ErrorBars.tsx b/frontend/app/components/shared/SessionItem/ErrorBars/ErrorBars.tsx index 3b49db9c6..b867d1b2a 100644 --- a/frontend/app/components/shared/SessionItem/ErrorBars/ErrorBars.tsx +++ b/frontend/app/components/shared/SessionItem/ErrorBars/ErrorBars.tsx @@ -7,7 +7,7 @@ const LESS_CRITICAL = 'Few Issues' const CRITICAL = 'Many Issues' const getErrorState = (count: number) => { if (count === 0) { return GOOD } - if (count < 2) { return LESS_CRITICAL } + if (count < 3) { return LESS_CRITICAL } return CRITICAL } diff --git a/frontend/app/components/shared/SessionItem/SessionItem.js b/frontend/app/components/shared/SessionItem/SessionItem.js index 023c9c724..ca9f649d7 100644 --- a/frontend/app/components/shared/SessionItem/SessionItem.js +++ b/frontend/app/components/shared/SessionItem/SessionItem.js @@ -58,6 +58,7 @@ export default class SessionItem extends React.PureComponent { live, metadata, userSessionsCount, + issueTypes, }, timezone, onUserClick = () => null, @@ -129,7 +130,7 @@ export default class SessionItem extends React.PureComponent { { !isAssist && (
- +
)}