// Aba "Fila" do Deploy Engine; importada por deploy_engine.gvb.
component {
resources {
component(name = FilaVazia) {
text(class = empty-state, content = "Nenhum deploy na fila.")
}
}
column(class = "section section--fill") {
row(class = section__head) {
text(class = section__title, content = "NA FILA (@deploy_engine_queued_count)")
button(
if = @deploy_engine_paused,
equals = true,
class = "btn btn--ghost btn--xs",
on_click = queue_toggle_pause,
disabled = @busy_queue_toggle_pause,
text = "Retomar fila",
)
button(
if = @deploy_engine_paused,
not_equals = true,
class = "btn btn--ghost btn--xs",
on_click = queue_toggle_pause,
disabled = @busy_queue_toggle_pause,
text = "Pausar fila",
)
}
column(class = section__body) {
text(
if = @deploy_engine_paused,
equals = true,
class = "banner banner--warn",
content = "Fila pausada — deploys esperam até você retomar.",
)
}
scrollable(direction = vertical, class = section__scroll) {
column(class = u-fill) {
template(
:for-each = deploy_engine_queued,
foreach_fallback = FilaVazia,
var = q,
on_reorder = queue_reorder,
reorder_key = deployment_id,
) {
row(class = table__row) {
text(class = env__drag-handle, drag_handle = true, content = "⋮")
row(class = table__col-svc, spacing = 6) {
text(class = "table__cell table__cell--key", content = "@q.pos.")
TableLink(kind = service, id = @q.service_id, label = @q.service)
}
text(class = "table__cell table__col-start", content = "@q.project")
button(
class = "btn btn--ghost btn--xs",
on_click = queue_promote:@q.deployment_id,
disabled = @busy_queue_promote,
text = "↑ topo",
)
button(
class = env__del,
on_click = queue_cancel:@q.deployment_id,
disabled = @busy_queue_cancel,
text = "✕",
)
}
hr
}
}
}
}
}