From f97ab7c6cebd4771d9e5271349a1912a6c4ee715 Mon Sep 17 00:00:00 2001 From: iliya Date: Sat, 7 Mar 2026 13:51:34 +0200 Subject: [PATCH] feat: enhance ClaudeLogsSection and TeamDetailView with improved search and layout - Updated ClaudeLogsSection to conditionally render search and filter components based on log availability, enhancing user experience. - Adjusted TeamDetailView layout by adding padding to the action container for better alignment and visual consistency. - Improved handling of empty log states in ClaudeLogsSection to provide clearer user feedback. --- .../components/team/ClaudeLogsSection.tsx | 60 ++++++++++--------- .../components/team/TeamDetailView.tsx | 2 +- 2 files changed, 33 insertions(+), 29 deletions(-) diff --git a/src/renderer/components/team/ClaudeLogsSection.tsx b/src/renderer/components/team/ClaudeLogsSection.tsx index d4f684a7..1616706b 100644 --- a/src/renderer/components/team/ClaudeLogsSection.tsx +++ b/src/renderer/components/team/ClaudeLogsSection.tsx @@ -452,32 +452,36 @@ export const ClaudeLogsSection = ({ teamName }: ClaudeLogsSectionProps): React.J )}
-
- - setSearchQuery(e.target.value)} - className="min-w-0 flex-1 bg-transparent text-xs text-[var(--color-text)] placeholder:text-[var(--color-text-muted)] focus:outline-none" - /> - {searchQuery && ( - - )} -
- + {data.total > 0 ? ( + <> +
+ + setSearchQuery(e.target.value)} + className="min-w-0 flex-1 bg-transparent text-xs text-[var(--color-text)] placeholder:text-[var(--color-text-muted)] focus:outline-none" + /> + {searchQuery && ( + + )} +
+ + + ) : null} {pendingNewCount > 0 && (