From 9cfbed6f38c0e79cccae2d2ab9304e50f7d4e813 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Tue, 2 Jun 2026 10:39:11 +0200 Subject: [PATCH 1/4] [IMP] runbot: add an expand collapse button on freeze page --- runbot/static/src/js/runbot.js | 15 +++++++++++++++ runbot/templates/bundles_by_tag.xml | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/runbot/static/src/js/runbot.js b/runbot/static/src/js/runbot.js index 76b2a129b..d9831be28 100644 --- a/runbot/static/src/js/runbot.js +++ b/runbot/static/src/js/runbot.js @@ -54,3 +54,18 @@ document.addEventListener('DOMContentLoaded', function() { }); } }); + +// Expand/collapse all team sections at once. +document.addEventListener('DOMContentLoaded', function() { + const expandBtn = document.getElementById('toggleTeamsButton'); + if (expandBtn) { + const bundleGrid = document.querySelector('.o_team_bundle_grid'); + const container = bundleGrid.closest('.container-fluid'); + expandBtn.addEventListener('click', function () { + const details = container.querySelectorAll('details'); + const allOpen = Array.from(details).every(d => d.open); + details.forEach(d => d.open = !allOpen); + this.textContent = allOpen ? 'Expand all' : 'Collapse all'; + }); + } +}); diff --git a/runbot/templates/bundles_by_tag.xml b/runbot/templates/bundles_by_tag.xml index e7a7834d9..9b2b3ca9d 100644 --- a/runbot/templates/bundles_by_tag.xml +++ b/runbot/templates/bundles_by_tag.xml @@ -33,10 +33,11 @@

+

-
+