✨ UX: busca, tags, fixar e renomear conversas
This commit is contained in:
+31
-5
@@ -31,15 +31,41 @@
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Busca no Histórico -->
|
||||
<div class="sidebar-search">
|
||||
<div class="sidebar-search-wrapper">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="search-icon">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z" />
|
||||
</svg>
|
||||
<input type="text" id="searchInput" placeholder="Buscar conversas..." class="search-input" autocomplete="off">
|
||||
<button class="search-clear" id="searchClear" aria-label="Limpar busca" style="display:none">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Tags de filtro -->
|
||||
<div class="sidebar-tags" id="sidebarTags">
|
||||
<button class="tag-filter active" data-tag="all">Todas</button>
|
||||
<button class="tag-filter" data-tag="relatorios">📋 Relatórios</button>
|
||||
<button class="tag-filter" data-tag="planejamento">📝 Planejamento</button>
|
||||
<button class="tag-filter" data-tag="mindlab">🧠 Mind Lab</button>
|
||||
<button class="tag-filter" data-tag="estudos">📚 Estudos</button>
|
||||
</div>
|
||||
|
||||
<!-- Histórico de Conversas -->
|
||||
<div class="chat-history" id="chatHistory">
|
||||
<!-- Grupos de datas dinâmicos por JS -->
|
||||
<div class="history-group">
|
||||
<h3>Hoje</h3>
|
||||
<div class="history-items" id="historyItems">
|
||||
<!-- Items gerados por JS -->
|
||||
<!-- Histórico filtrado/busca -->
|
||||
<div class="search-results-header" id="searchResultsHeader" style="display:none">
|
||||
<div class="search-results-info">
|
||||
<span id="searchResultsCount"></span>
|
||||
<button class="search-clear-all" id="searchClearAll">Limpar</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Items gerados por JS -->
|
||||
<div id="historyItems"></div>
|
||||
</div>
|
||||
|
||||
<!-- Rodapé do Menu Lateral -->
|
||||
|
||||
Reference in New Issue
Block a user