refactor(client): centralize error feedback with toast events

- emit API/network failures through a shared toast event bridge

- remove per-page inline error notifications to avoid duplicate error UI

- dedupe repeated toast messages to keep feedback readable
This commit is contained in:
ars9 committed 2026-04-10 22:24:30 +03:00
1 parent 7444082b65
commit ccce3381c1
25 files changed
+59 -80

No files matched your search

@@ -10,7 +10,6 @@ import {
Button,
Card,
DescriptionList,
Notification,
Timestamp,
UuidBadge,
} from '../../ui';
@@ -56,14 +55,6 @@ export function SessionDetailPage() {
)}
</div>
{error && (
<Notification
variant="error"
title={error.startsWith('404') ? t('errors.not_found') : undefined}
>
{error.startsWith('404') ? t('errors.not_found_session', { id }) : error}
</Notification>
)}
{loading && <p className={styles.muted}>{t('sessions.loading')}</p>}
{session && (
@@ -78,7 +78,6 @@ export function SessionsPage() {
<div className={styles.pageToolbar}>
<Breadcrumbs items={[{ label: t('sessions.title'), icon: <Monitor size={14} /> }]} />
</div>
{error && <p className={styles.error}>{error}</p>}
<Table
columns={columns}
data={items}