~/talk

Component Driven UI with ViewComponent

Talkat wroc_love.rb 2024 · 2024-04-12..04-14· [component-design, ruby-on-rails]
slides:none on file

Builds a Rails admin for facility management using the ViewComponent gem plus Tailwind and optional Stimulus, removing most JS and keeping domain UIs server-rendered. Implements reusable components: stats, filter form (handles 20 filters with a builder pattern), page header, and a table component with column DSL and record linking. Uses Lookbook previews and Capybara smoke tests instead of heavy unit tests, a fetch_with_fallback color hack to avoid prod errors, and keeps components small and testable.

AI-written summary · about

  1. 0:00Introduction
  2. 1:52Why ViewComponent
  3. 5:48When to use ViewComponent
  4. 11:11Real code example
  5. 26:42Table component deep dive
  6. 34:35Q&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.