Bug 1381831 - Improve about:telemetry start page r=chutten
authorflyingrub <flyinggrub@gmail.com>
Mon, 21 Aug 2017 13:29:07 +0200
changeset 378073 5ffb2108ba511b94e52bd0686f29b71fe8bbe79d
parent 378072 803a7a310b109b75db75bdd2e1787bee7cd9ab8c
child 378074 eab0db5216b78b958d71d26d92d1f32adbdaec9c
push id94412
push userarchaeopteryx@coole-files.de
push dateFri, 01 Sep 2017 08:46:09 +0000
treeherdermozilla-inbound@d56571d7f1be [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerschutten
bugs1381831
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1381831 - Improve about:telemetry start page r=chutten Make about:telemetry start page a useful entry point into Telemetry MozReview-Commit-ID: JIgU3acT1fS
toolkit/content/aboutTelemetry.js
toolkit/content/aboutTelemetry.xhtml
toolkit/locales/en-US/chrome/global/aboutTelemetry.dtd
--- a/toolkit/content/aboutTelemetry.js
+++ b/toolkit/content/aboutTelemetry.js
@@ -1861,16 +1861,26 @@ function setHasData(aSectionID, aHasData
 function setupPageHeader() {
   let serverOwner = Preferences.get(PREF_TELEMETRY_SERVER_OWNER, "Mozilla");
   let brandName = brandBundle.GetStringFromName("brandFullName");
   let subtitleText = bundle.formatStringFromName(
     "pageSubtitle", [serverOwner, brandName], 2);
 
   let subtitleElement = document.getElementById("page-subtitle");
   subtitleElement.appendChild(document.createTextNode(subtitleText));
+
+  let links = [
+    "https://docs.telemetry.mozilla.org/",
+    "https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/telemetry/index.html",
+    "https://telemetry.mozilla.org/",
+  ];
+  let htmlLink = document.querySelectorAll("#home-section > ul > li > a");
+  htmlLink.forEach((a, index) => {
+    a.href = links[index];
+  });
 }
 
 function displayProcessesSelector(selectedSection) {
   let whitelist = [
     "scalars-section",
     "keyed-scalars-section",
     "histograms-section",
     "keyed-histograms-section",
--- a/toolkit/content/aboutTelemetry.xhtml
+++ b/toolkit/content/aboutTelemetry.xhtml
@@ -139,19 +139,25 @@
       </div>
 
       <div id="no-search-results" hidden="true">
         <span id="no-search-results-text"></span>
         <div class="no-search-results-image"></div>
       </div>
 
       <section id="home-section" class="active">
-        <h3 id="page-subtitle"></h3>
+        <p id="page-subtitle"></p>
         <p id="home-explanation"></p>
         <p id="ping-explanation"></p>
+        <p>&aboutTelemetry.moreInformations;</p>
+        <ul>
+          <li>&aboutTelemetry.firefoxDataDoc;</li>
+          <li>&aboutTelemetry.telemetryClientDoc;</li>
+          <li>&aboutTelemetry.telemetryDashboard;</li>
+        </ul>
       </section>
 
       <section id="raw-payload-section">
         <button id="payload-json-viewer">&aboutTelemetry.showInFirefoxJsonViewer;</button>
         <pre id="raw-payload-data"></pre>
       </section>
 
       <section id="general-data-section">
--- a/toolkit/locales/en-US/chrome/global/aboutTelemetry.dtd
+++ b/toolkit/locales/en-US/chrome/global/aboutTelemetry.dtd
@@ -3,16 +3,32 @@
    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
 
 <!ENTITY aboutTelemetry.pageTitle "Telemetry Data">
 
 <!ENTITY aboutTelemetry.pingDataSource "
 Ping data source:
 ">
 
+<!ENTITY aboutTelemetry.moreInformations "
+Looking for more information?
+">
+
+<!ENTITY aboutTelemetry.firefoxDataDoc "
+The <a>Firefox Data Documentation</a> contains guides about how to work with our data tools.
+">
+
+<!ENTITY aboutTelemetry.telemetryClientDoc "
+The <a>Firefox Telemetry client documentation</a> includes definitions for concepts, API documentation and data references.
+">
+
+<!ENTITY aboutTelemetry.telemetryDashboard "
+The <a>Telemetry dashboards</a> allow you to visualize the data Mozilla receives via Telemetry.
+">
+
 <!ENTITY aboutTelemetry.showCurrentPingData "
 Current ping data
 ">
 
 <!ENTITY aboutTelemetry.showArchivedPingData "
 Archived ping data
 ">