feat(studio): pencil-into-editor + back button + collapsible rail
Some checks failed
Security / Security check (push) Failing after 2s
Some checks failed
Security / Security check (push) Failing after 2s
Three operator-visible improvements per Stefan's review of the v0.50.0 editor. 1. Pencil icon on Flows page now opens Studio's own flow editor (route push) preloaded with the selected flow, replacing the previous "open in OS default editor" (SystemActions.openInOs) behaviour. The editor's AppBar gains a back arrow when reached via route push; reaching the editor via the nav rail leaves it bare. Tooltip string updated in EN + DE. 2. New FlowEditorPage `initialFlowName` parameter. When set, the page loads that flow on first frame (via post-frame callback so the BuildContext is mounted before _openByName runs). When null (the nav-rail path), the editor opens to its empty state as before. 3. Sidebar (_Sidebar) is now collapsed-by-default: shows just icons in a 72px-wide rail with per-destination tooltips. Hovering the rail expands it to 220px (the old width) with brand-mark + labels + the full footer row (theme toggle, language toggle, clock, settings). Collapsed footer shows the settings icon only. Brand- mark (FaiDeltaMark) stays visible in both states so the live/idle status dot is always glanceable. Side-effect: SystemActions import in flows.dart is no longer needed (the pencil no longer shells out) — removed. widget_test.dart: dropped the per-destination Text-presence asserts since labels are now Tooltips when collapsed. Hover-expand testing triggers RenderFlex-overflow mid- animation in widget tests (the AnimatedContainer's width transitions through a constraint slimmer than the Row's intrinsic min). The booting-without-throwing assertion remains; per-destination presence stays in the per-page test suites. Both arb files updated with the new strings (navFlowEditor already existed; added flowEditorBackTooltip + retouched flowsOpenInEditorTooltip). Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
parent
647d93a1dc
commit
e522267ec1
9 changed files with 269 additions and 142 deletions
|
|
@ -715,7 +715,7 @@
|
|||
}
|
||||
},
|
||||
"flowsInstallAuthWallButton": "Registry-Token einfügen",
|
||||
"flowsOpenInEditorTooltip": "YAML-Datei im Standard-Editor öffnen",
|
||||
"flowsOpenInEditorTooltip": "Im Studio-Flow-Editor öffnen",
|
||||
"flowsOpenInEditorFailed": "Konnte Datei nicht öffnen: {error}",
|
||||
"@flowsOpenInEditorFailed": {
|
||||
"placeholders": {
|
||||
|
|
@ -1384,6 +1384,7 @@
|
|||
"storeSourceTemporal": "Temporal",
|
||||
|
||||
"navFlowEditor": "Editor",
|
||||
"flowEditorBackTooltip": "Zurück",
|
||||
"flowEditorNew": "Neuer Flow",
|
||||
"flowEditorSave": "Speichern",
|
||||
"flowEditorRun": "Ausführen",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue