From 86c938e7c129883df7fd7797173e4b6aea1c05d4 Mon Sep 17 00:00:00 2001 From: Jason Robbins Date: Thu, 26 Aug 2021 10:15:05 -0700 Subject: [PATCH] Clarify milestones in diff emails. (#1493) * Clarify milestones in diff emails. * added missing file --- index.yaml | 16 +++--- templates/blink/intent_to_implement.html | 65 +---------------------- templates/estimated-milestones-table.html | 63 ++++++++++++++++++++++ templates/new-feature-email.html | 4 +- templates/update-feature-email.html | 4 +- 5 files changed, 78 insertions(+), 74 deletions(-) create mode 100644 templates/estimated-milestones-table.html diff --git a/index.yaml b/index.yaml index a84b24bf..4f47bfd4 100644 --- a/index.yaml +++ b/index.yaml @@ -22,6 +22,14 @@ indexes: - name: "shipped_milestone" direction: desc - name: "name" +- kind: "FeatureOwner" + properties: + - name: "primary_blink_components" + - name: "name" +- kind: "FeatureOwner" + properties: + - name: "blink_components" + - name: "name" - kind: "Feature" properties: - name: "shipped_milestone" @@ -155,14 +163,6 @@ indexes: - name: "date" - name: "day_percentage" direction: desc -- kind: "FeatureOwner" - properties: - - name: "blink_components" - - name: "name" -- kind: "FeatureOwner" - properties: - - name: "primary_blink_components" - - name: "name" - kind: "StableInstance" properties: - name: "bucket_id" diff --git a/templates/blink/intent_to_implement.html b/templates/blink/intent_to_implement.html index ed93a594..3c6308c2 100644 --- a/templates/blink/intent_to_implement.html +++ b/templates/blink/intent_to_implement.html @@ -200,70 +200,7 @@

Estimated milestones

- - - {% if feature.dt_milestone_desktop_start %} - - - {% endif %} - - {% if feature.dt_milestone_andorid_start %} - - - {% endif %} - - {% if feature.dt_milestone_ios_start %} - - - {% endif %} - - {% if feature.dt_milestone_webview_start %} - - - {% endif %} - - {% if feature.ot_milestone_desktop_start %} - - - {% endif %} - - {% if feature.ot_milestone_desktop_end %} - - - {% endif %} - - {% if feature.ot_milestone_android_start %} - - - {% endif %} - - {% if feature.ot_milestone_android_end %} - - - {% endif %} - - {% if feature.shipped_milestone %} - - - {% endif %} - - {% if feature.shipped_android_milestone %} - - - {% endif %} - - {% if feature.shipped_ios_milestone %} - - - {% endif %} - - {% if feature.shipped_webview_milestone %} - - - {% endif %} - -
DevTrial on desktop{{feature.dt_milestone_desktop_start}}
DevTrial on android{{feature.dt_milestone_android_start}}
DevTrial on iOS{{feature.dt_milestone_ios_start}}
DevTrial on Webview{{feature.dt_milestone_webview_start}}
OriginTrial desktop first{{feature.ot_milestone_desktop_start}}
OriginTrial desktop last{{feature.ot_milestone_desktop_end}}
OriginTrial android first{{feature.ot_milestone_android_start}}
OriginTrial android last{{feature.ot_milestone_android_end}}
Shipping on desktop{{feature.shipped_milestone}}
Shipping on Android{{feature.shipped_android_milestone}}
Shipping on iOS{{feature.shipped_ios_milestone}}
Shipping on Webview{{feature.shipped_webview_milestone}}
- +{% include "../estimated-milestones-table.html" %}

Link to entry on the {{APP_TITLE}}

diff --git a/templates/estimated-milestones-table.html b/templates/estimated-milestones-table.html new file mode 100644 index 00000000..f48da3a6 --- /dev/null +++ b/templates/estimated-milestones-table.html @@ -0,0 +1,63 @@ + + + {% if feature.dt_milestone_desktop_start %} + + + {% endif %} + + {% if feature.dt_milestone_andorid_start %} + + + {% endif %} + + {% if feature.dt_milestone_ios_start %} + + + {% endif %} + + {% if feature.dt_milestone_webview_start %} + + + {% endif %} + + {% if feature.ot_milestone_desktop_start %} + + + {% endif %} + + {% if feature.ot_milestone_desktop_end %} + + + {% endif %} + + {% if feature.ot_milestone_android_start %} + + + {% endif %} + + {% if feature.ot_milestone_android_end %} + + + {% endif %} + + {% if feature.shipped_milestone %} + + + {% endif %} + + {% if feature.shipped_android_milestone %} + + + {% endif %} + + {% if feature.shipped_ios_milestone %} + + + {% endif %} + + {% if feature.shipped_webview_milestone %} + + + {% endif %} + +
DevTrial on desktop{{feature.dt_milestone_desktop_start}}
DevTrial on android{{feature.dt_milestone_android_start}}
DevTrial on iOS{{feature.dt_milestone_ios_start}}
DevTrial on Webview{{feature.dt_milestone_webview_start}}
OriginTrial desktop first{{feature.ot_milestone_desktop_start}}
OriginTrial desktop last{{feature.ot_milestone_desktop_end}}
OriginTrial android first{{feature.ot_milestone_android_start}}
OriginTrial android last{{feature.ot_milestone_android_end}}
Shipping on desktop{{feature.shipped_milestone}}
Shipping on Android{{feature.shipped_android_milestone}}
Shipping on iOS{{feature.shipped_ios_milestone}}
Shipping on Webview{{feature.shipped_webview_milestone}}
diff --git a/templates/new-feature-email.html b/templates/new-feature-email.html index 9fd7a510..4b479343 100644 --- a/templates/new-feature-email.html +++ b/templates/new-feature-email.html @@ -5,9 +5,11 @@

{{feature.name}}

-

Milestone: {{milestone}}

Components: {{feature.blink_components|join:", "}}

Implementation status: {{status}}

+

Estimated milestones: + {% include "estimated-milestones-table.html" %} +


Next steps:

diff --git a/templates/update-feature-email.html b/templates/update-feature-email.html index b6cd04b4..5bf5162e 100644 --- a/templates/update-feature-email.html +++ b/templates/update-feature-email.html @@ -7,9 +7,11 @@ >{{feature.name}}

-

Milestone: {{milestone}}

Components: {{feature.blink_components|join:", "}}

Implementation status: {{status}}

+

Estimated milestones: + {% include "estimated-milestones-table.html" %} +

Changes: