fetchCandidates method
Returns issues currently in the configured active_states, sorted by the
adapter's natural order (the scheduler will re-sort for dispatch).
Implementation
@override
Future<TrackerResult<List<Issue>>> fetchCandidates() async {
final result = await _loadAllIssues();
return result.fold(TrackerError<List<Issue>>.new, (issues) {
final activeLowercased = activeStates.map((s) => s.toLowerCase()).toSet();
final filtered = issues
.where((i) => activeLowercased.contains(i.normalizedState))
.toList(growable: false);
return TrackerSuccess<List<Issue>>(filtered);
});
}