feat(#117): agent-count toasts and persistent error toast dismiss
Some checks failed
CI / cleanup-branch (push) Has been skipped
CI / build (push) Failing after 30s
CI / docker (push) Has been skipped
CI / deploy (push) Has been skipped
CI / deploy-feature (push) Has been skipped

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-02 19:08:00 +02:00
parent c3b4f70913
commit ca1d472b78
9 changed files with 86 additions and 40 deletions

View File

@@ -135,7 +135,7 @@ export default function UsersTab() {
setNewProvider('local');
},
onError: () => {
toast({ title: 'Failed to create user', variant: 'error' });
toast({ title: 'Failed to create user', variant: 'error', duration: 86_400_000 });
},
},
);
@@ -154,7 +154,7 @@ export default function UsersTab() {
setDeleteTarget(null);
},
onError: () => {
toast({ title: 'Failed to delete user', variant: 'error' });
toast({ title: 'Failed to delete user', variant: 'error', duration: 86_400_000 });
setDeleteTarget(null);
},
});
@@ -175,7 +175,7 @@ export default function UsersTab() {
setNewPw('');
},
onError: () => {
toast({ title: 'Failed to update password', variant: 'error' });
toast({ title: 'Failed to update password', variant: 'error', duration: 86_400_000 });
},
},
);
@@ -333,6 +333,7 @@ export default function UsersTab() {
toast({
title: 'Failed to update name',
variant: 'error',
duration: 86_400_000,
}),
},
)
@@ -451,6 +452,7 @@ export default function UsersTab() {
toast({
title: 'Failed to remove group',
variant: 'error',
duration: 86_400_000,
}),
},
);
@@ -474,6 +476,7 @@ export default function UsersTab() {
toast({
title: 'Failed to add group',
variant: 'error',
duration: 86_400_000,
}),
},
);
@@ -506,6 +509,7 @@ export default function UsersTab() {
toast({
title: 'Failed to remove role',
variant: 'error',
duration: 86_400_000,
}),
},
);
@@ -542,6 +546,7 @@ export default function UsersTab() {
toast({
title: 'Failed to assign role',
variant: 'error',
duration: 86_400_000,
}),
},
);
@@ -583,6 +588,7 @@ export default function UsersTab() {
toast({
title: 'Failed to remove group',
variant: 'error',
duration: 86_400_000,
}),
},
);