From 35d258aa8c82ff679b2e821744a0246522979fe7 Mon Sep 17 00:00:00 2001 From: sylenien Date: Wed, 25 May 2022 11:34:27 +0200 Subject: [PATCH] fix(ui): design review fixes --- .../app/components/Session/RightBlock.tsx | 2 +- .../components/Session_/Autoplay/Autoplay.js | 6 ++-- .../Session_/EventsBlock/UserCard/UserCard.js | 16 ++++++---- .../PageInsightsPanel/PageInsightsPanel.tsx | 32 ++++++++++++------- .../components/Session_/PlayerBlockHeader.js | 10 ++++-- .../components/shared/Bookmark/Bookmark.tsx | 8 ++--- frontend/app/theme/colors.js | 3 +- 7 files changed, 47 insertions(+), 30 deletions(-) diff --git a/frontend/app/components/Session/RightBlock.tsx b/frontend/app/components/Session/RightBlock.tsx index 3e74413d8..8a07bbf2e 100644 --- a/frontend/app/components/Session/RightBlock.tsx +++ b/frontend/app/components/Session/RightBlock.tsx @@ -19,7 +19,7 @@ export default function RightBlock(props) { case props.tabs.EVENTS: return case props.tabs.HEATMAPS: - return + return } } return ( diff --git a/frontend/app/components/Session_/Autoplay/Autoplay.js b/frontend/app/components/Session_/Autoplay/Autoplay.js index b42625c07..f3f4c1ca9 100644 --- a/frontend/app/components/Session_/Autoplay/Autoplay.js +++ b/frontend/app/components/Session_/Autoplay/Autoplay.js @@ -17,7 +17,7 @@ function Autoplay(props) { return (
-
+
- + @@ -56,7 +56,7 @@ function Autoplay(props) { )} > - +
diff --git a/frontend/app/components/Session_/EventsBlock/UserCard/UserCard.js b/frontend/app/components/Session_/EventsBlock/UserCard/UserCard.js index 68eeefb7c..d4745d3c2 100644 --- a/frontend/app/components/Session_/EventsBlock/UserCard/UserCard.js +++ b/frontend/app/components/Session_/EventsBlock/UserCard/UserCard.js @@ -9,6 +9,7 @@ import cn from 'classnames' import { withRequest } from 'HOCs' import SessionInfoItem from '../../SessionInfoItem' import SessionList from '../Metadata/SessionList'; +import { Tooltip } from 'react-tippy' function UserCard({ className, @@ -71,11 +72,12 @@ function UserCard({ · {userBrowser}, {userOs}, {userDevice} · - More} - - content={( -
+ } label={countries[userCountry]} value={{formatTimeOrDate(startedAt)} } /> @@ -86,7 +88,9 @@ function UserCard({ hoverable disabled={false} on="hover" - /> + > + More +
diff --git a/frontend/app/components/Session_/PageInsightsPanel/PageInsightsPanel.tsx b/frontend/app/components/Session_/PageInsightsPanel/PageInsightsPanel.tsx index 83392cde8..445d65b80 100644 --- a/frontend/app/components/Session_/PageInsightsPanel/PageInsightsPanel.tsx +++ b/frontend/app/components/Session_/PageInsightsPanel/PageInsightsPanel.tsx @@ -1,5 +1,5 @@ import React, { useEffect, useState } from 'react'; -import { Dropdown, Loader } from 'UI'; +import { Dropdown, Loader, Icon } from 'UI'; import DateRange from 'Shared/DateRange'; import { connect } from 'react-redux'; import { fetchInsights } from 'Duck/sessions'; @@ -19,10 +19,11 @@ interface Props { urlOptions: Array loading: boolean host: string + setActiveTab: (tab) => void } function PageInsightsPanel({ - filters, fetchInsights, events = [], insights, urlOptions, host, loading = true + filters, fetchInsights, events = [], insights, urlOptions, host, loading = true, setActiveTab }: Props) { const [insightsFilters, setInsightsFilters] = useState(filters) const defaultValue = (urlOptions && urlOptions[0]) ? urlOptions[0].value : '' @@ -61,16 +62,23 @@ function PageInsightsPanel({ }; return ( -
-
- {/* */} - +
+
+
+ +
+
{ setActiveTab(''); }} + className="ml-auto flex items-center justify-center bg-white cursor-pointer" + > + +
In Page
diff --git a/frontend/app/components/Session_/PlayerBlockHeader.js b/frontend/app/components/Session_/PlayerBlockHeader.js index 2a4629ca6..e03cc9403 100644 --- a/frontend/app/components/Session_/PlayerBlockHeader.js +++ b/frontend/app/components/Session_/PlayerBlockHeader.js @@ -116,7 +116,7 @@ export default class PlayerBlockHeader extends React.PureComponent { /> { isAssist && } -
+
{ live && !isAssist && ( <>
@@ -128,13 +128,17 @@ export default class PlayerBlockHeader extends React.PureComponent { )} - + {_metaList.length > 0 && ( +
+ +
+ )} { isAssist && } { !isAssist && jiraConfig && jiraConfig.token && }
-
+