From 91deba2f9653ee9907c9e7b1ef6d977b61ec879a Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Thu, 2 Jan 2025 15:07:43 +0100 Subject: [PATCH] fix(ui): bookmarks separation and other page titles --- frontend/app/components/Assist/AssistView.tsx | 2 + frontend/app/components/FFlags/FFlagsList.tsx | 13 ++-- frontend/app/components/Overview/Overview.tsx | 15 ++-- .../SessionsTabOverview.tsx | 2 + .../components/Bookmarks/Bookmarks.tsx | 78 +++++++++++++++++++ .../components/Notes/NoteList.tsx | 2 + .../SessionHeader/SessionHeader.tsx | 7 +- frontend/app/mstore/sessionStore.ts | 33 +++++++- 8 files changed, 135 insertions(+), 17 deletions(-) create mode 100644 frontend/app/components/shared/SessionsTabOverview/components/Bookmarks/Bookmarks.tsx diff --git a/frontend/app/components/Assist/AssistView.tsx b/frontend/app/components/Assist/AssistView.tsx index 5a345380a..bfcdcac33 100644 --- a/frontend/app/components/Assist/AssistView.tsx +++ b/frontend/app/components/Assist/AssistView.tsx @@ -2,8 +2,10 @@ import React from 'react'; import LiveSessionList from 'Shared/LiveSessionList'; import LiveSessionSearch from 'Shared/LiveSessionSearch'; import AssistSearchField from './AssistSearchField'; +import usePageTitle from '@/hooks/usePageTitle'; function AssistView() { + usePageTitle('Co-Browse - OpenReplay'); return (
diff --git a/frontend/app/components/FFlags/FFlagsList.tsx b/frontend/app/components/FFlags/FFlagsList.tsx index e73469809..59f359c8d 100644 --- a/frontend/app/components/FFlags/FFlagsList.tsx +++ b/frontend/app/components/FFlags/FFlagsList.tsx @@ -1,6 +1,5 @@ import React from 'react'; import { numberWithCommas } from 'App/utils'; -import withPageTitle from 'HOCs/withPageTitle'; import withPermissions from 'HOCs/withPermissions'; import FFlagsListHeader from 'Components/FFlags/FFlagsListHeader'; import AnimatedSVG, { ICONS } from 'Shared/AnimatedSVG/AnimatedSVG'; @@ -9,8 +8,10 @@ import FFlagItem from './FFlagItem'; import { useStore } from 'App/mstore'; import { observer } from 'mobx-react-lite'; import Select from 'Shared/Select'; +import usePageTitle from '@/hooks/usePageTitle'; function FFlagsList({ siteId }: { siteId: string }) { + usePageTitle('Feature Flags - OpenReplay'); const { featureFlagsStore, userStore } = useStore(); React.useEffect(() => { @@ -31,7 +32,7 @@ function FFlagsList({ siteId }: { siteId: string }) { options={[ { label: 'All', value: '0' as const }, { label: 'Enabled', value: '1' as const }, - { label: 'Disabled', value: '2' as const }, + { label: 'Disabled', value: '2' as const } ]} defaultValue={featureFlagsStore.activity} plain @@ -45,7 +46,7 @@ function FFlagsList({ siteId }: { siteId: string }) {