loadFeatures static method
Load only active features (todo + in-progress) from features.yaml.
Implementation
static List<Feature> loadFeatures() {
ensureDataFilesExist();
try {
final yaml = _parseFeaturesYaml();
if (yaml == null) return [];
final list = yaml['features'] as YamlList?;
if (list == null) return [];
return list
.cast<Map<dynamic, dynamic>>()
.map((f) => Feature.fromMap(f))
.toList();
} catch (e) {
print('Warning: Failed to load features.yaml: $e');
return [];
}
}