UI enhancemnts

This commit is contained in:
saikiranvella
2026-06-09 19:34:31 -04:00
parent 5c8cd8935a
commit 662a717916
55 changed files with 6226 additions and 465 deletions
+3
View File
@@ -9,6 +9,7 @@
*/
export function verdictShort(label: string | null | undefined): string {
if (!label) return '—';
if (label.includes('No Data')) return 'No Data';
if (label.includes('High Conviction')) return 'Strong Buy';
if (label.includes('Speculative')) return 'Speculative';
if (label.includes('Momentum')) return 'Momentum';
@@ -34,6 +35,8 @@ export function vClass(
label: string | null | undefined,
): 'green' | 'yellow' | 'red' | 'blue' | 'gray' {
if (!label) return 'gray';
// Insufficient data is unknown, not a neutral opinion — render gray
if (label.includes('No Data')) return 'gray';
if (
label.startsWith('🟢') ||
label.includes('High Conviction') ||