Files
cursor__plugins/plugins/analytics-visualization/scripts/validate-charts.sh
Cursor Agent 0877f223a0 Add analytics-visualization plugin for Highcharts-based dashboards
- Add complete plugin structure following boilerplate pattern
- Include Nord-inspired color palette with semantic color mappings
- Add 6 chart component templates: Pie, Bar, StackedArea, Comparison, DualAxis, Heatmap
- Include shared utilities for data transformation and filtering
- Add Highcharts best practices and accessibility rules
- Add chart-builder agent for generating visualizations
- Include comprehensive skill documentation with usage examples

Co-authored-by: kniparko <kniparko@anysphere.co>
2026-01-23 02:20:23 +00:00

18 lines
716 B
Bash

#!/bin/bash
# Validate chart files follow design system patterns
# This is a placeholder script - customize for your needs
echo "Validating chart components..."
# Check for hardcoded colors (should use COLORS from chart-constants)
if grep -r "color: \"#" --include="*.tsx" --include="*.ts" ./src/components/charts 2>/dev/null; then
echo "Warning: Found hardcoded colors. Consider using COLORS from chart-constants.ts"
fi
# Check for animation: true (should be false in production)
if grep -r "animation: true" --include="*.tsx" --include="*.ts" ./src/components/charts 2>/dev/null; then
echo "Warning: Found animation: true. Consider disabling animation for production."
fi
echo "Chart validation complete."