Skip to content

Commit ffd4e09

Browse files
committed
fix: show total volume in services summary, reorder statusbar segments
- Add total volume (evt/hr) to services drawer headline - Move waste before PII in statusbar compact view (services → waste → PII)
1 parent c0d1667 commit ffd4e09

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

‎internal/app/statusbar/services/services.go‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,11 @@ func (m *Model) renderSummary() string {
198198
parts = append(parts, evtLabel)
199199
}
200200

201+
// Total volume.
202+
if s.TotalVolumePerHour > 0 {
203+
parts = append(parts, format.Volume(s.TotalVolumePerHour)+" evt/hr")
204+
}
205+
201206
// Total cost from account summary (pre-aggregated by control plane).
202207
if s.TotalCostPerHour != nil {
203208
if cost := format.YearlyCost(*s.TotalCostPerHour); cost != "$0/yr" {

‎internal/app/statusbar/statusbar.go‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -220,18 +220,18 @@ func (m *Model) View() string {
220220
segments = append(segments, servicesView)
221221
}
222222

223-
// 3. PII leakage (red dot + count when findings exist)
224-
piiView := m.piiStatus.CompactView()
225-
if piiView != "" {
226-
segments = append(segments, piiView)
227-
}
228-
229-
// 4. Waste status (pending count, estimated/observed savings)
223+
// 3. Waste status (pending count, estimated/observed savings)
230224
wasteView := m.wasteStatus.CompactView()
231225
if wasteView != "" {
232226
segments = append(segments, wasteView)
233227
}
234228

229+
// 4. PII leakage (red dot + count when findings exist)
230+
piiView := m.piiStatus.CompactView()
231+
if piiView != "" {
232+
segments = append(segments, piiView)
233+
}
234+
235235
// Calculate what fits
236236
baseContent := strings.Join(segments, sep)
237237
baseWidth := lipgloss.Width(baseContent)

0 commit comments

Comments
 (0)