The docs tree is laid out like the menus - a menu path is a docs path. Admin Panel / Settings follows the new structure: Visibility.md is Appearance.md, with new Features.md, Feature-Profiles.md, Security.md, Activities-and-Notifications.md and Delete.md; the section indexes, Admin-Panel.md, Admin-Panel-URLs.md (with the moved-pane redirects) and Validation.md follow the live menus, and Who-Sees-What.md explains in one place which layer decides what is shown and what is allowed. Pages are added for the menu entries that had none, each written from the code: every Admin Panel / Problems pane, the member menu, the board header, Board Settings, the All Boards left menu, and the list, swimlane and card menus. Older links to the moved panes are updated across docs/. TODO.md records what documenting the menus found: Edit Profile does not save a username for non-admins, the Support page's signed-out case is unreachable, Create board from this card is hidden from members who can edit the card, All Boards Settings is unreachable, and the Share template targets live in browser storage. Thanks to xet7 !
1.3 KiB
Search phrases
The global search (the header bar's search, or /globalsearch) understands a
few plain phrases in your WeKan language and turns them into its operators:
| Phrase (English) | Becomes |
|---|---|
| my cards | user:<you> |
| my overdue cards | user:<you> due:overdue |
| overdue cards | due:overdue |
| due this week | due:7 |
| unassigned cards | has:-assignee |
| cards without due date | has:-due |
| created today | created:1 |
| changed this week | modified:7 |
| archived cards | status:archived |
| cards with attachments | has:attachment |
Phrases combine, and any other words stay as text to search for: my overdue
cards printer becomes user:<you> due:overdue printer. The page shows the
query it ran - Searching for: user:alice due:overdue printer - so you can
see what a phrase means and learn the operators from it. A query that already
has an operator in it is never rewritten.
Each phrase is a translation key (search-phrase-*), so it reads in your own
language; the English phrase works in every language too.
Hiding it
Admin Panel / Settings / Features: Search phrases. The operators keep working.
Implementation
models/lib/searchPhrases.js (pure: phrases to operators, longest match first),
used by client/components/main/globalSearch.js. Tests:
tests/searchPhrases.test.cjs.