Page header

Title row, filters row and tabs row, the same on every page.

Helper
page_header(title:, subtitle: nil) do |header|
  header.with_action { … }   # one per action, primary last
  header.with_filters { … }  # search_input, multi_select, period_picker
  header.with_tabs(label:) do |tabs|
    tabs.with_tab(label, href: nil, count: nil, selected: false)
    tabs.with_action { … }
  end
end

Keep the same structure on every page so titles, actions and filters never move between views. The subtitle is one line of live context (last sync, today's date). Actions go right, secondary first and the primary last. Filters start with the search field; pickers follow at their natural width.

Notas

Última sincronização: há 5 minutos

Slots

SlotWhat goes in it
actionOne per action (button, icon_button, popover…), in order
filtersThe filters row: search_input, multi_select, period_picker
tabsA tabs component: with_tab(label, href:, count:, selected:) and with_action