Some checks failed
CI / test (macos-latest) (push) Has been cancelled
CI / test (ubuntu-latest) (push) Has been cancelled
CI / test (windows-latest) (push) Has been cancelled
CI / package (macos-latest, macos) (push) Has been cancelled
CI / package (ubuntu-latest, linux) (push) Has been cancelled
CI / package (windows-latest, windows) (push) Has been cancelled
CI / test (macos-latest) (pull_request) Has been cancelled
CI / test (ubuntu-latest) (pull_request) Has been cancelled
CI / test (windows-latest) (pull_request) Has been cancelled
CI / package (macos-latest, macos) (pull_request) Has been cancelled
CI / package (ubuntu-latest, linux) (pull_request) Has been cancelled
CI / package (windows-latest, windows) (pull_request) Has been cancelled
Backend was already V1-complete for these paths (moveFlexibleToBacklog,
breakUpTask); this closes the UI-wiring gap identified in the V1
feature-complete audit.
- Add createBacklogController() to SchedulerAppComposition and implement it
in PersistentSchedulerComposition (only the demo composition had one).
- Sidebar now switches the main content area between Today and Backlog via
a real SidebarScreen enum instead of hardcoded onTap: () {} stubs.
- Task modal's "Backlog" quick-action reuses the existing onPushToBacklog
wiring (same backend command as the Push menu's "Push to backlog").
- Add a break-up dialog (row-level title/priority/reward/duration per
MVP-AC-11) and SchedulerCommandController.breakUpTask(), wired to the
modal's "Break up" button.
- Fix a latent bug where the active sidebar nav item's key was hardcoded
to nav-today-active regardless of which item was active.
Closes: Circuit-Forge/focus-flow#9
Closes: Circuit-Forge/focus-flow#12
Closes: Circuit-Forge/focus-flow#13
53 lines
1.9 KiB
Dart
53 lines
1.9 KiB
Dart
// SPDX-FileCopyrightText: 2026 FocusFlow contributors
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
/// Composes the FocusFlow Flutter application around Focus Flow App.
|
|
library;
|
|
|
|
import 'dart:async';
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:scheduler_core/scheduler_core.dart';
|
|
|
|
import '../controllers/scheduler_command_controller.dart';
|
|
import '../controllers/scheduler_read_controller.dart';
|
|
import '../controllers/selected_date_controller.dart';
|
|
import '../controllers/today_screen_controller.dart';
|
|
import '../models/today_screen_models.dart';
|
|
import '../theme/focus_flow_theme.dart';
|
|
import '../theme/focus_flow_tokens.dart';
|
|
import '../widgets/app_shell.dart';
|
|
import '../widgets/backlog_pane.dart';
|
|
import '../widgets/required_banner.dart';
|
|
import '../widgets/sidebar.dart';
|
|
import '../widgets/task_selection_modal.dart';
|
|
import '../widgets/timeline/timeline_view.dart';
|
|
import '../widgets/top_bar.dart';
|
|
import 'scheduler_app_composition.dart';
|
|
|
|
part 'home/focus_flow_home.dart';
|
|
part 'home/focus_flow_home_state.dart';
|
|
part 'home/plan_issue.dart';
|
|
part 'home/today_screen_scaffold.dart';
|
|
part 'home/today_screen_scaffold_state.dart';
|
|
|
|
/// Root Material app for the FocusFlow desktop UI.
|
|
class FocusFlowApp extends StatelessWidget {
|
|
/// Creates a FocusFlow app from an application composition.
|
|
const FocusFlowApp({required this.composition, super.key});
|
|
|
|
/// Factory and controller bundle used by the app tree.
|
|
final SchedulerAppComposition composition;
|
|
|
|
/// Builds the widget subtree for this component.
|
|
/// The method translates the current widget configuration and state into Flutter UI without mutating scheduler domain data.
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
title: 'FocusFlow',
|
|
debugShowCheckedModeBanner: false,
|
|
theme: FocusFlowTheme.dark(),
|
|
home: FocusFlowHome(composition: composition),
|
|
);
|
|
}
|
|
}
|