C-Dash: Improved improvements in layout 49/37349/1
authorTibor Frank <tifrank@cisco.com>
Wed, 5 Oct 2022 04:50:07 +0000 (06:50 +0200)
committerTibor Frank <tifrank@cisco.com>
Wed, 5 Oct 2022 04:50:07 +0000 (06:50 +0200)
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Change-Id: I50c16f3b5c8e71be6b38d97e9968d8538a1b5264

15 files changed:
csit.infra.dash/app/pal/news/layout.py
csit.infra.dash/app/pal/news/news.py
csit.infra.dash/app/pal/report/layout.py
csit.infra.dash/app/pal/report/report.py
csit.infra.dash/app/pal/routes.py
csit.infra.dash/app/pal/stats/layout.py
csit.infra.dash/app/pal/stats/stats.py
csit.infra.dash/app/pal/templates/index_layout.jinja2
csit.infra.dash/app/pal/templates/news_layout.jinja2
csit.infra.dash/app/pal/templates/report_layout.jinja2
csit.infra.dash/app/pal/templates/stats_layout.jinja2
csit.infra.dash/app/pal/templates/trending_layout.jinja2
csit.infra.dash/app/pal/trending/layout.py
csit.infra.dash/app/pal/trending/trending.py
csit.infra.dash/app/pal/utils/constants.py

index e9ff4dc..dfe6eba 100644 (file)
@@ -324,7 +324,7 @@ class Layout:
             children=[
                 dbc.NavItem(
                     dbc.NavLink(
-                        "Continuous Performance News",
+                        C.NEWS_TITLE,
                         disabled=True,
                         external_link=True,
                         href="#"
index a0d05f1..aa8cd5f 100644 (file)
@@ -31,7 +31,8 @@ def init_news(server):
     dash_app = dash.Dash(
         server=server,
         routes_pathname_prefix=C.NEWS_ROUTES_PATHNAME_PREFIX,
-        external_stylesheets=C.EXTERNAL_STYLESHEETS
+        external_stylesheets=C.EXTERNAL_STYLESHEETS,
+        title=C.NEWS_TITLE
     )
 
     layout = Layout(
index 9397870..ec33147 100644 (file)
@@ -291,7 +291,7 @@ class Layout:
             children=[
                 dbc.NavItem(
                     dbc.NavLink(
-                        "Iterative Test Runs",
+                        C.REPORT_TITLE,
                         disabled=True,
                         external_link=True,
                         href="#"
index e456573..573c9a9 100644 (file)
@@ -31,7 +31,8 @@ def init_report(server, releases):
     dash_app = dash.Dash(
         server=server,
         routes_pathname_prefix=C.REPORT_ROUTES_PATHNAME_PREFIX,
-        external_stylesheets=C.EXTERNAL_STYLESHEETS
+        external_stylesheets=C.EXTERNAL_STYLESHEETS,
+        title=C.REPORT_TITLE
     )
 
     layout = Layout(
index 59af748..8a47c04 100644 (file)
@@ -28,5 +28,10 @@ def home():
         C.MAIN_HTML_LAYOUT_FILE,
         title=C.TITLE,
         description=C.DESCRIPTION,
+        copyright=C.COPYRIGHT,
+        trending_title=C.TREND_TITLE,
+        report_title=C.REPORT_TITLE,
+        stats_title=C.STATS_TITLE,
+        news_title=C.NEWS_TITLE,
         template=C.TEMPLATE
     )
index 2f1b344..8c86600 100644 (file)
@@ -301,7 +301,7 @@ class Layout:
             children=[
                 dbc.NavItem(
                     dbc.NavLink(
-                        "Continuous Performance Statistics",
+                        C.STATS_TITLE,
                         disabled=True,
                         external_link=True,
                         href="#"
index 5b31fac..56b36ab 100644 (file)
@@ -31,7 +31,8 @@ def init_stats(server, time_period=None):
     dash_app = dash.Dash(
         server=server,
         routes_pathname_prefix=C.STATS_ROUTES_PATHNAME_PREFIX,
-        external_stylesheets=C.EXTERNAL_STYLESHEETS
+        external_stylesheets=C.EXTERNAL_STYLESHEETS,
+        title=C.STATS_TITLE
     )
 
     layout = Layout(
index 5a5f876..17f9471 100644 (file)
@@ -5,7 +5,7 @@
 
   <header class="mb-auto">
     <div>
-      <h3 class="float-md-start mb-0 text-white">CDash</h3>
+      <h3 class="float-md-start mb-0 text-white">CSIT-Dash</h3>
     </div>
   </header>
 
     <h1 class="text-white">{{ title }}</h1>
     <p class="lead">{{ description }}</p>
     <p class="lead">
-      <a href="/trending/" class="btn btn-primary fw-bold">Performance Trending</a>
+      <a href="/trending/" class="btn btn-primary fw-bold">{{ trending_title }}</a>
     </p>
     <p class="lead">
-      <a href="/report/" class="btn btn-primary fw-bold">Iterative Test Runs</a>
+      <a href="/report/" class="btn btn-primary fw-bold">{{ report_title }}</a>
     </p>
     <p class="lead">
-      <a href="/stats/" class="btn btn-primary fw-bold">Job Statistics</a>
+      <a href="/stats/" class="btn btn-primary fw-bold">{{ stats_title }}</a>
     </p>
     <p class="lead">
-      <a href="/news/" class="btn btn-primary fw-bold">News</a>
+      <a href="/news/" class="btn btn-primary fw-bold">{{ news_title }}</a>
     </p>
   </main>
 
   <footer class="mt-auto text-white-50">
-    <p>Copyright © 2016-2022 <a href="https://fd.io" class="text-white">The Fast Data Project</a>, a series of LF Projects, LLC.</p>
+    <p>{{ copyright }}</p>
   </footer>
 </div>
 {% endblock %}
index c3ac89f..1275a99 100644 (file)
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-  <title>Continuous Performance News</title>
+  <title>{%title%}</title>
   {%metas%}
   {%favicon%}
   {%css%}
index c535d37..1275a99 100644 (file)
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-  <title>Iterative Test Runs</title>
+  <title>{%title%}</title>
   {%metas%}
   {%favicon%}
   {%css%}
index dae6f00..1275a99 100644 (file)
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-  <title>Continuous Performance Statistics</title>
+  <title>{%title%}</title>
   {%metas%}
   {%favicon%}
   {%css%}
index 4881397..1275a99 100644 (file)
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-  <title>Continuous Performance Trending</title>
+  <title>{%title%}</title>
   {%metas%}
   {%favicon%}
   {%css%}
index 9b1965f..14493ff 100644 (file)
@@ -298,7 +298,7 @@ class Layout:
             children=[
                 dbc.NavItem(
                     dbc.NavLink(
-                        "Continuous Performance Trending",
+                        C.TREND_TITLE,
                         disabled=True,
                         external_link=True,
                         href="#"
index af1dc79..1f96abf 100644 (file)
@@ -31,7 +31,8 @@ def init_trending(server, time_period=None):
     dash_app = dash.Dash(
         server=server,
         routes_pathname_prefix=C.TREND_ROUTES_PATHNAME_PREFIX,
-        external_stylesheets=C.EXTERNAL_STYLESHEETS
+        external_stylesheets=C.EXTERNAL_STYLESHEETS,
+        title=C.TREND_TITLE
     )
 
     layout = Layout(
index 73afb4c..8807fec 100644 (file)
@@ -35,11 +35,18 @@ class Constants:
     LOG_DATE_FORMAT = "%Y/%m/%d %H:%M:%S"
 
     # The application title.
-    TITLE = "FD.io CDash"
-    BRAND = "CDash"
+    TITLE = "FD.io CSIT"
+    BRAND = "CSIT-Dash"
 
     # The application description.
-    DESCRIPTION = "Performance Dashboard"
+    DESCRIPTION = 'Performance Dashboard "CSIT-Dash"'
+
+    # Copyright statement.
+    COPYRIGHT = (
+        'Copyright © 2016-2022 '
+        '<a href="https://fd.io" class="text-white">The Fast Data Project</a>, '
+        'a series of LF Projects, LLC.'
+    )
 
     # External stylesheets.
     EXTERNAL_STYLESHEETS = ["/static/dist/css/bootstrap.css", ]
@@ -73,7 +80,7 @@ class Constants:
     # List of releases used for iterative data processing.
     # The releases MUST be in the order from the current (newest) to the last
     # (oldest).
-    RELEASES = ["csit2206", "csit2202", ]
+    RELEASES = ["csit2210", "csit2206", "csit2202", ]
 
     ############################################################################
     # General, application wide, layout affecting constants.
@@ -248,6 +255,9 @@ class Constants:
     ############################################################################
     # News.
 
+    # The title.
+    NEWS_TITLE = "CI TEST FAILURE AND ANOMALY STATISTICS"
+
     # The pathname prefix for the application.
     NEWS_ROUTES_PATHNAME_PREFIX = "/news/"
 
@@ -266,6 +276,9 @@ class Constants:
     ############################################################################
     # Report.
 
+    # The title.
+    REPORT_TITLE = "PER RELEASE PERFORMANCE RESULTS"
+
     # The pathname prefix for the application.
     REPORT_ROUTES_PATHNAME_PREFIX = "/report/"
 
@@ -282,6 +295,9 @@ class Constants:
     ############################################################################
     # Statistics.
 
+    # The title.
+    STATS_TITLE = "CI JOB EXECUTION STATISTICS"
+
     # The pathname prefix for the application.
     STATS_ROUTES_PATHNAME_PREFIX = "/stats/"
 
@@ -301,6 +317,9 @@ class Constants:
     ############################################################################
     # Trending.
 
+    # The title.
+    TREND_TITLE = "PERFORMANCE TRENDING (DAILY, WEEKLY)"
+
     # The pathname prefix for the application.
     TREND_ROUTES_PATHNAME_PREFIX = "/trending/"