refactor: FaiError -> ChainError (SDK stub rename lockstep)
Some checks failed
Security / Security check (push) Failing after 1s

Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
flemming-it 2026-07-11 23:14:33 +02:00
parent bb606a8b23
commit 7a38cd58aa
13 changed files with 30 additions and 30 deletions

View file

@ -53,10 +53,10 @@ class ChainErrorBox extends StatefulWidget {
);
@override
State<ChainErrorBox> createState() => _FaiErrorBoxState();
State<ChainErrorBox> createState() => _ChainErrorBoxState();
}
class _FaiErrorBoxState extends State<ChainErrorBox> {
class _ChainErrorBoxState extends State<ChainErrorBox> {
bool _justCopied = false;
bool _detailExpanded = false;

View file

@ -173,7 +173,7 @@ class _BytesView extends StatelessWidget {
).showSnackBar(SnackBar(content: Text(l.flowsOutputSavedAt(path))));
} catch (e) {
if (!context.mounted) return;
showFaiErrorSnack(context, 'flows.output.save', e);
showChainErrorSnack(context, 'flows.output.save', e);
}
}
@ -234,7 +234,7 @@ class _FileView extends StatelessWidget {
final target = uri.startsWith('file://') ? uri.substring(7) : uri;
final r = await SystemActions.openInOs(target);
if (!context.mounted || r.ok) return;
showFaiErrorSnack(
showChainErrorSnack(
context,
'flows.output.open',
r.stderr.isEmpty ? 'open failed' : r.stderr,

View file

@ -107,7 +107,7 @@ class _FaiModuleSheetState extends State<ChainModuleSheet> {
} catch (e) {
if (!mounted) return;
setState(() => _uninstalling = false);
showFaiErrorSnack(context, 'modules.uninstall', e);
showChainErrorSnack(context, 'modules.uninstall', e);
}
}

View file

@ -100,7 +100,7 @@ class _FaiSettingsDialogState extends State<ChainSettingsDialog> {
).showSnackBar(SnackBar(content: Text(l.hubAuthTokenSavedToast)));
} catch (e) {
if (!mounted) return;
showFaiErrorSnack(context, 'auth.hub-token.save', e);
showChainErrorSnack(context, 'auth.hub-token.save', e);
}
}
@ -116,7 +116,7 @@ class _FaiSettingsDialogState extends State<ChainSettingsDialog> {
).showSnackBar(SnackBar(content: Text(l.hubAuthTokenClearedToast)));
} catch (e) {
if (!mounted) return;
showFaiErrorSnack(context, 'auth.hub-token.clear', e);
showChainErrorSnack(context, 'auth.hub-token.clear', e);
}
}
@ -141,7 +141,7 @@ class _FaiSettingsDialogState extends State<ChainSettingsDialog> {
).showSnackBar(SnackBar(content: Text(l.registryTokenSavedToast)));
} catch (e) {
if (!mounted) return;
showFaiErrorSnack(context, 'auth.registry-token.save', e);
showChainErrorSnack(context, 'auth.registry-token.save', e);
}
}
@ -156,7 +156,7 @@ class _FaiSettingsDialogState extends State<ChainSettingsDialog> {
).showSnackBar(SnackBar(content: Text(l.registryTokenClearedToast)));
} catch (e) {
if (!mounted) return;
showFaiErrorSnack(context, 'auth.registry-token.clear', e);
showChainErrorSnack(context, 'auth.registry-token.clear', e);
}
}
@ -186,7 +186,7 @@ class _FaiSettingsDialogState extends State<ChainSettingsDialog> {
).showSnackBar(SnackBar(content: Text(l.addedN8nToast(draft.name))));
} catch (e) {
if (!mounted) return;
showFaiErrorSnack(context, 'settings.n8n.add', e);
showChainErrorSnack(context, 'settings.n8n.add', e);
}
}
@ -197,7 +197,7 @@ class _FaiSettingsDialogState extends State<ChainSettingsDialog> {
setState(() => _n8nEndpoints = list);
} catch (e) {
if (!mounted) return;
showFaiErrorSnack(context, 'settings.n8n.remove', e);
showChainErrorSnack(context, 'settings.n8n.remove', e);
}
}
@ -208,7 +208,7 @@ class _FaiSettingsDialogState extends State<ChainSettingsDialog> {
setState(() => _n8nEndpoints = list);
} catch (e) {
if (!mounted) return;
showFaiErrorSnack(context, 'settings.n8n.refresh', e);
showChainErrorSnack(context, 'settings.n8n.refresh', e);
}
}
@ -238,7 +238,7 @@ class _FaiSettingsDialogState extends State<ChainSettingsDialog> {
).showSnackBar(SnackBar(content: Text(l.addedMcpToast(draft.name))));
} catch (e) {
if (!mounted) return;
showFaiErrorSnack(context, 'settings.mcp.add', e);
showChainErrorSnack(context, 'settings.mcp.add', e);
}
}
@ -249,7 +249,7 @@ class _FaiSettingsDialogState extends State<ChainSettingsDialog> {
setState(() => _mcpClients = list);
} catch (e) {
if (!mounted) return;
showFaiErrorSnack(context, 'settings.mcp.remove', e);
showChainErrorSnack(context, 'settings.mcp.remove', e);
}
}
@ -260,7 +260,7 @@ class _FaiSettingsDialogState extends State<ChainSettingsDialog> {
setState(() => _mcpClients = list);
} catch (e) {
if (!mounted) return;
showFaiErrorSnack(context, 'settings.mcp.refresh', e);
showChainErrorSnack(context, 'settings.mcp.refresh', e);
}
}

View file

@ -114,7 +114,7 @@ class _ChainStoresDialogState extends State<ChainStoresDialog> {
_reload();
} catch (e) {
if (mounted) {
showFaiErrorSnack(context, 'store.add', e,
showChainErrorSnack(context, 'store.add', e,
title: AppLocalizations.of(context)!.storesManagerAddFailed);
}
} finally {
@ -131,7 +131,7 @@ class _ChainStoresDialogState extends State<ChainStoresDialog> {
_reload();
} catch (e) {
if (mounted) {
showFaiErrorSnack(context, 'store.remove', e,
showChainErrorSnack(context, 'store.remove', e,
title: AppLocalizations.of(context)!.storesManagerRemoveFailed);
}
}

View file

@ -271,7 +271,7 @@ class _FaiSystemAiEditorState extends State<ChainSystemAiEditor> {
});
} catch (e) {
if (!mounted) return;
showFaiErrorSnack(context, 'settings.system-ai.cache-clear', e);
showChainErrorSnack(context, 'settings.system-ai.cache-clear', e);
}
}