From 7c176f75735d662a4bcaecbf9355dc990cc723b6 Mon Sep 17 00:00:00 2001 From: Juan Denis Date: Sun, 8 Nov 2026 18:27:28 -0500 Subject: [PATCH] feat(ui): compact Agent fleet Refresh on phones Make the Agent fleet Refresh a quiet icon-only button and, on phones and tablets, let lone compact top-bar actions share the group tabs row instead of taking a full row of their own. --- frontend/src/pages/AgentFleet.jsx | 17 +++++++++++------ .../src/styles/components/_design-system.scss | 13 +++++++++++++ 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/frontend/src/pages/AgentFleet.jsx b/frontend/src/pages/AgentFleet.jsx index 57394581..43d1b56b 100644 --- a/frontend/src/pages/AgentFleet.jsx +++ b/frontend/src/pages/AgentFleet.jsx @@ -106,12 +106,17 @@ const AgentFleet = () => { // Publish the view switcher + Refresh to the shared tab-group top bar; // re-registers on the values the node reads so spinner/counts stay in sync. useTopbarActions(() => ( - <> - - + ), [loading, activeTab, queuedCommands.length, pendingServers.length]); diff --git a/frontend/src/styles/components/_design-system.scss b/frontend/src/styles/components/_design-system.scss index caf1d9d0..a683d343 100644 --- a/frontend/src/styles/components/_design-system.scss +++ b/frontend/src/styles/components/_design-system.scss @@ -1515,6 +1515,19 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet'); &::-webkit-scrollbar { display: none; } } &__tabs { order: 3; width: 100%; margin-left: 0; justify-content: flex-start; } + + // Only compact icon actions (e.g. a lone Refresh): share the tabs' row, + // pinned right, instead of costing a full row of their own. + &__actions:has(> .sk-topbar__action--compact):not(:has(> :not(.sk-topbar__action--compact, .sk-topbar__chrome))) { + order: 2; + width: auto; + margin-left: auto; + } + &:has(.sk-topbar__actions > .sk-topbar__action--compact):not(:has(.sk-topbar__actions > :not(.sk-topbar__action--compact, .sk-topbar__chrome))) &__tabs { + order: 1; + width: auto; + flex: 1 1 0; + } } // Phones: the one page-header rule. The title takes the row beside its icon