From e71036b2f898e5e2b2005ad78271789fddb6bb43 Mon Sep 17 00:00:00 2001 From: Sudheer Salavadi Date: Thu, 16 Jan 2025 03:44:34 -0500 Subject: [PATCH] Projects Refinements (#2949) --- .../Client/CustomFields/CustomFieldForm.js | 2 +- .../Client/CustomFields/CustomFieldForm.tsx | 6 +++--- .../Client/CustomFields/CustomFields.tsx | 7 ++++--- .../components/Client/Projects/ProjectList.tsx | 17 +++++------------ .../components/Client/Projects/ProjectTags.tsx | 5 +++-- .../app/components/Client/Projects/Projects.tsx | 12 +++++++++--- .../app/components/Client/Projects/TagForm.tsx | 7 ++++--- 7 files changed, 29 insertions(+), 27 deletions(-) diff --git a/frontend/app/components/Client/CustomFields/CustomFieldForm.js b/frontend/app/components/Client/CustomFields/CustomFieldForm.js index b988c89e2..19cf244d2 100644 --- a/frontend/app/components/Client/CustomFields/CustomFieldForm.js +++ b/frontend/app/components/Client/CustomFields/CustomFieldForm.js @@ -15,7 +15,7 @@ const CustomFieldForm = ({ field, saving, errors, edit, save, onSave, onClose, o return (
-

{exists ? 'Update' : 'Add'} Metadata Field

+

{exists ? 'Update' : 'Add'} Metadata Field

diff --git a/frontend/app/components/Client/CustomFields/CustomFieldForm.tsx b/frontend/app/components/Client/CustomFields/CustomFieldForm.tsx index c732b038b..82c0372d0 100644 --- a/frontend/app/components/Client/CustomFields/CustomFieldForm.tsx +++ b/frontend/app/components/Client/CustomFields/CustomFieldForm.tsx @@ -51,7 +51,7 @@ const CustomFieldForm: React.FC = ({ siteId }) => { return (
-

{exists ? 'Update' : 'Add'} Metadata Field

+

{exists ? 'Update' : 'Add'} Metadata Field

@@ -60,7 +60,7 @@ const CustomFieldForm: React.FC = ({ siteId }) => { name="key" value={field?.key} onChange={write} - placeholder="Field Name" + placeholder="E.g. plan" maxLength={50} /> @@ -76,7 +76,7 @@ const CustomFieldForm: React.FC = ({ siteId }) => { > {exists ? 'Update' : 'Add'} -
diff --git a/frontend/app/components/Client/CustomFields/CustomFields.tsx b/frontend/app/components/Client/CustomFields/CustomFields.tsx index 98844e9a5..d4c3ed218 100644 --- a/frontend/app/components/Client/CustomFields/CustomFields.tsx +++ b/frontend/app/components/Client/CustomFields/CustomFields.tsx @@ -6,6 +6,7 @@ import { useStore } from 'App/mstore'; import { observer } from 'mobx-react-lite'; import { List, Space, Typography, Button, Tooltip } from 'antd'; import { PencilIcon, PlusIcon, Tags } from 'lucide-react'; +import {EditOutlined } from '@ant-design/icons'; import usePageTitle from '@/hooks/usePageTitle'; import { Empty } from '.store/antd-virtual-7db13b4af6/package'; @@ -37,7 +38,7 @@ const CustomFields = () => {
Attach key-value pairs to session replays for enhanced filtering, searching, and identifying relevant user - sessions. Learn More. + sessions. Learn more @@ -47,7 +48,7 @@ const CustomFields = () => { 0 ? '' : 'You\'ve reached the limit of 10 metadata.'} > - - } onChange={(e) => setSearch(e.target.value)} @@ -111,7 +104,7 @@ const ProjectIconWithProgress: React.FC<{ size={26} icon={ platform === 'web' ? ( - + ) : ( ) diff --git a/frontend/app/components/Client/Projects/ProjectTags.tsx b/frontend/app/components/Client/Projects/ProjectTags.tsx index 4d59a3ceb..92caa6485 100644 --- a/frontend/app/components/Client/Projects/ProjectTags.tsx +++ b/frontend/app/components/Client/Projects/ProjectTags.tsx @@ -2,7 +2,8 @@ import React, { useEffect } from 'react'; import { useStore } from '@/mstore'; import { List, Button, Typography, Space, Empty } from 'antd'; import { observer } from 'mobx-react-lite'; -import { PencilIcon, ScanSearch } from 'lucide-react'; +import { ScanSearch } from 'lucide-react'; +import {EditOutlined} from '@ant-design/icons' import { useModal } from 'Components/ModalContext'; import TagForm from 'Components/Client/Projects/TagForm'; import AnimatedSVG, { ICONS } from 'Shared/AnimatedSVG/AnimatedSVG'; @@ -46,7 +47,7 @@ function ProjectTags() { } /> + } + > @@ -97,7 +103,7 @@ function ProjectKeyButton({ project }: { project: Project | null }) { return ( - -