Rethinking the View Layer with Components
summary
GitHub reworks ERB into a Ruby class pattern called ActionView Component that renders templates, captures block content, and uses ActiveModel validations to enforce required args (title, color). Tests move from ~6 seconds per controller-rendered case to over 240 times faster unit tests (~25 ms), SimpleCov now reports coverage for view logic, and components ship to production (repository topics and language badges) while keeping progressive enhancement with minimal JS. Primer UI tokens become reusable components.
AI-written summary · about
chapters (15)
- 0:00Start
- 0:47Existing Ideas
- 3:26Browser Support
- 4:04Progressive Enhancement
- 5:06Primer Resources, tooling, and design quidelines for building interfaces with GitHub's design system
- 8:17Unit Testing
- 10:31Data Flow
- 17:37Implicit Arguments
- 26:40missing keyword: title
- 31:21Implementation
- 31:42Reusability
- 31:55Performance
- 32:28Creativity
- 32:59Standards
- 33:10Code Coverage








