// SPDX-FileCopyrightText: 2026 FocusFlow contributors
// SPDX-License-Identifier: AGPL-3.0-only

part of '../../../application_management.dart';

/// Compact preview for a direct child task.
class BacklogChildPreviewReadModel {
  /// Creates a child task preview row.
  const BacklogChildPreviewReadModel({
    required this.taskId,
    required this.title,
    required this.isCompleted,
    this.durationMinutes,
    this.statusLabel,
  });

  /// Stable child task id.
  final String taskId;

  /// User-facing child task title.
  final String title;

  /// Estimated child task duration in minutes, if captured.
  final int? durationMinutes;

  /// Whether the child task is completed.
  final bool isCompleted;

  /// Optional display label for the child task lifecycle state.
  final String? statusLabel;
}
