feat(search): inline filters, and translate the search UI
The filters themselves already existed end to end — the server takes q, from, has, before and after, the API client passes them, and the popover has fields for each. What it lacked was discovery: the panel sits behind a button, so the capability was invisible. Typing 'de:fulano' or 'has:image' straight into the search box now applies the same filters. Keys are accepted in both languages, since the app is bilingual, and an unrecognised token falls back to being search text — otherwise a message containing a URL or 'algo:coisa' would become unfindable. Inline filters win over the panel's: whoever just typed one is expressing the more recent intent. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -55,6 +55,20 @@ export const ptBR: Partial<Dictionary> = {
|
||||
'accountMenu.copyId': 'Copiar ID do usuário',
|
||||
'accountMenu.copied': 'Copiado',
|
||||
|
||||
// Busca
|
||||
'search.placeholder': 'Buscar mensagens…',
|
||||
'search.filters': 'Filtros',
|
||||
'search.from': 'De',
|
||||
'search.fromPlaceholder': 'nome de usuário',
|
||||
'search.has': 'Contém',
|
||||
'search.hasAny': 'Qualquer',
|
||||
'search.hasFile': 'Arquivo',
|
||||
'search.hasImage': 'Imagem',
|
||||
'search.hasLink': 'Link',
|
||||
'search.before': 'Antes de',
|
||||
'search.after': 'Depois de',
|
||||
'search.hint': 'Dica: digite de:nome, contém:imagem, antes:2026-01-31 direto no campo de busca.',
|
||||
|
||||
// Mensagens fixadas
|
||||
'pins.pin': 'Fixar mensagem',
|
||||
'pins.unpin': 'Desafixar mensagem',
|
||||
|
||||
Reference in New Issue
Block a user