From f2a5ebc89f5fb63d38ca4a541a02ee9014477980 Mon Sep 17 00:00:00 2001 From: Mohamed Ibrahim Date: Tue, 3 Feb 2026 16:08:44 -0500 Subject: [PATCH] feat(nimbus): keep notable changes visible for all experiments --- .../nimbus_experiments/results-new-inner.html | 168 ++++++++++-------- 1 file changed, 89 insertions(+), 79 deletions(-) diff --git a/experimenter/experimenter/nimbus_ui/templates/nimbus_experiments/results-new-inner.html b/experimenter/experimenter/nimbus_ui/templates/nimbus_experiments/results-new-inner.html index 203c7131f5..1df1c92741 100644 --- a/experimenter/experimenter/nimbus_ui/templates/nimbus_experiments/results-new-inner.html +++ b/experimenter/experimenter/nimbus_ui/templates/nimbus_experiments/results-new-inner.html @@ -194,14 +194,16 @@
Project Impact
{% comment %} Metrics {% endcomment %} {% for area, metric_data_metadata in metric_area_data.items %} {% with metric_metadata=metric_data_metadata.metrics metric_data=metric_data_metadata.data.overall %} - {% if metric_data %} + {% if metric_data or area == NimbusUIConstants.NOTABLE_METRIC_AREA %}
- -
-
-
- - {% for metric in metric_metadata %} - - {% for curr_metric_slug, metric_data in metric_data.items %} - {% if curr_metric_slug == metric.slug %} - {% for metric_ui_properties, ui_properties in relative_metric_changes.items %} - {% if metric_ui_properties == curr_metric_slug %} - {% include "common/metric_popout.html" with experiment_slug=experiment.slug metric_info=metric metric_data=metric_data branches=branch_data reference_branch=selected_reference_branch ui_properties=ui_properties display_type=metric.display_type %} + {% if metric_data %} +
+
+
+ + {% for metric in metric_metadata %} + + {% for curr_metric_slug, metric_data in metric_data.items %} + {% if curr_metric_slug == metric.slug %} + {% for metric_ui_properties, ui_properties in relative_metric_changes.items %} + {% if metric_ui_properties == curr_metric_slug %} + {% include "common/metric_popout.html" with experiment_slug=experiment.slug metric_info=metric metric_data=metric_data branches=branch_data reference_branch=selected_reference_branch ui_properties=ui_properties display_type=metric.display_type %} - {% endif %} - {% endfor %} - {% endif %} - {% endfor %} - {% endfor %} -
-
- {% if experiment.is_enrolling %} -
- {% for branch in branch_data %} -
-

{{ branch.name }}

-
+ {% endif %} + {% endfor %} + {% endif %} {% endfor %} -
-
- Metrics are on their way! Enrollment is in progress! -
- {% else %} -
- {% if branch_data|length > 4 %} -
-
- {% endif %} - {% for branch in branch_data %} -
-

{{ branch.name }}

-
- {% for metric in metric_metadata %} - {% for curr_metric_slug, metric_branch_data in metric_data.items %} - {% if curr_metric_slug == metric.slug %} - {% if metric.has_errors %} - {% if forloop.parentloop.parentloop.first %} -
-
- -

Metric unavailable

-

Other metrics are unaffected.

- + {% endfor %} +
+
+ {% if experiment.is_enrolling %} +
+ {% for branch in branch_data %} +
+

{{ branch.name }}

+
+ {% endfor %} +
+
+ Metrics are on their way! Enrollment is in progress! +
+ {% else %} +
+ {% if branch_data|length > 4 %} +
+
+ {% endif %} + {% for branch in branch_data %} +
+

{{ branch.name }}

+
+ {% for metric in metric_metadata %} + {% for curr_metric_slug, metric_branch_data in metric_data.items %} + {% if curr_metric_slug == metric.slug %} + {% if metric.has_errors %} + {% if forloop.parentloop.parentloop.first %} +
+
+ +

Metric unavailable

+

Other metrics are unaffected.

+ +
-
+ {% else %} + + {% endif %} {% else %} - - {% endif %} - {% else %} - {% for curr_branch_slug, branch_metric_data in metric_branch_data.items %} - {% if curr_branch_slug == branch.slug %} - {% include "common/metric_card.html" with slug=branch.slug reference_branch=selected_reference_branch absolute_lower=branch_metric_data.absolute.0.lower absolute_upper=branch_metric_data.absolute.0.upper significance=branch_metric_data.relative.0.significance percentage=branch_metric_data.relative.0.avg_rel_change display_type=metric.display_type %} + {% for curr_branch_slug, branch_metric_data in metric_branch_data.items %} + {% if curr_branch_slug == branch.slug %} + {% include "common/metric_card.html" with slug=branch.slug reference_branch=selected_reference_branch absolute_lower=branch_metric_data.absolute.0.lower absolute_upper=branch_metric_data.absolute.0.upper significance=branch_metric_data.relative.0.significance percentage=branch_metric_data.relative.0.avg_rel_change display_type=metric.display_type %} - {% endif %} - {% endfor %} + {% endif %} + {% endfor %} + {% endif %} {% endif %} - {% endif %} + {% endfor %} {% endfor %} - {% endfor %} +
-
- {% endfor %} -
- {% endif %} + {% endfor %} +
+ {% endif %} +
-
+ {% endif %}
{% endif %} {% endwith %}