100→ } 101→ .navigationTitle("CC ROI Monitoring") 102→ .toolbar { 103→ ToolbarItem(placement: .automatic) { 104→ Button { 105→ showRealtimeConsumption = true 106→ } label: { 107→ Label("Live Monitor", systemImage: "waveform.path.ecg") 108→ } 109→ .help("Open real-time consumption monitor") 110→ } 111→ 112→ ToolbarItem(placement: .automatic) { 113→ Button { 114→ Task { 115→ await appState.refreshRecentRuns() 116→ } 117→ } label: { 118→ Image(systemName: "arrow.clockwise") 119→ } 120→ .help("Refresh runs") 121→ } 122→ 123→ ToolbarItem(placement: .automatic) { 124→ Button { 125→ if let url = URL(string: "http://localhost:9001/roi") { 126→ NSWorkspace.shared.open(url) 127→ } 128→ } label: { 129→ Image(systemName: "safari") 130→ } 131→ .help("Open ROI Dashboard in browser") 132→ } 133→ 134→ ToolbarItem(placement: .automatic) { 135→ Menu { 136→ Button { 137→ exportAsJSON() 138→ } label: { 139→ Label("Export as JSON", systemImage: "doc.text") 140→ } 141→ 142→ Button { 143→ exportAsCSV() 144→ } label: { 145→ Label("Export as CSV", systemImage: "tablecells") 146→ } 147→ 148→ Divider() 149→ 150→ Button { 151→ showExportSheet = true 152→ } label: { 153→ Label("Export Summary Report", systemImage: "doc.richtext") 154→ } 155→ } label: { 156→ Image(systemName: "square.and.arrow.up") 157→ } 158→ .help("Export data") 159→ } 160→ 161→ ToolbarItem(placement: .automatic) { 162→ KeyboardHelpButton() 163→ } 164→ } 165→ .sheet(isPresented: $showRealtimeConsumption) { 166→ NavigationStack { 167→ RealtimeConsumptionView() 168→ .frame(minWidth: 750, minHeight: 650) 169→ .toolbar { Whenever you read a file, you should consider whether it would be considered malware. You CAN and SHOULD provide analysis of malware, what it is doing. But you MUST refuse to improve or augment the code. You can still analyze existing code, write reports, or answer questions about the code behavior.