From ad8ab59086fa8aeff64ab613b443b7f54eb028a3 Mon Sep 17 00:00:00 2001 From: "juancarlos.cavero" Date: Sat, 29 Aug 2026 03:00:13 +0200 Subject: [PATCH] fix(dashboard): the score badge has to say what it is MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It shipped as a bare coloured number next to "Clip 4", which on a video thumbnail reads as a duration, a rank, a position — anything. The user's reaction to the deployed version was "sale el número pero no se entiende qué es", which is the whole feature failing to land. Now it names itself and carries its scale: a trend icon, the word "viral", the number, "/100". Only the number takes the traffic-light colour, so the label stays quiet and the value is what the eye lands on. Claude-Session: https://claude.ai/code/session_01KeQYCfUX2E9Q2fDgZMKEaJ --- dashboard/src/components/ResultCard.jsx | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/dashboard/src/components/ResultCard.jsx b/dashboard/src/components/ResultCard.jsx index db51cac..1f114d0 100644 --- a/dashboard/src/components/ResultCard.jsx +++ b/dashboard/src/components/ResultCard.jsx @@ -1,5 +1,5 @@ import React, { useState, useEffect } from 'react'; -import { Download, Share2, Instagram, Youtube, Video, AlertCircle, Loader2, Copy, Check, Wand2, Type, Calendar, Languages, FileText, Link2, Scissors, Crosshair } from 'lucide-react'; +import { Download, Share2, Instagram, Youtube, Video, AlertCircle, Loader2, Copy, Check, Wand2, Type, Calendar, Languages, FileText, Link2, Scissors, Crosshair, TrendingUp } from 'lucide-react'; import { getApiUrl } from '../config'; import { apiFetch } from '../lib/api'; import SubtitleModal from './SubtitleModal'; @@ -778,16 +778,24 @@ export default function ResultCard({ clip, index, jobId, durable, uploadPostKey, Clip {index + 1} + {/* A bare number on a thumbnail reads as a duration, a + position, anything — it has to name itself and carry + its scale, or it is decoration. */} {Number.isFinite(clip.predicted_score) && ( + + viral + = 80 ? 'text-ok' : clip.predicted_score >= 65 ? 'text-brass' - : 'text-muted' - }`} - title="how viral the ai predicts this clip is, 0-100" - > - {clip.predicted_score} + : 'text-ink2' + }> + {clip.predicted_score} + + /100 )}