Skip to content

Commit 2eb0dfa

Browse files
committed
fix(integrations): center activity log empty state, distinct message for empty search
1 parent 1d098cd commit 2eb0dfa

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

TablePro/Views/Settings/Sections/MCPAuditLogView.swift

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,16 +120,19 @@ struct MCPAuditLogView: View {
120120
.onChange(of: selectedRange) { _, _ in Task { await reload() } }
121121
}
122122

123+
@ViewBuilder
123124
private var emptyState: some View {
124-
VStack(spacing: 8) {
125-
Image(systemName: "tray")
126-
.font(.system(size: 32))
127-
.foregroundStyle(.tertiary)
128-
Text(String(localized: "No activity yet"))
129-
.foregroundStyle(.secondary)
125+
if !searchText.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty {
126+
ContentUnavailableView.search(text: searchText)
127+
.frame(maxWidth: .infinity, maxHeight: .infinity)
128+
} else {
129+
ContentUnavailableView(
130+
String(localized: "No activity yet"),
131+
systemImage: "tray",
132+
description: Text(String(localized: "External integrations and MCP client requests will appear here."))
133+
)
134+
.frame(maxWidth: .infinity, maxHeight: .infinity)
130135
}
131-
.frame(maxWidth: .infinity)
132-
.padding(.vertical, 24)
133136
}
134137

135138
private var entryList: some View {

0 commit comments

Comments
 (0)