Sfoglia il codice sorgente

Add instructions for searching by team and organization

John Supplee 3 anni fa
parent
commit
c10f3e97bf
2 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 5 0
      client/components/main/globalSearch.js
  2. 2 0
      i18n/en.i18n.json

+ 5 - 0
client/components/main/globalSearch.js

@@ -131,6 +131,9 @@ class GlobalSearchComponent extends CardSearchPagedComponent {
       operator_has: TAPi18n.__('operator-has'),
       operator_sort: TAPi18n.__('operator-sort'),
       operator_limit: TAPi18n.__('operator-limit'),
+      operator_debug: TAPi18n.__('operator-debug'),
+      operator_org: TAPi18n.__('operator-org'),
+      operator_team: TAPi18n.__('operator-team'),
       predicate_overdue: TAPi18n.__('predicate-overdue'),
       predicate_archived: TAPi18n.__('predicate-archived'),
       predicate_all: TAPi18n.__('predicate-all'),
@@ -169,6 +172,8 @@ class GlobalSearchComponent extends CardSearchPagedComponent {
       ['\n- ', 'globalSearch-instructions-operator-member'],
       ['\n- ', 'globalSearch-instructions-operator-assignee'],
       ['\n- ', 'globalSearch-instructions-operator-creator'],
+      ['\n- ', 'globalSearch-instructions-operator-org'],
+      ['\n- ', 'globalSearch-instructions-operator-team'],
       ['\n- ', 'globalSearch-instructions-operator-due'],
       ['\n- ', 'globalSearch-instructions-operator-created'],
       ['\n- ', 'globalSearch-instructions-operator-modified'],

+ 2 - 0
i18n/en.i18n.json

@@ -1023,6 +1023,8 @@
   "globalSearch-instructions-operator-member": "`__operator_member__:<username>` - cards where *<username>* is a *member*",
   "globalSearch-instructions-operator-assignee": "`__operator_assignee__:<username>` - cards where *<username>* is an *assignee*",
   "globalSearch-instructions-operator-creator": "`__operator_creator__:<username>` - cards where *<username>* is the card's creator",
+  "globalSearch-instructions-operator-org": "`__operator_org__:<display name|short name>` - cards belonging to a board assigned to organization *<name>*",
+  "globalSearch-instructions-operator-team": "`__operator_team__:<display name|short name>` - cards belonging to a board assigned to team *<name>*",
   "globalSearch-instructions-operator-due": "`__operator_due__:<n>` - cards which are due up to *<n>* days from now.  `__operator_due__:__predicate_overdue__ lists all cards past their due date.",
   "globalSearch-instructions-operator-created": "`__operator_created__:<n>` - cards which were created *<n>* days ago or less",
   "globalSearch-instructions-operator-modified": "`__operator_modified__:<n>` - cards which were modified *<n>* days ago or less",