feat(flows): workspace switcher + project-filtered flow list
Some checks failed
Security / Security check (push) Failing after 1s

Mount the shared project switcher (same control as Audit, Approvals
and Runs) in the flow editor's toolbar via the editor's new
toolbarTrailing slot. The list filters by the active project with
'no key = general' display semantics, and new flows are stamped
with the active project's key. Editor pin moved to c4a39a3
(0.25.0 + project separation).

Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
flemming-it 2026-07-22 13:57:14 +02:00
parent e28fffee61
commit ae46258ff7
3 changed files with 17 additions and 1 deletions

View file

@ -21,6 +21,7 @@ import '../data/store_caps.dart';
import '../data/workspace.dart';
import '../l10n/app_localizations.dart';
import '../widgets/chain_install_confirm.dart';
import '../widgets/chain_workspace_switcher.dart';
class FlowsPage extends StatefulWidget {
/// Pre-load this flow when the editor first builds. Studio
@ -182,6 +183,11 @@ class _FlowsPageState extends State<FlowsPage> {
onInstallCapability: _onInstallCapability,
onAddModuleSource: _onAddModuleSource,
activeProject: Workspace.instance.activeSlug,
// Same switcher as Audit/Approvals/Runs, hosted in the
// editor's toolbar (the page's single header): it
// filters the flow list and is the project a new flow
// gets stamped with.
toolbarTrailing: const ChainWorkspaceSwitcher(),
// Native file dialog for the Run tab's file inputs —
// nobody should have to type an absolute path by hand.
onPickFile: _pickFlowInputFile,