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
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"string": {
"Contains": "içeriyor",
"NotContains": "içermiyor",
"MoveClass": "{class} taşı",
"SelectToMove": "{class} taşımak istediğiniz {classLabel} seçin.",
"Delete": "Sil",
"Move": "Taşı",
"Cancel": "İptal",
"LabelYes": "Evet",
"LabelNo": "Hayır",
"LabelNA": "Belirsiz",
"ChooseAColor": "Renk seç",
"Table": "Tablo",
"Role": "Rol",
"DeleteObject": "Nesneyi sil",
"DeleteObjectConfirm": "{count, plural, =1 {bu nesneyi} other {bu # nesneyi}} silmek istiyor musunuz?",
"NoCreatePermissionTitle": "Oluşturmak için yeterli izin yok",
"DeletePopupNoPermissionTitle": "Silmek için yeterli izin yok.",
"DeletePopupNoPermissionLabel": "Lütfen aşağıdaki listedeki kişilerle iletişime geçin.",
"DeletePopupCreatorLabel": "Oluşturanlar (sadece kendilerinin oluşturduklarını silebilir):",
"DeletePopupOwnerLabel": "Sahipler (hepsini silebilir):",
"Archive": "Arşivle",
"ArchiveConfirm": "{count, plural, =1 {bu nesneyi} other {bu # nesneyi}} arşivlemek istiyor musunuz?",
"Open": "Aç",
"OpenInNewTab": "Yeni sekmede aç",
"Assignees": "Atananlar",
"Labels": "Etiketler",
"MoveLeft": "Sola taşı",
"MoveRight": "Sağa taşı",
"MoveUp": "Yukarı taşı",
"MoveDown": "Aşağı taşı",
"RestoreDefaults": "Varsayılanlara sıfırla",
"SelectItem": "Odaklanılan öğeyi seç",
"SelectItemAll": "Tüm öğeleri seç",
"SelectItemNone": "Tüm öğelerin seçimini kaldır",
"NumberItems": "{count, plural, =0 {öğe yok} =1 {1 öğe} other {# öğe}}",
"Assigned": "Atanmış",
"Created": "Oluşturuldu",
"Subscribed": "Abone olundu",
"ShowPreview": "Doküman önizlemesini göster",
"ShowActions": "İşlem popup'ını göster",
"ActionPlaceholder": "Ara veya komut çalıştır...",
"General": "Genel",
"Navigation": "Navigasyon",
"Editor": "Editör",
"MarkdownFormatting": "Biçimlendirme",
"CustomizeView": "Görünümü özelleştir",
"Filter": "Filtre",
"ClearFilters": "Filtreleri temizle",
"FilterLessThan": "Daha az",
"FilterGreaterThan": "Daha büyük",
"FilterIsNot": "değil",
"FilterIsEither": "eşittir",
"FilterIsEitherPlural": "eşittir",
"FilterStatesCount": "{value, plural, =1 {1 durum} other {# durum}}",
"FilterUpdated": "Filtre güncellendi",
"FilterRemoved": "{count, plural, =1 {# mevcut olmayan değer} other {# mevcut olmayan değer}} filtreden kaldırıldı",
"Before": "Önce",
"After": "Sonra",
"Apply": "Uygula",
"Save": "Kaydet",
"IncludeItemsThatMatch": "Eşleşen öğeleri dahil et",
"AnyFilter": "herhangi bir filtre",
"AllFilters": "tüm filtreler",
"MatchCriteria": "Kriterleri eşleştir",
"DontMatchCriteria": "Kriterleri eşleştirme",
"View": "Görünüm",
"MarkupEditor": "Zengin içerik alanını düzenle",
"List": "Liste",
"Grid": "Izgara",
"Timeline": "Zaman çizelgesi",
"Select": "Seç",
"NoGrouping": "Gruplama yok",
"Grouping": "Gruplama",
"Ordering": "Sıralama",
"Manual": "Manuel",
"FilteredViews": "Filtreli görünümler",
"NewFilteredView": "Yeni filtreli görünüm",
"FilteredViewName": "Filtreli görünüm adı",
"Then": "Sonra",
"ShowPreviewOnClick": "Doküman indeks önizlemesini göstermek için lütfen tıklayın...",
"Shown": "{len} sonuç gösteriliyor {total, plural, =-1 {} other {filtrelenmiş # öğeden}}",
"Total": "Toplam: {total, plural, other{#}}",
"ShowEmptyGroups": "Boş grupları göster",
"Overdue": "Gecikmiş",
"Today": "Bugün",
"Yesterday": "Dün",
"ThisWeek": "Bu hafta",
"NextWeek": "Gelecek hafta",
"ThisMonth": "Bu ay",
"NextMonth": "Gelecek ay",
"NotSpecified": "Belirtilmedi",
"ExactDate": "Kesin tarih",
"BeforeDate": "Önceki tarih",
"AfterDate": "Sonraki tarih",
"BetweenDates": "Tarihler arası",
"AddSavedView": "Kayıtlı görünüm ekle",
"Public": "Genel",
"Hide": "Gizle",
"Rename": "Yeniden adlandır",
"SaveAs": "Farklı kaydet",
"And": "ve",
"Between": "arasında",
"ShowColors": "Renkleri kullan",
"Show": "Göster",
"FilterArrayAll": "tümü",
"FilterArrayAny": "herhangi",
"Or": "Veya",
"HyperlinkPlaceholder": "https://ornek.com",
"CopyToClipboard": "Panoya kopyala",
"CopyAll": "Tümünü kopyala",
"CopyDocumentMarkdown": "Markdown olarak kopyala",
"CopyAsMarkdownTable": "Markdown tablosu olarak kopyala",
"TableCopiedToClipboard": "Tablo panoya kopyalandı",
"TableCopyFailed": "Tablo panoya kopyalanamadı",
"PublicView": "Genel",
"ChooseIcon": "İkon seç",
"IconColor": "İkon rengi seç",
"IconCategory": "İkon",
"EmojiCategory": "Emoji",
"Type": "Tip",
"ToViewCommands": "mevcut komutları görmek için",
"UnArchive": "Arşivden çıkar",
"UnArchiveConfirm": "{count, plural, =1 {bu nesneyi} other {bu # nesneyi}} arşivden çıkarmak istiyor musunuz?",
"Pin": "Sabitle",
"Unpin": "Sabitleneni kaldır",
"Archived": "Arşivlendi",
"MoreActions": "Daha fazla işlem",
"Leave": "Ayrıl",
"Join": "Katıl",
"Copied": "Kopyalandı",
"Title": "Başlık",
"HideArchived": "Arşivlenenleri gizle",
"RemoveRelation": "İlişkiyi kaldır",
"RemoveRelationConfirmation": "İlişkiyi kaldırmak istiyor musunuz?",
"MasterDetail": "Ana-detay",
"Tree": "Ağaç",
"Document": "Doküman",
"Loading": "Yükleniyor...",
"NoRelations": "İlişki yok",
"ReadOnlyWarningTitle": "✨ Anonim Misafir Demo",
"ReadOnlyWarningMessage": "Sadece görüntüleme modundasınız. Yolunuzu seçin: İşbirliği yapmak için bu çalışma alanına katılın (misafir olarak) veya projeleri tam olarak yönetmek için kendi alanınızı oluşturun — görevler, son tarihler, takım!",
"ReadOnlyJoinWorkspace": "Çalışma alanına katıl",
"ReadOnlySignUp": "Çalışma alanı oluştur",
"PermissionWarningTitle": "✨ Erişiminizi yükseltin!",
"PermissionWarningMessage": "Mevcut rolünüzün sınırlı izinleri var. Bu ve diğer gelişmiş özelliklerin kilidini açmak için çalışma alanı yöneticinizden erişim seviyenizi yükseltmesini isteyin!",
"Icon": "İkon",
"Color": "Renk",
"AutomationOnly": "Sadece otomasyon",
"CopyLink": "Bağlantıyı kopyala",
"ValueIsSet": "Değer ayarlandı",
"RoleLabel": "Rol: {role}",
"ForbidAttributeChanges": "Özellik yasakla: ",
"AllowAttributeChanges": "Özellik izin ver: ",
"RelationshipTable": "İlişki tablosu",
"FilterOverflowBadge": "+{count}",
"AddFilter": "Filtre ekle",
"HiddenFilters": "Gizli filtreler"
}
}