Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Update 'No errors yet' UI to match other tabs empty states

Blue Mouse78f44aaf4f19
diff --git a/web/app/pages/Project/tabs/Errors/ErrorsView.tsx b/web/app/pages/Project/tabs/Errors/ErrorsView.tsx
index 1913c8190..8115526fd 100644
--- a/web/app/pages/Project/tabs/Errors/ErrorsView.tsx
+++ b/web/app/pages/Project/tabs/Errors/ErrorsView.tsx
@@ -1041,7 +1041,17 @@ const ErrorsViewInner = ({ deferredData }: ErrorsViewInnerProps) => {
typeof project?.isErrorDataExists === 'boolean' &&
!project.isErrorDataExists
) {
- return <WaitingForAnError />
+ return (
+ <div>
+ <DashboardHeader
+ showLiveVisitors
+ showSearchButton={false}
+ hideTimeBucket
+ rightContent={<ProjectViewHeaderActions tnMapping={tnMapping} />}
+ />
+ <WaitingForAnError />
+ </div>
+ )
}
if (activeEID) {
diff --git a/web/app/pages/Project/tabs/Errors/WaitingForAnError.tsx b/web/app/pages/Project/tabs/Errors/WaitingForAnError.tsx
index 5e5956ad5..023718446 100644
--- a/web/app/pages/Project/tabs/Errors/WaitingForAnError.tsx
+++ b/web/app/pages/Project/tabs/Errors/WaitingForAnError.tsx
@@ -12,49 +12,50 @@ const WaitingForAnError = () => {
const { t } = useTranslation('common')
return (
- <div className='mx-auto w-full max-w-2xl py-10'>
- <div className='flex gap-5'>
- <div className='mt-1 flex size-14 shrink-0 items-center justify-center rounded-xl bg-gray-100 dark:bg-slate-900'>
- <WarningIcon className='size-7 text-gray-700 dark:text-gray-200' />
- </div>
- <div>
- <Text as='h3' size='xl' weight='medium' className='tracking-tight'>
- {t('project.waitingError.title')}
- </Text>
- <Text as='p' size='sm' colour='secondary' className='mt-1'>
- <Trans
- t={t}
- i18nKey='project.waitingError.desc'
- components={{
- turl: (
- <a
- href={TROUBLESHOOTING_URL}
- aria-label={t('ariaLabels.openTroubleshootingGuide')}
- className='font-medium underline decoration-dashed hover:decoration-solid'
- target='_blank'
- rel='noreferrer noopener'
- />
- ),
- curl: (
- <Link
- to={routes.contact}
- className='font-medium underline decoration-dashed hover:decoration-solid'
- />
- ),
- howto: (
- <a
- href={ERROR_TRACKING_DOCS_URL}
- aria-label={t('ariaLabels.openErrorTrackingGuide')}
- className='font-medium underline decoration-dashed hover:decoration-solid'
- target='_blank'
- rel='noreferrer noopener'
- />
- ),
- }}
- />
- </Text>
- </div>
+ <div className='mx-auto w-full max-w-2xl py-16 text-center'>
+ <div className='mx-auto mb-6 flex size-14 items-center justify-center rounded-xl bg-gray-100 dark:bg-slate-900'>
+ <WarningIcon className='size-7 text-gray-700 dark:text-gray-200' />
</div>
+ <Text as='h3' size='xl' weight='medium' className='tracking-tight'>
+ {t('project.waitingError.title')}
+ </Text>
+ <Text
+ as='p'
+ size='sm'
+ colour='secondary'
+ className='mx-auto mt-2 max-w-md whitespace-pre-wrap'
+ >
+ <Trans
+ t={t}
+ i18nKey='project.waitingError.desc'
+ components={{
+ turl: (
+ <a
+ href={TROUBLESHOOTING_URL}
+ aria-label={t('ariaLabels.openTroubleshootingGuide')}
+ className='font-medium underline decoration-dashed hover:decoration-solid'
+ target='_blank'
+ rel='noreferrer noopener'
+ />
+ ),
+ curl: (
+ <Link
+ to={routes.contact}
+ className='font-medium underline decoration-dashed hover:decoration-solid'
+ />
+ ),
+ howto: (
+ <a
+ href={ERROR_TRACKING_DOCS_URL}
+ aria-label={t('ariaLabels.openErrorTrackingGuide')}
+ className='font-medium underline decoration-dashed hover:decoration-solid'
+ target='_blank'
+ rel='noreferrer noopener'
+ />
+ ),
+ }}
+ />
+ </Text>
</div>
)
}