change(ui): updated no content titles

This commit is contained in:
Shekar Siri 2023-07-03 14:21:25 +02:00
parent 402d2aadd3
commit c568027952
28 changed files with 31 additions and 31 deletions

View file

@ -28,8 +28,8 @@ function RecordingsList() {
<AnimatedSVG name={ICONS.NO_RECORDINGS} size={180} />
<div className="text-center mt-4">
{recordsSearch !== ''
? 'No matching results.'
: 'No recordings available.'}
? 'No matching results'
: 'No recordings available'}
</div>
</div>
}

View file

@ -40,7 +40,7 @@ function SessionList(props: Props) {
<div className="flex items-center justify-center flex-col">
<AnimatedSVG name={ICONS.NO_LIVE_SESSIONS} size={170} />
<div className="mt-4" />
<div className="text-center">No live sessions found.</div>
<div className="text-center">No live sessions found</div>
</div>
}
>

View file

@ -75,7 +75,7 @@ function Roles(props: Props) {
</div>
</div>
<NoContent title="No roles are available." size="small" show={false}>
<NoContent title="No roles are available" size="small" show={false}>
<div className={''}>
<div className={cn('flex items-start py-3 border-b px-5 pr-20 font-medium')}>
<div className="" style={{ width: '20%' }}>

View file

@ -158,7 +158,7 @@ const Sites = ({
<div className='flex flex-col items-center justify-center'>
<AnimatedSVG name={ICONS.NO_PROJECTS} size={170} />
<div className='text-center text-gray-600 my-4'>
No matching results.
No matching results
</div>
</div>
}

View file

@ -46,7 +46,7 @@ function UserList(props: Props) {
title={
<div className="flex flex-col items-center justify-center">
<AnimatedSVG name={ICONS.NO_AUDIT_TRAIL} size={80} />
<div className="text-center my-4">No matching results.</div>
<div className="text-center my-4">No matching results</div>
</div>
}
size="small"

View file

@ -47,7 +47,7 @@ function ClickMapCard({
title={
<div className="flex items-center relative">
<Icon name="info-circle" className="mr-2" size="18" />
No data for selected period or URL.
No data for selected period or URL
<div style={{ position: 'absolute', right: -240, top: -110 }}>
<Icon name="pointer-sessions-search" size={250} width={240} />
</div>

View file

@ -29,7 +29,7 @@ function CustomMetricTableSessions(props: Props) {
<AnimatedSVG name={ICONS.NO_SESSIONS} size={170} />
<div className="mt-4" />
<div className="text-center">
No relevant sessions found for the selected time period.
No relevant sessions found for the selected time period
</div>
</div>
}

View file

@ -61,7 +61,7 @@ function InsightsCard({ data }: any) {
title={
<div className="flex items-center">
<Icon name="info-circle" className="mr-2" size="18" />
No data for selected period.
No data for selected period
</div>
}
show={data.issues && data.issues.length === 0}

View file

@ -20,7 +20,7 @@ function DashboardList() {
<div className="flex flex-col items-center justify-center">
<AnimatedSVG name={ICONS.NO_DASHBOARDS} size={180} />
<div className="text-center mt-4">
{dashboardsSearch !== '' ? 'No matching results' : "You haven't created any dashboards yet."}
{dashboardsSearch !== '' ? 'No matching results' : "You haven't created any dashboards yet"}
</div>
</div>
}

View file

@ -142,7 +142,7 @@ function WidgetSessions(props: Props) {
<AnimatedSVG name={ICONS.NO_SESSIONS} size={170} />
<div className="mt-4" />
<div className="text-center">
No relevant sessions found for the selected time period.
No relevant sessions found for the selected time period
</div>
</div>
}

View file

@ -63,7 +63,7 @@ function FFlagsList({ siteId }: { siteId: string }) {
<AnimatedSVG name={ICONS.NO_FFLAGS} size={285} />
<div className="text-center text-gray-600 mt-4">
{featureFlagsStore.sort.query === ''
? "You haven't created any feature flags yet."
? "You haven't created any feature flags yet"
: 'No matching results'}
</div>
</div>

View file

@ -35,7 +35,7 @@ function FunnelWidget(props: Props) {
title={
<div className="flex items-center">
<Icon name="info-circle" className="mr-2" size="18" />
No data for selected period.
No data for selected period
</div>
}
show={!stages || stages.length === 0}

View file

@ -37,7 +37,7 @@ function StackEvents({
</PanelLayout.Header>
<PanelLayout.Body>
<NoContent
title="Nothing to display yet."
title="Nothing to display yet"
subtext={ !hintIsHidden
?
<>

View file

@ -30,7 +30,7 @@ class SessionList extends React.PureComponent {
<div className="flex items-center justify-center flex-col">
<AnimatedSVG name={ICONS.NO_SESSIONS} size={170} />
<div className="mt-2" />
<div className="text-center text-gray-600">No sessions found.</div>
<div className="text-center text-gray-600">No sessions found</div>
</div>
}
>

View file

@ -30,7 +30,7 @@ class SessionList extends React.PureComponent {
<div className="flex items-center justify-center flex-col">
<AnimatedSVG name={ICONS.NO_SESSIONS} size={170} />
<div className="mt-2" />
<div className="text-center text-gray-600">No sessions found.</div>
<div className="text-center text-gray-600">No sessions found</div>
</div>
}
>

View file

@ -45,7 +45,7 @@ export default class FetchDetails extends React.PureComponent {
title={
<div className="flex flex-col items-center justify-center">
<AnimatedSVG name={ICONS.NO_RESULTS} size="170" />
<div className="mt-4">Body is Empty.</div>
<div className="mt-4">Body is Empty</div>
</div>
}
size="small"
@ -69,7 +69,7 @@ export default class FetchDetails extends React.PureComponent {
title={
<div className="flex flex-col items-center justify-center">
<AnimatedSVG name={ICONS.NO_RESULTS} size="170" />
<div className="mt-4">Body is Empty.</div>
<div className="mt-4">Body is Empty</div>
</div>
}
size="small"

View file

@ -10,7 +10,7 @@ function Headers(props) {
title={
<div className="flex flex-col items-center justify-center">
<AnimatedSVG name={ICONS.NO_RESULTS} size="170" />
<div className="mt-4">No data available.</div>
<div className="mt-4">No data available</div>
</div>
}
size="small"

View file

@ -11,7 +11,7 @@ function SelectorsList() {
const { markedTargets: targets, activeTargetIndex } = store.get()
return (
<NoContent title="No data available." size="small" show={targets && targets.length === 0}>
<NoContent title="No data available" size="small" show={targets && targets.length === 0}>
<div className={stl.wrapper}>
{targets && targets.map((target, index) => <React.Fragment key={index}><SelectorCard target={target} index={index} showContent={activeTargetIndex === index} /></React.Fragment>)}
</div>

View file

@ -121,7 +121,7 @@ export default class StackEvents extends React.PureComponent {
</BottomBlock.Header>
<BottomBlock.Content>
<NoContent
title="Nothing to display yet."
title="Nothing to display yet"
subtext={
!hintIsHidden ? (
<>

View file

@ -265,7 +265,7 @@ export default class Storage extends React.PureComponent {
</BottomBlock.Header>
<BottomBlock.Content className="flex">
<NoContent
title="Nothing to display yet."
title="Nothing to display yet"
subtext={
!hintIsHidden ? (
<>

View file

@ -263,7 +263,7 @@ function Storage(props: Props) {
</BottomBlock.Header>
<BottomBlock.Content className="flex">
<NoContent
title="Nothing to display yet."
title="Nothing to display yet"
subtext={
!hintIsHidden ? (
<>

View file

@ -242,7 +242,7 @@ export default class Storage extends React.PureComponent {
</BottomBlock.Header>
<BottomBlock.Content className="flex" >
<NoContent
title="Nothing to display yet."
title="Nothing to display yet"
subtext={ !hintIsHidden
?
<>

View file

@ -58,7 +58,7 @@ function AlertTriggersModal(props: Props) {
<AnimatedSVG name={ICONS.EMPTY_STATE} size="100" />
</div>
}
subtext="There are no alerts to show."
subtext="There are no alerts to show"
show={ !loading && list.length === 0 }
size="small"
>

View file

@ -14,7 +14,7 @@ function Headers(props: Props) {
title={
<div className="flex flex-col items-center justify-center">
<AnimatedSVG name={ICONS.NO_RESULTS} size="170" />
<div className="mt-6 text-2xl">No data available.</div>
<div className="mt-6 text-2xl">No data available</div>
</div>
}
size="small"

View file

@ -120,7 +120,7 @@ function LiveSessionList(props: Props) {
<div className="flex items-center justify-center flex-col">
<AnimatedSVG name={ICONS.NO_LIVE_SESSIONS} size={180} />
<div className="mt-4" />
<div className="text-center">No live sessions found.</div>
<div className="text-center">No live sessions found</div>
</div>
}
subtext={

View file

@ -23,7 +23,7 @@ function NotesList({ members }: { members: Array<Record<string, any>> }) {
<div className="flex flex-col items-center justify-center">
{/* <Icon name="no-dashboard" size={80} color="figmaColors-accent-secondary" /> */}
<AnimatedSVG name={ICONS.NO_NOTES} size={180} />
<div className="text-center mt-4">No notes yet.</div>
<div className="text-center mt-4">No notes yet</div>
</div>
}
subtext={

View file

@ -90,13 +90,13 @@ function SessionList(props: Props) {
setNoContentType(NoContentType.Bookmarked);
return {
icon: ICONS.NO_BOOKMARKS,
message: 'No sessions bookmarked.'
message: 'No sessions bookmarked'
};
} else if (isVault) {
setNoContentType(NoContentType.Vaulted);
return {
icon: ICONS.NO_SESSIONS_IN_VAULT,
message: 'No sessions found in vault.'
message: 'No sessions found in vault'
};
}
setNoContentType(NoContentType.ToDate);

View file

@ -63,7 +63,7 @@ function UserSessionsModal(props: Props) {
<div>
<AnimatedSVG name={ICONS.NO_SESSIONS} size={170} />
<div className="mt-4" />
<div className="text-center">No recordings found.</div>
<div className="text-center">No recordings found</div>
</div>
}>
<div className="border rounded m-5 overflow-y-auto" style={{ maxHeight: 'calc(100vh - 85px)'}}>