[current results ui] Always show all configurations when expanding test results
Change-Id: I070beac0e4af0167fd486ea68b72429e145dde61
Reviewed-on: https://dart-review.googlesource.com/c/dart_ci/+/165821
Reviewed-by: Alexander Thomas <athom@google.com>
diff --git a/current_results_ui/lib/results.dart b/current_results_ui/lib/results.dart
index 37e83f8..dd81e75 100644
--- a/current_results_ui/lib/results.dart
+++ b/current_results_ui/lib/results.dart
@@ -39,8 +39,7 @@
final name = filteredNames[index];
final changeGroups = queryResults.grouped[name];
final counts = queryResults.counts[name];
- return ExpandableResult(
- name, changeGroups, counts, tabController.index);
+ return ExpandableResult(name, changeGroups, counts);
},
);
},
@@ -52,9 +51,8 @@
final String name;
final Map<ChangeInResult, List<Result>> changeGroups;
final Counts counts;
- final int tab;
- ExpandableResult(this.name, this.changeGroups, this.counts, this.tab)
+ ExpandableResult(this.name, this.changeGroups, this.counts)
: super(key: Key(name));
@override
@@ -132,19 +130,14 @@
onPressed: () => html.window.open(
Uri(
path: '/',
- fragment: widget.tab == 0
- ? 'showLatestFailures=false&test=$name'
- : 'test=$name')
+ fragment: 'showLatestFailures=false&test=$name')
.toString(),
'_blank')),
],
),
),
if (expanded)
- for (final change in changeGroups.keys.where((key) =>
- widget.tab == 0 ||
- widget.tab == 1 && !key.matches ||
- widget.tab == 2 && key.flaky))
+ for (final change in changeGroups.keys)
Container(
alignment: Alignment.topLeft,
padding: EdgeInsets.only(left: 48.0),