diff --git a/src/handlers.rs b/src/handlers.rs index d7cd436..a0cc952 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -216,7 +216,7 @@ pub async fn report_details_handler( } async fn get_processed_reports() -> Result, (StatusCode, String)> { - let response = reqwest::get("https://alatreon.org/slimes?limit=1000") + let response = reqwest::get("https://alatreon.org/slimes?limit=10000") .await .map_err(|e| (StatusCode::INTERNAL_SERVER_ERROR, e.to_string()))?; diff --git a/templates/_layout.html b/templates/_layout.html index 748c72e..faad9e1 100644 --- a/templates/_layout.html +++ b/templates/_layout.html @@ -227,7 +227,7 @@ } @media (max-width: 640px) { - .nav-links { display: none; } + .nav-left { gap: 1rem; } } diff --git a/templates/analytics.html b/templates/analytics.html index 8f8b398..7dcacf3 100644 --- a/templates/analytics.html +++ b/templates/analytics.html @@ -1,11 +1,37 @@ {% extends "_layout.html" %} +{% macro chart_card(id, title) %} +
+ +

{{ title }}

+ +
+{% endmacro %} + {% block content %}

Benchmark Analytics

Insights from {{ data.total_reports }} benchmarks

+ +
RAM Efficiency @@ -18,150 +44,131 @@ Avg Score per Thread
-
-

Score Distribution

- -
- -
-

Reports by Operating System

- -
- -
-

Avg Score by Operating System

- -
- -
-

Highest Score by Operating System

- -
- -
-

Lowest Score by Operating System

- -
+ {{ self::chart_card(id="distChart", title="Score Distribution") }} + {{ self::chart_card(id="osCountChart", title="Reports by Operating System") }} + {{ self::chart_card(id="osChart", title="Avg Score by Operating System") }} + {{ self::chart_card(id="osMaxChart", title="Highest Score by Operating System") }} + {{ self::chart_card(id="osMinChart", title="Lowest Score by Operating System") }}
{% endblock %}