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

167 lines
6.1 KiB
JSON

{
"string": {
"Contains": "contains",
"NotContains": "does not contain",
"MoveClass": "Move {class}",
"SelectToMove": "Select the {classLabel} you want to move {class} to.",
"Delete": "Delete",
"Move": "Move",
"Cancel": "Cancel",
"LabelYes": "Yes",
"LabelNo": "No",
"LabelNA": "N/A",
"ChooseAColor": "Choose a color",
"Table": "Table",
"Role": "Role",
"DeleteObject": "Delete object",
"DeleteObjectConfirm": "Do you want to delete {count, plural, =1 {this object} other {these # objects}}?",
"NoCreatePermissionTitle": "Not enough permissions to create",
"DeletePopupNoPermissionTitle": "Not enough permissions to delete.",
"DeletePopupNoPermissionLabel": "Please contact people from the list below for them to do so.",
"DeletePopupCreatorLabel": "Creators (can delete only ones that were created by them):",
"DeletePopupOwnerLabel": "Owners (can delete all of them):",
"Archive": "Archive",
"ArchiveConfirm": "Do you want to archive this {count, plural, =1 {object} other {# objects}}?",
"Open": "Open",
"OpenInNewTab": "Open in new tab",
"Assignees": "Assignees",
"Labels": "Labels",
"MoveLeft": "Move left",
"MoveRight": "Move right",
"MoveUp": "Move up",
"MoveDown": "Move down",
"RestoreDefaults": "Restore defaults",
"SelectItem": "Select focused item",
"SelectItemAll": "Select all items",
"SelectItemNone": "Deselect all items",
"NumberItems": "{count, plural, =0 {no items} =1 {1 item} other {# items}}",
"Assigned": "Assigned",
"Created": "Created",
"Subscribed": "Subscribed",
"ShowPreview": "Show document preview",
"ShowActions": "Show actions popup",
"ActionPlaceholder": "Search or run a command...",
"General": "General",
"Navigation": "Navigation",
"Editor": "Editor",
"MarkdownFormatting": "Formatting",
"CustomizeView": "Customize view",
"Filter": "Filter",
"ClearFilters": "Clear filters",
"FilterLessThan": "Less than",
"FilterGreaterThan": "Greater than",
"FilterIsNot": "is not",
"FilterIsEither": "is",
"FilterIsEitherPlural": "is",
"FilterStatesCount": "{value, plural, =1 {1 state} other {# states}}",
"FilterUpdated": "Filter was updated",
"FilterRemoved": "{count, plural, =1 {# non-existing value was} other {# non-existing values were}} removed from the filter",
"Before": "Before",
"After": "After",
"Apply": "Apply",
"Save": "Save",
"IncludeItemsThatMatch": "Include items that match",
"AnyFilter": "any filter",
"AllFilters": "all filters",
"MatchCriteria": "Match criteria",
"DontMatchCriteria": "Don't match criteria",
"View": "View",
"MarkupEditor": "Edit of rich content field",
"List": "List",
"Grid": "Grid",
"Timeline": "Timeline",
"Select": "Select",
"NoGrouping": "No grouping",
"Grouping": "Grouping",
"Ordering": "Ordering",
"Manual": "Manual",
"FilteredViews": "Filtered views",
"NewFilteredView": "New filtered view",
"FilteredViewName": "Filtered view name",
"Then": "Then",
"ShowPreviewOnClick": "Please click to show document index preview...",
"Shown": "showing {len} results {total, plural, =-1 {} other {of filtered # items}}",
"Total": "Total: {total, plural, other{#}}",
"ShowEmptyGroups": "Show empty groups",
"Overdue": "Overdue",
"Today": "Today",
"Yesterday": "Yesterday",
"ThisWeek": "This week",
"NextWeek": "Next week",
"ThisMonth": "This month",
"NextMonth": "Next month",
"NotSpecified": "Not specified",
"ExactDate": "Exact date",
"BeforeDate": "Before date",
"AfterDate": "After date",
"BetweenDates": "Between dates",
"AddSavedView": "Add saved view",
"Public": "Public",
"Hide": "Hide",
"Rename": "Rename",
"SaveAs": "Save as",
"And": "and",
"Between": "is between",
"ShowColors": "Use colors",
"Show": "Show",
"FilterArrayAll": "all",
"FilterArrayAny": "any",
"Or": "Or",
"HyperlinkPlaceholder": "https://jappleseed.com",
"CopyToClipboard": "Copy to clipboard",
"CopyAll": "Copy All",
"CopyDocumentMarkdown": "Copy as Markdown",
"CopyAsMarkdownTable": "Copy as Markdown Table",
"TableCopiedToClipboard": "Table copied to clipboard",
"TableCopyFailed": "Failed to copy table to clipboard",
"PublicView": "Public",
"ChooseIcon": "Choose icon",
"IconColor": "Choose icon color",
"IconCategory": "Icon",
"EmojiCategory": "Emoji",
"Type": "Type",
"ToViewCommands": "to view available commands",
"UnArchive": "Unarchive",
"UnArchiveConfirm": "Do you want to unarchive this {count, plural, =1 {object} other {# objects}}?",
"Pin": "Pin",
"Unpin": "Unpin",
"Archived": "Archived",
"MoreActions": "More actions",
"Leave": "Leave",
"Join": "Join",
"Copied": "Copied",
"Title": "Title",
"HideArchived": "Hide archived",
"RemoveRelation": "Remove relation",
"RemoveRelationConfirmation": "Do you want to remove relation?",
"MasterDetail": "Master-detail",
"Tree": "Tree",
"Document": "Document",
"Loading": "Loading...",
"NoRelations": "No relations",
"ReadOnlyWarningTitle": "✨ Anonymous Guest Demo",
"ReadOnlyWarningMessage": "You're in view-only mode. Choose your path: Join this workspace to collaborate (as guest) or create your own space to fully manage projects — tasks, deadlines, team!",
"ReadOnlyJoinWorkspace": "Join workspace",
"ReadOnlySignUp": "Create workspace",
"PermissionWarningTitle": "✨ Level up your access!",
"PermissionWarningMessage": "Your current role has limited permissions. To unlock this and other advanced features, ask your workspace admin to upgrade your access level!",
"Icon": "Icon",
"Color": "Color",
"AutomationOnly": "Automation only",
"CopyLink": "Copy link",
"ValueIsSet": "Value is set",
"RoleLabel": "Role: {role}",
"ForbidAttributeChanges": "Forbid changes: ",
"AllowAttributeChanges": "Allow changes: ",
"RelationshipTable": "Traceability Matrix",
"FilterOverflowBadge": "+{count}",
"AddFilter": "Add filter",
"HiddenFilters": "Hidden filters"
}
}