Some checks failed
Security / Security check (push) Failing after 1s
New top-level destination "Editor" (Cmd+5) ships as Studio's
fifth surface. The editor reads + writes flow YAML directly
under ~/.fai/data/flows/ via dart:io — the hub picks up the
changes on the next listFlows / runSavedFlow call.
Layout: two-pane shell. Left (240 px) is the file list; right
flexes to the code pane and an optional results column when
Run produces output. Top toolbar exposes:
* filename + dirty-mark
* New flow (scaffolds from a debug.echo template)
* Save (writes the active file to disk)
* Run (saves first if dirty, calls
HubService.runSavedFlow, surfaces typed FlowOutputs in
a side panel)
* Refresh
YAML highlighting via flutter_code_editor + the highlight
package's yaml language. Lightweight style map mapping the
five token classes that actually appear in flow YAML
(attr / string / number / comment / subst for the
${{ ... }} template syntax) to FaiTheme colors — keeps the
editor visually consistent with the rest of Studio.
New-flow naming uses a FilteringTextInputFormatter that
restricts the name to [a-z0-9_-]. A "name already exists"
SnackBar surfaces the conflict instead of silently
overwriting.
Bilingual strings shipped (en.arb + de.arb) for every
operator-facing string: toolbar buttons, dialogs, empty
states, file-exists error, run-output header.
New deps:
* flutter_code_editor ^0.3.5
* highlight (transitive — pinned as direct so the
yaml-language import has its declared dependency).
Smoke-test (test/flow_editor_test.dart) pumps the page and
asserts the empty-state + toolbar render without throwing
on hosts that don't have ~/.fai/data/flows yet. The full
file-list + open-on-tap flow needs a writable HOME override
which dart:io's read-only Platform.environment doesn't allow
inside a test isolate — that path lives in the integration
suite as a follow-up.
Version bumps:
* pubspec.yaml: 0.49.1 → 0.50.0
* main.dart kStudioVersion: 0.42.0 → 0.50.0 (had drifted
behind pubspec; brought back into sync as part of this
bump)
Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
53 lines
1.6 KiB
YAML
53 lines
1.6 KiB
YAML
name: fai_studio
|
|
description: "F∆I Studio — desktop GUI for the F∆I hub"
|
|
publish_to: 'none'
|
|
version: 0.50.0
|
|
|
|
environment:
|
|
sdk: ^3.11.0-200.1.beta
|
|
|
|
dependencies:
|
|
flutter:
|
|
sdk: flutter
|
|
flutter_localizations:
|
|
sdk: flutter
|
|
cupertino_icons: ^1.0.8
|
|
intl: any
|
|
|
|
# Sibling package; will move to Forgejo path once published.
|
|
fai_client_sdk:
|
|
path: ../fai_client_sdk_dart
|
|
google_fonts: ^8.1.0
|
|
shared_preferences: ^2.5.5
|
|
# Inline README rendering inside the Store detail sheet.
|
|
# `flutter_markdown` is discontinued; `flutter_markdown_plus`
|
|
# is the actively-maintained drop-in fork (same
|
|
# `MarkdownStyleSheet` / `Markdown` / `MarkdownBody` API).
|
|
flutter_markdown_plus: ^1.0.3
|
|
# Today-Hero pipeline reads accepted stories from
|
|
# ~/.fai/today/active.yaml — see docs/today-pipeline.md.
|
|
yaml: ^3.1.2
|
|
path: ^1.9.0
|
|
# System-native file picker — used by the Flows run-flow
|
|
# form for `bytes`-shaped inputs (extract takes a PDF, the
|
|
# operator clicks "Choose file" and macOS / Linux / Windows
|
|
# routes through the OS dialog so sandboxed Studio still
|
|
# gets read access to the chosen file).
|
|
file_picker: ^11.0.0
|
|
flutter_code_editor: ^0.3.5
|
|
highlight: ^0.7.0
|
|
|
|
dev_dependencies:
|
|
flutter_test:
|
|
sdk: flutter
|
|
flutter_lints: ^6.0.0
|
|
|
|
flutter:
|
|
uses-material-design: true
|
|
generate: true
|
|
# Bundled operator-facing documentation rendered inline by
|
|
# the Welcome page. Each doc has a `_de.md` sibling for the
|
|
# German locale; the loader picks the right pair at runtime.
|
|
# Air-gap-friendly — no network calls to read these.
|
|
assets:
|
|
- assets/docs/
|