tycono 0.1.96-beta.25 → 0.1.96-beta.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -119,14 +119,6 @@ export const PanelMode: React.FC<PanelModeProps> = ({
|
|
|
119
119
|
? waves.findIndex(w => w.waveId === focusedWaveId) + 1
|
|
120
120
|
: 0;
|
|
121
121
|
|
|
122
|
-
// Count sessions per wave for summary
|
|
123
|
-
const waveSessionCounts = new Map<string, number>();
|
|
124
|
-
for (const s of activeSessions) {
|
|
125
|
-
if (s.waveId) {
|
|
126
|
-
waveSessionCounts.set(s.waveId, (waveSessionCounts.get(s.waveId) ?? 0) + 1);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
122
|
return (
|
|
131
123
|
<Box flexDirection="column" flexGrow={1}>
|
|
132
124
|
{/* Main content: Org Tree left | Detail + Stream right */}
|
|
@@ -139,37 +131,6 @@ export const PanelMode: React.FC<PanelModeProps> = ({
|
|
|
139
131
|
selectedIndex={selectedRoleIndex}
|
|
140
132
|
flatRoles={flatRoles}
|
|
141
133
|
/>
|
|
142
|
-
|
|
143
|
-
{/* Resource Summary — below org tree */}
|
|
144
|
-
<Box flexDirection="column" paddingX={1} marginTop={1}>
|
|
145
|
-
<Text color="gray">{'\u2500'.repeat(24)}</Text>
|
|
146
|
-
|
|
147
|
-
{/* Waves */}
|
|
148
|
-
{waves.length > 0 && (
|
|
149
|
-
<Box flexDirection="column">
|
|
150
|
-
{waves.map((w, i) => {
|
|
151
|
-
const isFocused = w.waveId === focusedWaveId;
|
|
152
|
-
const count = waveSessionCounts.get(w.waveId) ?? 0;
|
|
153
|
-
return (
|
|
154
|
-
<Box key={w.waveId}>
|
|
155
|
-
<Text color={isFocused ? 'green' : 'gray'}>
|
|
156
|
-
{isFocused ? '\u25B8' : ' '} W{i + 1}
|
|
157
|
-
</Text>
|
|
158
|
-
<Text color="gray"> {count > 0 ? `${count} agents` : 'idle'}</Text>
|
|
159
|
-
</Box>
|
|
160
|
-
);
|
|
161
|
-
})}
|
|
162
|
-
</Box>
|
|
163
|
-
)}
|
|
164
|
-
|
|
165
|
-
{/* Port summary */}
|
|
166
|
-
{portSummary.totalPorts > 0 && (
|
|
167
|
-
<Box marginTop={0}>
|
|
168
|
-
<Text color="blue">{portSummary.totalPorts} ports</Text>
|
|
169
|
-
<Text color="gray"> allocated</Text>
|
|
170
|
-
</Box>
|
|
171
|
-
)}
|
|
172
|
-
</Box>
|
|
173
134
|
</Box>
|
|
174
135
|
|
|
175
136
|
{/* Vertical separator — memoized to avoid regenerating on every render */}
|