data-to-ui
Data to UI
Overview
Patterns for transforming static data into type-safe React components. This skill covers JSON → TypeScript → React pipelines with emphasis on semantic color systems, derived types, and formatting utilities.
Workflows
1. JSON Schema → TypeScript Types
- Read JSON schema/data structure
- Create base TypeScript interfaces matching JSON shape
- Export union types for enums (e.g.,
type Severity = 'safety_hazard' | 'repair_needed') - Use optional properties (
?) for nullable/missing fields - Add JSDoc comments for complex types
2. Derived Types for UI
- Create composed types extending base types with
extends - Use
Pick<T, K>andOmit<T, K>for component props - Build intersection types with
&for joined data (e.g.,FindingWithAsset) - Create aggregate interfaces for statistics/summaries
More from nguyenhuuca/assessment
compliance
Ensure regulatory compliance. Use when implementing GDPR, HIPAA, PCI-DSS, or SOC2 requirements. Covers compliance frameworks and controls.
19requirements-analysis
Analyze and refine product requirements. Use when clarifying scope, identifying gaps, or validating requirements. Covers requirement types and analysis techniques.
16identity-access
Implement identity and access management. Use when designing authentication, authorization, or user management. Covers OAuth2, OIDC, and RBAC.
13security-review
Conduct security code reviews. Use when reviewing code for vulnerabilities, assessing security posture, or auditing applications. Covers security review checklist.
13execution-roadmaps
Create execution roadmaps for projects. Use when planning multi-phase projects or feature rollouts. Covers phased delivery and milestone planning.
12cloud-native-patterns
Apply cloud-native architecture patterns. Use when designing for scalability, resilience, or cloud deployment. Covers microservices, containers, and distributed systems.
12