Files
1be6047c8a feat(tracker): field-prefixed search, inline filter chips and zero-hit empty state (#10998)
* 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>
2026-08-11 19:09:33 +07:00

162 lines
6.7 KiB
JSON

{
"string": {
"Contains": "Contiene",
"NotContains": "No contiene",
"MoveClass": "Mover {class}",
"SelectToMove": "Seleccione el {classLabel} que desea mover a {class}.",
"Delete": "Eliminar",
"Move": "Mover",
"Cancel": "Cancelar",
"LabelYes": "Sí",
"LabelNo": "No",
"LabelNA": "N/D",
"ChooseAColor": "Elegir un color",
"Table": "Tabla",
"Role": "Rol",
"DeleteObject": "Eliminar objeto",
"DeleteObjectConfirm": "¿Desea eliminar {count, plural, =1 {este objeto} other {estos # objetos}}?",
"NoCreatePermissionTitle": "Permisos insuficientes para crear",
"DeletePopupNoPermissionTitle": "Permisos insuficientes para eliminar.",
"DeletePopupNoPermissionLabel": "Por favor, contacte con las personas de la siguiente lista para que puedan eliminarlo.",
"DeletePopupCreatorLabel": "Creadores (pueden eliminar solo los que ellos crearon):",
"DeletePopupOwnerLabel": "Propietarios (pueden eliminar todos):",
"Archive": "Archivar",
"ArchiveConfirm": "¿Desea archivar {count, plural, =1 {este objeto} other {# objetos}}?",
"Open": "Abrir",
"OpenInNewTab": "Abrir en una nueva pestaña",
"Assignees": "Asignados",
"Labels": "Etiquetas",
"MoveLeft": "Mover a la izquierda",
"MoveRight": "Mover a la derecha",
"MoveUp": "Mover hacia arriba",
"MoveDown": "Mover hacia abajo",
"RestoreDefaults": "Restaurar valores predeterminados",
"SelectItem": "Seleccionar elemento enfocado",
"SelectItemAll": "Seleccionar todos los elementos",
"SelectItemNone": "Deseleccionar todos los elementos",
"NumberItems": "{count, plural, =0 {no hay elementos} =1 {1 elemento} other {# elementos}}",
"Assigned": "Asignado",
"Created": "Creado",
"Subscribed": "Suscrito",
"ShowPreview": "Mostrar vista previa del documento",
"ShowActions": "Mostrar ventana emergente de acciones",
"ActionPlaceholder": "Buscar o ejecutar un comando...",
"General": "General",
"Navigation": "Navegación",
"Editor": "Editor",
"MarkdownFormatting": "Formato",
"CustomizeView": "Personalizar vista",
"Filter": "Filtrar",
"ClearFilters": "Borrar filtros",
"FilterLessThan": "Menos que",
"FilterGreaterThan": "Más que",
"FilterIsNot": "no es",
"FilterIsEither": "es",
"FilterIsEitherPlural": "son",
"FilterStatesCount": "{value, plural, =1 {1 estado} other {# estados}}",
"FilterUpdated": "Filtro actualizado",
"FilterRemoved": "{count, plural, =1 {# valor no existente fue} other {# valores no existentes fueron}} eliminados del filtro",
"Before": "Antes",
"After": "Después",
"Apply": "Aplicar",
"Save": "Guardar",
"IncludeItemsThatMatch": "Incluir elementos que coincidan",
"AnyFilter": "cualquier filtro",
"AllFilters": "todos los filtros",
"MatchCriteria": "Criterios coincidentes",
"DontMatchCriteria": "Criterios no coincidentes",
"View": "Vista",
"MarkupEditor": "Edición del campo de contenido enriquecido",
"List": "Lista",
"Grid": "Cuadrícula",
"Timeline": "Cronología",
"Select": "Seleccionar",
"NoGrouping": "Sin agrupación",
"Grouping": "Agrupación",
"Ordering": "Orden",
"Manual": "Manual",
"FilteredViews": "Vistas filtradas",
"NewFilteredView": "Nueva vista filtrada",
"FilteredViewName": "Nombre de la vista filtrada",
"Then": "Entonces",
"ShowPreviewOnClick": "Haga clic para mostrar la vista previa del índice del documento...",
"Shown": "mostrando {len} resultados {total, plural, =-1 {} other {de # elementos filtrados}}",
"Total": "Total: {total, plural, other{#}}",
"ShowEmptyGroups": "Mostrar grupos vacíos",
"Overdue": "Atrasado",
"Today": "Hoy",
"Yesterday": "Ayer",
"ThisWeek": "Esta semana",
"NextWeek": "La próxima semana",
"ThisMonth": "Este mes",
"NextMonth": "El próximo mes",
"NotSpecified": "No especificado",
"ExactDate": "Fecha exacta",
"BeforeDate": "Antes de la fecha",
"AfterDate": "Después de la fecha",
"BetweenDates": "Entre fechas",
"AddSavedView": "Agregar vista guardada",
"Public": "Público",
"Hide": "Ocultar",
"Rename": "Renombrar",
"SaveAs": "Guardar como",
"And": "y",
"Between": "está entre",
"ShowColors": "Usar colores",
"Show": "Mostrar",
"FilterArrayAll": "todos",
"FilterArrayAny": "alguno",
"Or": "O",
"HyperlinkPlaceholder": "https://jappleseed.com",
"CopyToClipboard": "Copiar al portapapeles",
"CopyAll": "Copiar todo",
"CopyDocumentMarkdown": "Copiar como Markdown",
"CopyAsMarkdownTable": "Copiar como tabla Markdown",
"TableCopiedToClipboard": "Tabla copiada al portapapeles",
"TableCopyFailed": "Error al copiar la tabla al portapapeles",
"PublicView": "Público",
"ChooseIcon": "Elegir icono",
"IconColor": "Elegir color del icono",
"IconCategory": "Icono",
"EmojiCategory": "Emoji",
"Type": "Tipo",
"ToViewCommands": "para ver los comandos disponibles",
"UnArchive": "Desarchivar",
"UnArchiveConfirm": "¿Desea desarchivar {count, plural, =1 {este objeto} other {# objetos}}?",
"Pin": "Fijar",
"Unpin": "Desfijar",
"Archived": "Archivado",
"MoreActions": "Más Acciones",
"Leave": "Salir",
"Join": "Unirse",
"Copied": "Copiado",
"Title": "Título",
"HideArchived": "Ocultar archivadas",
"RemoveRelation": "Eliminar relación",
"RemoveRelationConfirmation": "¿Quieres eliminar la relación?",
"MasterDetail": "Maestro-detalle",
"Tree": "Árbol",
"Document": "Documento",
"Loading": "Cargando...",
"NoRelations": "No hay relaciones",
"ReadOnlyWarningTitle": "✨ Demo de invitado anónimo",
"ReadOnlyWarningMessage": "Estás en modo de solo lectura. ¡Elige tu camino: Únete a este espacio para colaborar (como invitado) o crea tu propio espacio para gestionar proyectos completamente — tareas, plazos, equipo!",
"ReadOnlyJoinWorkspace": "Unirse al espacio",
"ReadOnlySignUp": "Crear espacio",
"PermissionWarningTitle": "✨ ¡Mejora tu acceso!",
"PermissionWarningMessage": "Tu rol actual tiene permisos limitados. ¡Para desbloquear esta y otras funciones avanzadas, pídele al administrador de tu espacio de trabajo que actualice tu nivel de acceso!",
"Icon": "Icono",
"Color": "Color",
"AutomationOnly": "Solo automatización",
"CopyLink": "Copiar enlace",
"ValueIsSet": "El valor está establecido",
"RoleLabel": "Role: {role}",
"ForbidAttributeChanges": "Prohibir cambios: ",
"AllowAttributeChanges": "Permitir cambios: ",
"RelationshipTable": "Tabla de relaciones",
"FilterOverflowBadge": "+{count}",
"AddFilter": "Añadir filtro",
"HiddenFilters": "Filtros ocultos"
}
}