File tree Expand file tree Collapse file tree
TablePro/Views/Settings/Sections Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments