Move editor UI into the app and release verified Core dependencies (#14)
Gitea CI / Assemble and validate CI artifacts (push) Successful in 1m47s
Gitea CI / Check code and tests (push) Successful in 7m15s
Gitea CI / Build Android APK (push) Successful in 4m6s
Gitea CI / Build Windows x64 app (push) Successful in 3m34s
Gitea CI / Audit and package Windows x64 (push) Successful in 1m29s
Gitea CI / Gitea CI passed (push) Successful in 1s
Gitea Release / Prepare draft Release (push) Failing after 8s
Gitea Release / Upload Android to draft Release (push) Skipped
Gitea Release / Upload Windows to draft Release (push) Skipped
Gitea Release / Verify and publish Release (push) Skipped

This commit was merged in pull request #14.
This commit is contained in:
lingjhf committed 2026-10-11 19:59:40 +00:00
1 parent abc1868550
commit 06f1c26681
452 files changed
+43806 -2329

No files matched your search

+77 -22
View File
@@ -45,6 +45,7 @@ import 'project_switch_region.dart';
import 'project_sidebar.dart';
import 'project_tabs_bar.dart';
import 'project_tabs_controller.dart';
import 'workflow_page.dart';
import 'widgets/name_dialog.dart';
/// The single application surface: project navigation beside the editor.
@@ -294,6 +295,19 @@ class _EditingPageState extends ConsumerState<EditingPage> {
);
final projects = ref.read(projectsProvider);
final state = projects.value ?? const ProjectState();
final editorProjectId = state.timeline == null
? null
: state.activeProject?.id;
final editorViewSettings = desktop && editorProjectId != null
? ref.watch(
projectViewSettingsProvider(editorProjectId).select(
(value) => (
ready: value.hasValue,
timelineHeight: value.value?.timelineHeight,
),
),
)
: null;
return EditorWindowChrome(
headerHeight: desktop ? DesktopWindowFrame.headerHeight : 48,
builder: (context, integrated) => Scaffold(
@@ -631,30 +645,33 @@ class _EditingPageState extends ConsumerState<EditingPage> {
),
),
);
bool isActiveContent(DesktopContent surface) =>
surface == DesktopContent.workspace
? contentSelection.surface ==
DesktopContent.workspace ||
contentSelection.surface ==
DesktopContent.library ||
contentSelection.surface ==
DesktopContent.resourceLibrary
: contentSelection.surface == surface;
Widget contentSurface(
DesktopContent surface,
Widget child,
) => ExcludeFocus(
excluding:
(contentSelection.surface ==
DesktopContent.settings) !=
(surface == DesktopContent.settings),
excluding: !isActiveContent(surface),
child: TickerMode(
enabled:
(contentSelection.surface ==
DesktopContent.settings) ==
(surface == DesktopContent.settings),
enabled: isActiveContent(surface),
child: child,
),
);
Widget desktopContents(
Widget workspace,
) => IndexedStack(
index:
contentSelection.surface ==
DesktopContent.settings
? 1
: 0,
index: switch (contentSelection.surface) {
DesktopContent.settings => 1,
DesktopContent.workflow => 2,
_ => 0,
},
children: [
contentSurface(
DesktopContent.workspace,
@@ -685,6 +702,10 @@ class _EditingPageState extends ConsumerState<EditingPage> {
)
: const SizedBox.shrink(),
),
contentSurface(
DesktopContent.workflow,
const WorkflowPage(),
),
],
);
return switch (experience) {
@@ -773,17 +794,23 @@ class _EditingPageState extends ConsumerState<EditingPage> {
],
),
),
resourceLibrarySelected:
contentSelection.surface ==
DesktopContent.resourceLibrary,
onResourceLibraryPressed: () => selectSidebar(
DesktopContent.resourceLibrary,
),
settingsSelected:
contentSelection.surface ==
DesktopContent.settings,
onHomePressed: () =>
selectSidebar(DesktopContent.workspace),
workflowSelected:
contentSelection.surface ==
DesktopContent.workflow,
onHomePressed: () {
selectSidebar(DesktopContent.workspace);
_setMode(WorkspaceMode.agent);
},
onWorkflowPressed: () {
ref
.read(desktopContentProvider.notifier)
.select(DesktopContent.workflow);
_desktopScaffoldKey.currentState
?.closeDrawer();
},
onSettingsPressed: () =>
showSettingsPage(context),
child: desktopContents(
@@ -794,15 +821,43 @@ class _EditingPageState extends ConsumerState<EditingPage> {
navigationDrawer: navigation(drawer: true),
mode: _mode,
sidebarCollapsed: navigationCollapsed,
sidebarCanExpand: !navigationHiddenBySpace,
sidebarWidth: _sidebarWidthOverride,
timelineHeight:
editorViewSettings?.timelineHeight,
onTimelineHeightChanged:
editorViewSettings?.ready == true &&
!_switchingProject
? (height) => ref
.read(
projectViewSettingsProvider(
editorProjectId!,
).notifier,
)
.setTimelineHeight(height)
: null,
onJunctionResizeEnd: () {
_saveViewState();
if (editorViewSettings?.ready == true) {
unawaited(
ref
.read(
projectViewSettingsProvider(
editorProjectId!,
).notifier,
)
.save(),
);
}
},
onSidebarCollapsedChanged: (value) {
_sidebarCollapsed = value;
_saveViewState();
},
onSidebarWidthChanged: (value) {
_sidebarWidthOverride = value;
_saveViewState();
},
onSidebarResizeEnd: _saveViewState,
sidebarBuilder: (geometry, expand) =>
navigation(
geometry: geometry,