From c29af5be117ada20388d9f9ccd04afc7c1a3abdf Mon Sep 17 00:00:00 2001 From: cyrus Date: Wed, 28 Jan 2026 19:18:05 +0530 Subject: [PATCH] Update connections panel styling to match main settings modal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Updated SettingsHeader with back button support and custom titles - Redesigned ConnectionsPanel to use consistent styling with SettingsHome - Replaced glass morphism layout with standard settings modal structure - Applied matching colors, fonts, borders, and spacing throughout - Maintained all existing functionality while improving visual consistency 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../settings/components/SettingsHeader.tsx | 33 ++++- .../settings/panels/ConnectionsPanel.tsx | 139 ++++++++++-------- 2 files changed, 108 insertions(+), 64 deletions(-) diff --git a/src/components/settings/components/SettingsHeader.tsx b/src/components/settings/components/SettingsHeader.tsx index 00040d42c..3a280832f 100644 --- a/src/components/settings/components/SettingsHeader.tsx +++ b/src/components/settings/components/SettingsHeader.tsx @@ -2,18 +2,41 @@ import { useSettingsNavigation } from '../hooks/useSettingsNavigation'; interface SettingsHeaderProps { className?: string; + title?: string; + showBackButton?: boolean; + onBack?: () => void; } -const SettingsHeader = ({ className = '' }: SettingsHeaderProps) => { +const SettingsHeader = ({ + className = '', + title = 'Settings', + showBackButton = false, + onBack +}: SettingsHeaderProps) => { const { closeSettings } = useSettingsNavigation(); return (
- {/* Settings title */} -

- Settings -

+
+ {/* Back button */} + {showBackButton && onBack && ( + + )} + + {/* Title */} +

+ {title} +

+
{/* Close button */} - )} -
+ {/* Action button for active connections */} + {!option.comingSoon && isConnected && ( + + Connected + + )} + + {/* Action button for non-connected */} + {!option.comingSoon && !isConnected && ( + + Connect + + )} +
+ + ); + })} + + + {/* Security notice */} +
+
+ + + +
+

🔒 Privacy & Security

+

+ All data and credentials are stored locally with zero-data retention policy. + Your information is encrypted and never shared with third parties. +

- ); - })} -
- - {/* Security notice */} -
-
- - - -
-

🔒 Privacy & Security

-

- All data and credentials are stored locally with zero-data retention policy. - Your information is encrypted and never shared with third parties. -

- + {/* Telegram Connection Modal */}