refactor: FaiError -> ChainError (SDK stub rename lockstep)

Signed-off-by: flemming-it <sf@flemming.it>
This commit is contained in:
flemming-it 2026-07-11 23:14:34 +02:00
parent 42f271679c
commit 9196251e00
3 changed files with 5 additions and 5 deletions

View file

@ -1308,7 +1308,7 @@ class _FileList extends StatelessWidget {
if (snap.hasError) {
return Padding(
padding: const EdgeInsets.all(FaiSpace.md),
child: FaiErrorBox(error: snap.error, isError: true),
child: ChainErrorBox(error: snap.error, isError: true),
);
}
final files = snap.data ?? <_FlowFile>[];

View file

@ -1,4 +1,4 @@
/// Minimal stand-ins for the FaiEmptyState + FaiErrorBox
/// Minimal stand-ins for the FaiEmptyState + ChainErrorBox
/// widgets Studio ships. The editor brings its own so the
/// package compiles standalone host-styled variants are
/// a future plugin-API extension.
@ -53,11 +53,11 @@ class FaiEmptyState extends StatelessWidget {
}
}
class FaiErrorBox extends StatelessWidget {
class ChainErrorBox extends StatelessWidget {
final Object? error;
final bool isError;
final double? maxHeight;
const FaiErrorBox({
const ChainErrorBox({
super.key,
required this.error,
this.isError = true,

View file

@ -639,7 +639,7 @@ class _StepState {
/// button cover both keyboard and trackpad operators the
/// implicit selection gesture is too easy to miss on a long
/// failure message. Matches the visual treatment Studio's
/// `FaiErrorBox` uses elsewhere; kept local to this package
/// `ChainErrorBox` uses elsewhere; kept local to this package
/// so flow_editor doesn't depend on Studio internals.
class _CopyableErrorBox extends StatefulWidget {
final String text;