From fb41a518c9682e221a12592757aff2c0af523967 Mon Sep 17 00:00:00 2001 From: flemming-it Date: Tue, 16 Jun 2026 17:47:59 +0200 Subject: [PATCH] refactor: rename package fai_studio_flow_editor -> chain_studio_flow_editor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The flow editor is a Ch∆In Studio sub-component (chain product), not a F∆I-vendor package. Rename the package, entry library file, and all package: imports. flutter analyze: clean. Signed-off-by: flemming-it --- CHANGELOG.md | 2 +- README.md | 8 ++++---- ...dio_flow_editor.dart => chain_studio_flow_editor.dart} | 0 pubspec.yaml | 2 +- test/editor_controller_test.dart | 4 ++-- test/fix_dialog_test.dart | 6 +++--- test/flow_analyzer_test.dart | 4 ++-- test/flow_graph_test.dart | 2 +- test/flow_node_test.dart | 4 ++-- test/flow_yaml_controller_test.dart | 4 ++-- test/inline_approval_test.dart | 2 +- 11 files changed, 19 insertions(+), 19 deletions(-) rename lib/{fai_studio_flow_editor.dart => chain_studio_flow_editor.dart} (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c839b6..432207b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -All notable changes to `fai_studio_flow_editor` recorded here. +All notable changes to `chain_studio_flow_editor` recorded here. Studio bumps its `pubspec.yaml` git ref to a specific release of this package on every editor change. diff --git a/README.md b/README.md index 89d3b86..7d65194 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# fai_studio_flow_editor +# chain_studio_flow_editor Swappable in-Studio flow editor for the Ch∆In. Hosts a three-tab editing surface on top of one in-memory flow YAML: @@ -19,7 +19,7 @@ editor is one pubspec change and a rebuild. ## Public surface ```dart -import 'package:fai_studio_flow_editor/fai_studio_flow_editor.dart'; +import 'package:chain_studio_flow_editor/chain_studio_flow_editor.dart'; FlowEditorPage( initialFlowName: String?, // preload this flow @@ -85,7 +85,7 @@ spurious diffs in version control. ``` lib/ -├── fai_studio_flow_editor.dart exports public API +├── chain_studio_flow_editor.dart exports public API └── src/ ├── editor_controller.dart shared state + reparse loop ├── flow_editor_page.dart host scaffolding, tabs @@ -113,7 +113,7 @@ reference: ```yaml dependencies: - fai_studio_flow_editor: + chain_studio_flow_editor: git: url: https://git.flemming.ai/fai/studio-flow-editor ref: main diff --git a/lib/fai_studio_flow_editor.dart b/lib/chain_studio_flow_editor.dart similarity index 100% rename from lib/fai_studio_flow_editor.dart rename to lib/chain_studio_flow_editor.dart diff --git a/pubspec.yaml b/pubspec.yaml index 0a55a98..45a5b5e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,4 +1,4 @@ -name: fai_studio_flow_editor +name: chain_studio_flow_editor description: Swappable inline YAML editor for F∆I Studio flows. version: 0.21.0 publish_to: 'none' diff --git a/test/editor_controller_test.dart b/test/editor_controller_test.dart index e21e6bf..2c4fbfe 100644 --- a/test/editor_controller_test.dart +++ b/test/editor_controller_test.dart @@ -5,8 +5,8 @@ // graph -> YAML emission, selection bookkeeping, and // dirty/saved transitions correctly. -import 'package:fai_studio_flow_editor/src/editor_controller.dart'; -import 'package:fai_studio_flow_editor/src/model/flow_graph.dart'; +import 'package:chain_studio_flow_editor/src/editor_controller.dart'; +import 'package:chain_studio_flow_editor/src/model/flow_graph.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { diff --git a/test/fix_dialog_test.dart b/test/fix_dialog_test.dart index 2e38494..2f114ed 100644 --- a/test/fix_dialog_test.dart +++ b/test/fix_dialog_test.dart @@ -4,9 +4,9 @@ // fixesFor, analyzerErrorCount, AnalyzerStrings) so a future // regression on the data flow surfaces in CI. -import 'package:fai_studio_flow_editor/src/flow_yaml_controller.dart'; -import 'package:fai_studio_flow_editor/src/l10n.dart'; -import 'package:fai_studio_flow_editor/src/quick_fix.dart'; +import 'package:chain_studio_flow_editor/src/flow_yaml_controller.dart'; +import 'package:chain_studio_flow_editor/src/l10n.dart'; +import 'package:chain_studio_flow_editor/src/quick_fix.dart'; import 'package:flutter_code_editor/flutter_code_editor.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/test/flow_analyzer_test.dart b/test/flow_analyzer_test.dart index 8732e55..9b35f4f 100644 --- a/test/flow_analyzer_test.dart +++ b/test/flow_analyzer_test.dart @@ -2,8 +2,8 @@ // AbstractAnalyzer that feeds the flow editor's gutter + the // custom CodeController's wavy-underline overrides. -import 'package:fai_studio_flow_editor/src/flow_analyzer.dart'; -import 'package:fai_studio_flow_editor/src/quick_fix.dart'; +import 'package:chain_studio_flow_editor/src/flow_analyzer.dart'; +import 'package:chain_studio_flow_editor/src/quick_fix.dart'; import 'package:flutter_code_editor/flutter_code_editor.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:highlight/languages/yaml.dart'; diff --git a/test/flow_graph_test.dart b/test/flow_graph_test.dart index 16c84c3..875245f 100644 --- a/test/flow_graph_test.dart +++ b/test/flow_graph_test.dart @@ -3,7 +3,7 @@ // here corrupts every flow the operator opens, so the parser // gets full coverage of the shipped example shapes. -import 'package:fai_studio_flow_editor/src/model/flow_graph.dart'; +import 'package:chain_studio_flow_editor/src/model/flow_graph.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { diff --git a/test/flow_node_test.dart b/test/flow_node_test.dart index d443926..0d45d68 100644 --- a/test/flow_node_test.dart +++ b/test/flow_node_test.dart @@ -5,8 +5,8 @@ // attached when supplied, height accounts for max(inputs, // outputs). -import 'package:fai_studio_flow_editor/src/model/flow_graph.dart'; -import 'package:fai_studio_flow_editor/src/widgets/flow_node.dart'; +import 'package:chain_studio_flow_editor/src/model/flow_graph.dart'; +import 'package:chain_studio_flow_editor/src/widgets/flow_node.dart'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/test/flow_yaml_controller_test.dart b/test/flow_yaml_controller_test.dart index 4dfe2bc..e9ad7d9 100644 --- a/test/flow_yaml_controller_test.dart +++ b/test/flow_yaml_controller_test.dart @@ -9,8 +9,8 @@ // CodeField inside a TestWidget tree and walk the produced // span tree. -import 'package:fai_studio_flow_editor/src/flow_yaml_controller.dart'; -import 'package:fai_studio_flow_editor/src/wire_colors.dart'; +import 'package:chain_studio_flow_editor/src/flow_yaml_controller.dart'; +import 'package:chain_studio_flow_editor/src/wire_colors.dart'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/test/inline_approval_test.dart b/test/inline_approval_test.dart index 1067367..c852f3d 100644 --- a/test/inline_approval_test.dart +++ b/test/inline_approval_test.dart @@ -7,7 +7,7 @@ import 'dart:async'; import 'dart:typed_data'; -import 'package:fai_studio_flow_editor/src/run_driver.dart'; +import 'package:chain_studio_flow_editor/src/run_driver.dart'; import 'package:flutter_test/flutter_test.dart'; void main() {