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

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

/// One entry in a Backlog summary distribution.
class BacklogDistributionEntryReadModel {
  /// Creates a distribution entry.
  const BacklogDistributionEntryReadModel({
    required this.id,
    required this.label,
    required this.count,
    required this.percentage,
    this.colorToken,
  });

  /// Stable entry id for tests and UI keys.
  final String id;

  /// Display label for the entry.
  final String label;

  /// Number of tasks in this entry.
  final int count;

  /// Share of the parent distribution as a value from 0.0 to 1.0.
  final double percentage;

  /// Optional UI color token for the entry.
  final String? colorToken;
}
