From 4f413a1b1199be66bd629e0b48d7d651b64686aa Mon Sep 17 00:00:00 2001 From: Ken Johnson Date: Sun, 7 Dec 2025 03:01:18 -0500 Subject: [PATCH] Replace Google Charts with modern CSS timeline visualization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removes problematic Google Charts dependency and creates a cleaner, more reliable performance trend visualization. Changes: - Remove all Google Charts JavaScript code (100+ lines) - Replace chart with visual timeline showing each review chronologically - Each timeline item displays: * Date at top, reviewer name at bottom * Colored circular badge with score number (green=5, blue=4, yellow=3, red<3) * Horizontal progress bar showing score percentage with comments - Add smooth animations: fade-in on load, scale on dot hover, slide on bar hover - Color-coded by score for instant visual feedback - Fully responsive with mobile layout - No external dependencies - pure CSS solution - Add empty state with graph icon if no performance data The timeline provides better visual hierarchy and eliminates the blank space issue caused by Google Charts loading failures. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/views/performance/index.html.erb | 232 ++++++++++++++------------- 1 file changed, 124 insertions(+), 108 deletions(-) diff --git a/app/views/performance/index.html.erb b/app/views/performance/index.html.erb index 51ac658..2baf46b 100644 --- a/app/views/performance/index.html.erb +++ b/app/views/performance/index.html.erb @@ -86,7 +86,7 @@ - +
@@ -97,7 +97,48 @@

Your performance scores over time

-
+ <% if @perf.any? %> +
+ <% @perf.each_with_index do |p, index| %> + <% + score_percentage = (p.score.to_f / 5.0) * 100 + score_color = case p.score + when 5 then '#1e825e' + when 4 then '#579da9' + when 3 then '#ffb703' + else '#e26666' + end + %> +
+
+
+ <%= p.date_submitted %> +
+
+ <%= p.score %> +
+
+ <%= p.reviewer_name %> +
+
+
+
+
+ <%= p.score %> / 5 - <%= p.comments %> +
+
+
+
+ <% end %> +
+ <% else %> +
+ +

No performance data to display

+
+ <% end %>
@@ -187,120 +228,18 @@