Module: Flightdeck::Toasts

Included in:
Jobs::ActionsController, ProcessesController, QueuesController, RecurringTasksController
Defined in:
app/controllers/concerns/flightdeck/toasts.rb

Overview

Shared response shape for every mutating action: a toast plus a re-rendered polling frame over Turbo Streams, or a redirect carrying the same sentence in the flash when Turbo is not in play.

The frame is described as data — { id:, url:, partial:, locals: } — and rendered by the one shared template, so every controller's stream response is the same markup by construction.