~/talk

Refactoring Volatile Views into Cohesive Components

Talkat XO Ruby Atlanta 2025 · on Saturday, 2025-09-13· [frontend-architecture, ruby]
slides:none on file

Views become volatile and are refactored into concrete components using the ViewComponent gem; a messy tab bar that changed 7 times is rebuilt as a bar component plus three concrete tab types with polymorphic slots (link, disabled, drop‑down). The demo implements counters with a threshold 15 tasks, a pro‑plan disabled tab with tooltip, a searchable extra area, collection rendering via with_collection, and component previews so the refactor actually simplifies testing and reuse.

AI-written summary · about

  1. 0:00Introduction
  2. 2:04Volatile views and UI elements
  3. 5:16View components as solution
  4. 14:12Tab nav complexity case study
  5. 20:12Refactoring tab navigation bar
  6. 23:30Why view components
  7. 25:36Component extraction steps
  8. 26:39Resources and alternatives
  9. 27:21Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.