From f05055f9b76133b046ae5cea2cad8d011f89dce6 Mon Sep 17 00:00:00 2001 From: Sudheer Salavadi Date: Tue, 9 Jul 2024 20:32:15 +0530 Subject: [PATCH] Fixed Interaction issues a card and note in player --- .../components/CardIssues/CardIssueItem.tsx | 1 + .../components/CardIssues/CardIssues.tsx | 19 ++++++++++++++----- .../FunnelIssuesList/FunnelIssuesList.tsx | 5 ++--- .../Session_/EventsBlock/EventGroupWrapper.js | 3 ++- .../Session_/EventsBlock/NoteEvent.tsx | 6 +++--- .../Player/Controls/components/CreateNote.tsx | 4 +++- .../components/Notes/NoteItem.tsx | 3 ++- 7 files changed, 27 insertions(+), 14 deletions(-) diff --git a/frontend/app/components/Dashboard/components/CardIssues/CardIssueItem.tsx b/frontend/app/components/Dashboard/components/CardIssues/CardIssueItem.tsx index 87a51d99c..4b6074723 100644 --- a/frontend/app/components/Dashboard/components/CardIssues/CardIssueItem.tsx +++ b/frontend/app/components/Dashboard/components/CardIssues/CardIssueItem.tsx @@ -15,6 +15,7 @@ function CardIssueItem(props: Props) { title={issue.name} description={
{issue.source}
} avatar={} + className='cursor-pointer hover:bg-indigo-50' />
{issue.sessionCount}
diff --git a/frontend/app/components/Dashboard/components/CardIssues/CardIssues.tsx b/frontend/app/components/Dashboard/components/CardIssues/CardIssues.tsx index 4d619bdfd..304593727 100644 --- a/frontend/app/components/Dashboard/components/CardIssues/CardIssues.tsx +++ b/frontend/app/components/Dashboard/components/CardIssues/CardIssues.tsx @@ -2,7 +2,8 @@ import React, { useEffect, useState } from 'react'; import { useStore } from 'App/mstore'; import { observer, useObserver } from 'mobx-react-lite'; import { Button, Loader, NoContent, Pagination } from 'UI'; - +import AnimatedSVG, { ICONS } from 'Shared/AnimatedSVG/AnimatedSVG'; +import { InfoCircleOutlined } from '@ant-design/icons'; import { debounce } from 'App/utils'; import useIsMounted from 'App/hooks/useIsMounted'; import CardIssueItem from './CardIssueItem'; @@ -90,12 +91,12 @@ function CardIssues() { }; return useObserver(() => ( -
+
-

Issues

+

Issues

{!!filter.filters[1] && ( -
+
Showing issues of {filter.filters[0].value} to {filter.filters[1].value} @@ -109,7 +110,15 @@ function CardIssues() {
- + + +
No data available.
+
+ } + + > {/*{data.issues.map((item: any, index: any) => (*/} {/*
handleClick(item)} key={index}>*/} {/* */} diff --git a/frontend/app/components/Dashboard/components/Funnels/FunnelIssuesList/FunnelIssuesList.tsx b/frontend/app/components/Dashboard/components/Funnels/FunnelIssuesList/FunnelIssuesList.tsx index a8b7f549e..8eb4a508c 100644 --- a/frontend/app/components/Dashboard/components/Funnels/FunnelIssuesList/FunnelIssuesList.tsx +++ b/frontend/app/components/Dashboard/components/Funnels/FunnelIssuesList/FunnelIssuesList.tsx @@ -7,9 +7,8 @@ import { RouteComponentProps, withRouter } from 'react-router-dom'; import { useModal } from 'App/components/Modal'; import { useStore } from 'App/mstore'; import { NoContent } from 'UI'; - +import { InfoCircleOutlined } from '@ant-design/icons'; import AnimatedSVG, { ICONS } from 'Shared/AnimatedSVG/AnimatedSVG'; - import FunnelIssueModal from '../FunnelIssueModal'; import FunnelIssuesListItem from '../FunnelIssuesListItem'; @@ -117,7 +116,7 @@ function FunnelIssuesList(props: RouteComponentProps) { title={
-
No issues found
+
No issues found
} > diff --git a/frontend/app/components/Session_/EventsBlock/EventGroupWrapper.js b/frontend/app/components/Session_/EventsBlock/EventGroupWrapper.js index 4ae9e6676..9323c637b 100644 --- a/frontend/app/components/Session_/EventsBlock/EventGroupWrapper.js +++ b/frontend/app/components/Session_/EventsBlock/EventGroupWrapper.js @@ -142,12 +142,13 @@ class EventGroupWrapper extends React.Component { style={{ position: 'absolute', top: '50%', - left: -7, + left: -10, width: 10, height: 10, transform: 'rotate(45deg) translate(0, -50%)', background: '#394EFF', zIndex: 99, + borderRadius: '.15rem', }} /> ) : null} diff --git a/frontend/app/components/Session_/EventsBlock/NoteEvent.tsx b/frontend/app/components/Session_/EventsBlock/NoteEvent.tsx index 18481da51..ef0cdb002 100644 --- a/frontend/app/components/Session_/EventsBlock/NoteEvent.tsx +++ b/frontend/app/components/Session_/EventsBlock/NoteEvent.tsx @@ -76,7 +76,7 @@ function NoteEvent(props: Props) { { icon: 'trash', text: 'Delete', onClick: onDelete }, ]; return ( -
+
@@ -93,7 +93,7 @@ function NoteEvent(props: Props) { > {props.note.userName}
-
+
{formatTimeOrDate(props.note.createdAt as unknown as number, timezone)}
@@ -110,7 +110,7 @@ function NoteEvent(props: Props) {
{props.note.tag ? ( - + {props.note.tag} ) : null} diff --git a/frontend/app/components/Session_/Player/Controls/components/CreateNote.tsx b/frontend/app/components/Session_/Player/Controls/components/CreateNote.tsx index a6627fec8..3da4a31d7 100644 --- a/frontend/app/components/Session_/Player/Controls/components/CreateNote.tsx +++ b/frontend/app/components/Session_/Player/Controls/components/CreateNote.tsx @@ -241,8 +241,10 @@ function CreateNote({ addTag(tag)} key={tag} - className={'cursor-pointer'} + className='cursor-pointer rounded-lg hover:bg-indigo-50' color={tagActive(tag) ? tagProps[tag] : undefined} + bordered={false} + >
{tagActive(tag) ? ( diff --git a/frontend/app/components/shared/SessionsTabOverview/components/Notes/NoteItem.tsx b/frontend/app/components/shared/SessionsTabOverview/components/Notes/NoteItem.tsx index f21e4f060..a1be32388 100644 --- a/frontend/app/components/shared/SessionsTabOverview/components/Notes/NoteItem.tsx +++ b/frontend/app/components/shared/SessionsTabOverview/components/Notes/NoteItem.tsx @@ -65,12 +65,13 @@ function NoteItem(props: Props) { {props.note.tag} ) : null} -
+
{safeStrMessage}