mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-20 19:32:22 +02:00
* feat(tracker): field-prefixed search, inline filter chips and zero-hit empty state Adds SearchInputAdvanced (field:value prefixes routed to Elasticsearch query_string), match highlighting, inline filter chips with overflow popover, a reusable zero-hit empty state in view-resources, and search-scope/highlight view options for List and Kanban. Signed-off-by: Michael Uray <michaeluray@users.noreply.github.com> * refactor(tracker-search): address review follow-ups on search/filter rework Shared, non-storage-specific field list, test-folder conventions, locale coverage, single regex source and an owner-token gate for the result count. - core: add shared `fullTextSearchFields` constant next to FullTextSearchContext as the single source of truth for the full-text fields exposed to `field:value` targeting. The client encoder derives ES_NATIVE_FIELDS from it and the elastic adapter derives KNOWN_FIELD_RE from it, replacing the two "KEEP IN SYNC" copies. Per-field boost weights stay a local adapter detail. - tests: move the five co-located tests into each package's existing test folder convention (ui `__test__`, view-resources `__tests__`) and fix the relative imports. - i18n: translate the new tracker search/filter strings in the remaining locales (zh, ja, ko, cs, es, fr, it, pt, pt-br, tr), reusing each file's existing terminology; ICU placeholders left unchanged. - encoder: hoist the reserved-character class into one constant and build two RegExp instances from it (non-global for `.test()`, global for `.replace()`) to avoid the shared-lastIndex trap. - view-resources: guard `resultIssueCountStore` writes with an owner-token gate so a superseded viewlet can no longer clobber the active viewlet's count; List/KanbanView claim and release, IssuesView resets through the current owner. Assumes a single active IssuesView surface. - view-resources: make result-count reporting opt-in via a new `reportResultCount` prop on List (default true). Embedded, non-primary List instances (sub-issues / related issues in the issue edit panel, routed through SubIssueList) pass false and never claim the owner token, so opening and closing an issue can no longer strand the primary Issues viewlet with a dead token — the zero-hit SearchEmptyState card renders again afterwards. Add a regression test covering the opted-out embedded consumer. - elastic: escape every regex metacharacter (not just `.`) when building KNOWN_FIELD_RE from `fullTextSearchFields`, so a future field name carrying another metacharacter cannot silently corrupt the alternation. Behaviour for the current fields is unchanged. Signed-off-by: Michael Uray <michaeluray@users.noreply.github.com> * refactor(tracker-search): centralize regex escaping and lock down result-count store - Share escapeRegExp from @hcengineering/core so the client encoder and the server elastic adapter escape the fulltext field list identically, not just dots on the client. - Export resultIssueCountStore as a read-only Readable; the owner-token gate functions (setResultCount / resetResultCount / releaseResultCountOwner) are now the only write path. Signed-off-by: Michael Uray <michaeluray@users.noreply.github.com> --------- Signed-off-by: Michael Uray <michaeluray@users.noreply.github.com> Co-authored-by: Michael Uray <michaeluray@users.noreply.github.com> Co-authored-by: Artyom Savchenko <armisav@gmail.com>
162 lines
6.7 KiB
JSON
162 lines
6.7 KiB
JSON
{
|
|
"string": {
|
|
"Contains": "Contém",
|
|
"NotContains": "Não contém",
|
|
"MoveClass": "Mover {class}",
|
|
"SelectToMove": "Selecione a {classLabel} que deseja mover para {class}.",
|
|
"Delete": "Apagar",
|
|
"Move": "Mover",
|
|
"Cancel": "Cancelar",
|
|
"LabelYes": "Sim",
|
|
"LabelNo": "Não",
|
|
"LabelNA": "N/D",
|
|
"ChooseAColor": "Escolher uma cor",
|
|
"Table": "Tabela",
|
|
"Role": "Função",
|
|
"DeleteObject": "Apagar objecto",
|
|
"DeleteObjectConfirm": "Deseja apagar {count, plural, =1 {este objecto} other {estes # objectos}}?",
|
|
"NoCreatePermissionTitle": "Sem permissões suficientes para criar",
|
|
"DeletePopupNoPermissionTitle": "Sem permissões suficientes para apagar.",
|
|
"DeletePopupNoPermissionLabel": "Por favor, contacte as pessoas da lista abaixo para que o possam fazer.",
|
|
"DeletePopupCreatorLabel": "Criadores (só podem apagar os que criaram):",
|
|
"DeletePopupOwnerLabel": "Proprietários (podem apagar todos):",
|
|
"Archive": "Arquivar",
|
|
"ArchiveConfirm": "Deseja arquivar {count, plural, =1 {este objecto} other {estes # objectos}}?",
|
|
"Open": "Abrir",
|
|
"OpenInNewTab": "Abrir num novo separador",
|
|
"Assignees": "Atribuídos",
|
|
"Labels": "Etiquetas",
|
|
"MoveLeft": "Mover para a esquerda",
|
|
"MoveRight": "Mover para a direita",
|
|
"MoveUp": "Mover para cima",
|
|
"MoveDown": "Mover para baixo",
|
|
"RestoreDefaults": "Restaurar predefinições",
|
|
"SelectItem": "Seleccionar item em foco",
|
|
"SelectItemAll": "Seleccionar todos os itens",
|
|
"SelectItemNone": "Desselecionar todos os itens",
|
|
"NumberItems": "{count, plural, =0 {sem itens} =1 {1 item} other {# itens}}",
|
|
"Assigned": "Atribuído",
|
|
"Created": "Criado",
|
|
"Subscribed": "Subscrito",
|
|
"ShowPreview": "Mostrar pré-visualização do documento",
|
|
"ShowActions": "Mostrar menu de ações",
|
|
"ActionPlaceholder": "Pesquisar ou executar um comando...",
|
|
"General": "Geral",
|
|
"Navigation": "Navegação",
|
|
"Editor": "Editor",
|
|
"MarkdownFormatting": "Formatação",
|
|
"CustomizeView": "Personalizar vista",
|
|
"Filter": "Filtrar",
|
|
"ClearFilters": "Limpar filtros",
|
|
"FilterLessThan": "Menos que",
|
|
"FilterGreaterThan": "Mais que",
|
|
"FilterIsNot": "não é",
|
|
"FilterIsEither": "é",
|
|
"FilterIsEitherPlural": "são",
|
|
"FilterStatesCount": "{value, plural, =1 {1 estado} other {# estados}}",
|
|
"FilterUpdated": "Filtro actualizado",
|
|
"FilterRemoved": "{count, plural, =1 {# valor inexistente foi} other {# valores inexistentes foram}} removidos do filtro",
|
|
"Before": "Antes",
|
|
"After": "Depois",
|
|
"Apply": "Aplicar",
|
|
"Save": "Guardar",
|
|
"IncludeItemsThatMatch": "Incluir itens que correspondam",
|
|
"AnyFilter": "qualquer filtro",
|
|
"AllFilters": "todos os filtros",
|
|
"MatchCriteria": "Corresponder ao critério",
|
|
"DontMatchCriteria": "Não corresponder ao critério",
|
|
"View": "Ver",
|
|
"MarkupEditor": "Edição de campo de conteúdo enriquecido",
|
|
"List": "Lista",
|
|
"Grid": "Grade",
|
|
"Timeline": "Linha temporal",
|
|
"Select": "Seleccionar",
|
|
"NoGrouping": "Sem agrupamento",
|
|
"Grouping": "Agrupamento",
|
|
"Ordering": "Ordenação",
|
|
"Manual": "Manual",
|
|
"FilteredViews": "Vistas filtradas",
|
|
"NewFilteredView": "Nova vista filtrada",
|
|
"FilteredViewName": "Nome da vista filtrada",
|
|
"Then": "Então",
|
|
"ShowPreviewOnClick": "Por favor, clique para mostrar a pré-visualização do índice do documento...",
|
|
"Shown": "mostrando {len} resultados {total, plural, =-1 {} other {de # itens filtrados}}",
|
|
"Total": "Total: {total, plural, other{#}}",
|
|
"ShowEmptyGroups": "Mostrar grupos vazios",
|
|
"Overdue": "Atrasado",
|
|
"Today": "Hoje",
|
|
"Yesterday": "Ontem",
|
|
"ThisWeek": "Esta semana",
|
|
"NextWeek": "Próxima semana",
|
|
"ThisMonth": "Este mês",
|
|
"NextMonth": "Próximo mês",
|
|
"NotSpecified": "Não especificado",
|
|
"ExactDate": "Data exata",
|
|
"BeforeDate": "Antes da data",
|
|
"AfterDate": "Após a data",
|
|
"BetweenDates": "Entre datas",
|
|
"AddSavedView": "Adicionar vista salva",
|
|
"Public": "Público",
|
|
"Hide": "Ocultar",
|
|
"Rename": "Renomear",
|
|
"SaveAs": "Salvar como",
|
|
"And": "e",
|
|
"Between": "está entre",
|
|
"ShowColors": "Usar cores",
|
|
"Show": "Mostrar",
|
|
"FilterArrayAll": "todos",
|
|
"FilterArrayAny": "qualquer",
|
|
"Or": "Ou",
|
|
"HyperlinkPlaceholder": "https://jappleseed.com",
|
|
"CopyToClipboard": "Copiar para área de transferência",
|
|
"CopyAll": "Copiar tudo",
|
|
"CopyDocumentMarkdown": "Copiar como Markdown",
|
|
"CopyAsMarkdownTable": "Copiar como tabela Markdown",
|
|
"TableCopiedToClipboard": "Tabela copiada para área de transferência",
|
|
"TableCopyFailed": "Falha ao copiar tabela para área de transferência",
|
|
"PublicView": "Público",
|
|
"ChooseIcon": "Escolher ícone",
|
|
"IconColor": "Escolher cor do ícone",
|
|
"IconCategory": "Ícone",
|
|
"EmojiCategory": "Emoji",
|
|
"Type": "Tipo",
|
|
"ToViewCommands": "para ver os comandos disponíveis",
|
|
"UnArchive": "Desarquivar",
|
|
"UnArchiveConfirm": "Deseja desarquivar {count, plural, =1 {este objecto} other {estes # objectos}}?",
|
|
"Pin": "Fixar",
|
|
"Unpin": "Desafixar",
|
|
"Archived": "Arquivado",
|
|
"MoreActions": "Mais Ações",
|
|
"Leave": "Sair",
|
|
"Join": "Ingressar",
|
|
"Copied": "Copiado",
|
|
"Title": "Título",
|
|
"HideArchived": "Ocultar arquivado",
|
|
"RemoveRelation": "Remover relação",
|
|
"RemoveRelationConfirmation": "Deseja remover a relação?",
|
|
"MasterDetail": "Mestre-detalhe",
|
|
"Tree": "Árvore",
|
|
"Document": "Documento",
|
|
"Loading": "Carregando...",
|
|
"NoRelations": "Sem relações",
|
|
"ReadOnlyWarningTitle": "✨ Demonstração anônima de convidado",
|
|
"ReadOnlyWarningMessage": "Você está no modo de visualização. Escolha seu caminho: Junte-se a este espaço para colaborar (como convidado) ou crie seu próprio espaço para gerenciar projetos completamente — tarefas, prazos, equipe!",
|
|
"ReadOnlyJoinWorkspace": "Entrar no espaço",
|
|
"ReadOnlySignUp": "Criar espaço",
|
|
"PermissionWarningTitle": "✨ Melhore seu acesso!",
|
|
"PermissionWarningMessage": "Seu cargo atual tem permissões limitadas. Para desbloquear este e outros recursos avançados, peça ao administrador do seu espaço de trabalho para atualizar seu nível de acesso!",
|
|
"Icon": "Ícone",
|
|
"Color": "Cor",
|
|
"AutomationOnly": "Apenas automação",
|
|
"CopyLink": "Copiar link",
|
|
"ValueIsSet": "O valor está definido",
|
|
"RoleLabel": "Cargo: {role}",
|
|
"ForbidAttributeChanges": "Proibir alterações: ",
|
|
"AllowAttributeChanges": "Permitir alterações: ",
|
|
"RelationshipTable": "Tabela de relacionamentos",
|
|
"FilterOverflowBadge": "+{count}",
|
|
"AddFilter": "Adicionar filtro",
|
|
"HiddenFilters": "Filtros ocultos"
|
|
}
|
|
}
|