File tree Expand file tree Collapse file tree 9 files changed +22
-9
lines changed Expand file tree Collapse file tree 9 files changed +22
-9
lines changed Original file line number Diff line number Diff line change 9797 "Delete Conversation" : " Konversation löschen" ,
9898 "Clear conversations" : " Konversationen löschen" ,
9999 "Settings" : " Einstellungen" ,
100+ "Search" : " Suchen" ,
101+ "Search conversations..." : " Gespräche durchsuchen..." ,
100102 "Feature Pages" : " Funktionsseiten" ,
101103 "Keyboard Shortcuts" : " Tastenkombinationen" ,
102104 "Open Conversation Page" : " Konversationsseite öffnen" ,
Original file line number Diff line number Diff line change 9797 "Delete Conversation" : " Hapus Percakapan" ,
9898 "Clear conversations" : " Hapus Percakapan" ,
9999 "Settings" : " Pengaturan" ,
100+ "Search" : " Cari" ,
101+ "Search conversations..." : " Cari percakapan..." ,
100102 "Feature Pages" : " Halaman Fitur" ,
101103 "Keyboard Shortcuts" : " Pintasan Keyboard" ,
102104 "Open Conversation Page" : " Buka Halaman Percakapan" ,
Original file line number Diff line number Diff line change 9797 "Delete Conversation" : " Elimina la conversazione" ,
9898 "Clear conversations" : " Pulisci le conversazioni" ,
9999 "Settings" : " Impostazioni" ,
100+ "Search" : " Cerca" ,
101+ "Search conversations..." : " Cerca conversazioni..." ,
100102 "Feature Pages" : " Pagine delle funzionalità" ,
101103 "Keyboard Shortcuts" : " Scorciatoie da tastiera" ,
102104 "Open Conversation Page" : " Apri la pagina della conversazione" ,
Original file line number Diff line number Diff line change 9797 "Delete Conversation" : " 대화 삭제" ,
9898 "Clear conversations" : " 대화 기록 지우기" ,
9999 "Settings" : " 설정" ,
100+ "Search" : " 검색" ,
101+ "Search conversations..." : " 대화 검색..." ,
100102 "Feature Pages" : " 기능 페이지" ,
101103 "Keyboard Shortcuts" : " 키보드 단축키 설정" ,
102104 "Open Conversation Page" : " 대화 페이지 열기" ,
Original file line number Diff line number Diff line change 9797 "Delete Conversation" : " Excluir Conversa" ,
9898 "Clear conversations" : " Limpar conversas" ,
9999 "Settings" : " Configurações" ,
100+ "Search" : " Pesquisar" ,
101+ "Search conversations..." : " Pesquisar conversas..." ,
100102 "Feature Pages" : " Páginas de Recursos" ,
101103 "Keyboard Shortcuts" : " Atalhos de Teclado" ,
102104 "Open Conversation Page" : " Abrir Página de Conversa" ,
Original file line number Diff line number Diff line change 9797 "Delete Conversation" : " Удалить беседу" ,
9898 "Clear conversations" : " Очистить историю бесед" ,
9999 "Settings" : " Настройки" ,
100+ "Search" : " Поиск" ,
101+ "Search conversations..." : " Поиск разговоров..." ,
100102 "Feature Pages" : " Страницы функций" ,
101103 "Keyboard Shortcuts" : " Горячие клавиши" ,
102104 "Open Conversation Page" : " Открыть страницу бесед" ,
Original file line number Diff line number Diff line change 9797 "Delete Conversation" : " Konuşmayı Sil" ,
9898 "Clear conversations" : " Konuşmaları temizle" ,
9999 "Settings" : " Ayarlar" ,
100+ "Search" : " Ara" ,
101+ "Search conversations..." : " Konuşmaları ara..." ,
100102 "Feature Pages" : " Özellik Sayfaları" ,
101103 "Keyboard Shortcuts" : " Klavye Kısayolları" ,
102104 "Open Conversation Page" : " Konuşma Sayfasını Aç" ,
Original file line number Diff line number Diff line change @@ -104,16 +104,15 @@ function App() {
104104 await setSessionIdSafe ( sessions [ 0 ] . sessionId )
105105 }
106106
107+ // Utility function to safely convert any value to a string
108+ const toSafeString = ( value ) =>
109+ typeof value === 'string' ? value : value == null ? '' : String ( value )
110+
107111 // Filter sessions based on search query (memoized for performance)
108112 const filteredSessions = useMemo ( ( ) => {
109- const query = String ( searchQuery || '' )
110- . trim ( )
111- . toLowerCase ( )
113+ const query = toSafeString ( searchQuery ) . trim ( ) . toLowerCase ( )
112114 if ( ! query ) return sessions
113115
114- const toSafeString = ( value ) =>
115- typeof value === 'string' ? value : value == null ? '' : String ( value )
116-
117116 return sessions . filter ( ( session ) => {
118117 // Search in session name
119118 const sessionName = toSafeString ( session . sessionName ) . toLowerCase ( )
Original file line number Diff line number Diff line change 9090 }
9191
9292 .search-container {
93- padding : 0 ;
94- background-color : var ( --theme-color ) ;
93+ padding : 10 px ;
94+ background-color : inherit ;
9595 }
9696
9797 .search-input {
100100 padding : 8px 12px ;
101101 border : 1px solid var (--theme-border-color );
102102 border-radius : 5px ;
103- background-color : var (--theme-color );
103+ background-color : var (--theme-secondary- color , #1f1f1f );
104104 color : var (--font-color );
105105 font-size : 14px ;
106106 font-family : ' Cairo' , sans-serif ;
You can’t perform that action at this time.
0 commit comments