Skip to content

🀯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

πŸ’„ style(goal): glow running batch squares instead of shrinking them (#21801)

Arvin Xu611aea6d5358
diff --git a/src/features/AgentGoals/ProcessControl/Graph/BatchGroups.tsx b/src/features/AgentGoals/ProcessControl/Graph/BatchGroups.tsx
index 72dd8c272c6..4e9438f842e 100644
--- a/src/features/AgentGoals/ProcessControl/Graph/BatchGroups.tsx
+++ b/src/features/AgentGoals/ProcessControl/Graph/BatchGroups.tsx
@@ -57,7 +57,7 @@ import {
* The expanded batch, drawn the way it is followed and with no frame of its
* own: the first round's trials (an experiment probe) as task cards, the roster as waves of squares, and a
* small re-dispatch group per re-opened round. Squares carry the canonical
- * execution states β€” grey not run, amber running (breathing square), blue needs a
+ * execution states β€” grey not run, amber running (glowing square), blue needs a
* person, green done, faded superseded.
*/
@@ -77,19 +77,19 @@ export const CELL_VISUAL: Record<BatchCellState, { color: string; icon: LucideIc
};
const styles = createStaticStyles(({ css }) => ({
- breathe: css`
- animation: goal-batch-breathe 1.6s ease-in-out infinite;
+ glow: css`
+ animation: goal-batch-glow 1.6s ease-in-out infinite;
- @keyframes goal-batch-breathe {
+ @keyframes goal-batch-glow {
0%,
100% {
- transform: scale(1);
- opacity: 1;
+ box-shadow: 0 0 0 0 color-mix(in srgb, ${cssVar.colorWarning} 0%, transparent);
}
50% {
- transform: scale(0.86);
- opacity: 0.42;
+ box-shadow:
+ 0 0 0 2px color-mix(in srgb, ${cssVar.colorWarning} 28%, transparent),
+ 0 0 8px 2px color-mix(in srgb, ${cssVar.colorWarning} 55%, transparent);
}
}
@@ -477,7 +477,7 @@ export const Square = memo<{
'nodrag',
styles.square,
nodeId && onSelect && styles.squareLink,
- state === 'running' && styles.breathe,
+ state === 'running' && styles.glow,
)}
onClick={(event) => {
event.stopPropagation();