feat(flows): workspace switcher + project-filtered flow list
Some checks failed
Security / Security check (push) Failing after 1s
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:
parent
e28fffee61
commit
ae46258ff7
3 changed files with 17 additions and 1 deletions
10
CHANGELOG.md
10
CHANGELOG.md
|
|
@ -23,6 +23,16 @@ lockstep.
|
||||||
- Flow editor pinned at 0.25.0 (store-resolvability split in the
|
- Flow editor pinned at 0.25.0 (store-resolvability split in the
|
||||||
flow list, three-path analyzer message).
|
flow list, three-path analyzer message).
|
||||||
|
|
||||||
|
### Added — project separation for flows (0.78.0)
|
||||||
|
|
||||||
|
- **Workspace switcher on the Flows page.** The same project
|
||||||
|
selector as Audit/Approvals/Runs now sits in the flow editor's
|
||||||
|
toolbar: it filters the flow list by the active project (flows
|
||||||
|
without a `project:` key count as "general" — display semantics,
|
||||||
|
files are never rewritten) and is the project a new flow gets
|
||||||
|
stamped with. The file keeps winning for runs; the editor's
|
||||||
|
mismatch banner still offers the one-click align.
|
||||||
|
|
||||||
### Added — real trust + exposure data (0.77.0)
|
### Added — real trust + exposure data (0.77.0)
|
||||||
|
|
||||||
- **Per-entry install verification.** The hub now reports (since
|
- **Per-entry install verification.** The hub now reports (since
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ import '../data/store_caps.dart';
|
||||||
import '../data/workspace.dart';
|
import '../data/workspace.dart';
|
||||||
import '../l10n/app_localizations.dart';
|
import '../l10n/app_localizations.dart';
|
||||||
import '../widgets/chain_install_confirm.dart';
|
import '../widgets/chain_install_confirm.dart';
|
||||||
|
import '../widgets/chain_workspace_switcher.dart';
|
||||||
|
|
||||||
class FlowsPage extends StatefulWidget {
|
class FlowsPage extends StatefulWidget {
|
||||||
/// Pre-load this flow when the editor first builds. Studio
|
/// Pre-load this flow when the editor first builds. Studio
|
||||||
|
|
@ -182,6 +183,11 @@ class _FlowsPageState extends State<FlowsPage> {
|
||||||
onInstallCapability: _onInstallCapability,
|
onInstallCapability: _onInstallCapability,
|
||||||
onAddModuleSource: _onAddModuleSource,
|
onAddModuleSource: _onAddModuleSource,
|
||||||
activeProject: Workspace.instance.activeSlug,
|
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 —
|
// Native file dialog for the Run tab's file inputs —
|
||||||
// nobody should have to type an absolute path by hand.
|
// nobody should have to type an absolute path by hand.
|
||||||
onPickFile: _pickFlowInputFile,
|
onPickFile: _pickFlowInputFile,
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ dependencies:
|
||||||
# builds against. Bump this in lockstep with the editor tag.
|
# builds against. Bump this in lockstep with the editor tag.
|
||||||
# Commit-pinned to editor 0.25.0 until its v0.25.0 tag exists
|
# Commit-pinned to editor 0.25.0 until its v0.25.0 tag exists
|
||||||
# (equally reproducible); switch back to the tag then.
|
# (equally reproducible); switch back to the tag then.
|
||||||
ref: ab97e5e
|
ref: c4a39a3
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue