Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
add hint text for search exclusion (#3432)
Browse files Browse the repository at this point in the history
  • Loading branch information
liusy182 authored and mgdelacroix committed Sep 4, 2019
1 parent 8c8223f commit 0d702a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports[`components/SearchHint should match snapshot, with title 1`] = `
/>
</h4>
<InjectIntl(FormattedMarkdownMessage)
defaultMessage="* Use **\\"quotation marks\\"** to search for phrases\\\\n* Use **from:** to find posts from specific users and **in:** to find posts in specific channels\\\\n* Use **on:** to find posts on a specific date\\\\n* Use **before:** to find posts before a specific date\\\\n* Use **after:** to find posts after a specific date"
defaultMessage="* Use **\\"quotation marks\\"** to search for phrases\\\\n* Use **from:** to find posts from specific users and **in:** to find posts in specific channels\\\\n* Use **on:** to find posts on a specific date\\\\n* Use **before:** to find posts before a specific date\\\\n* Use **after:** to find posts after a specific date\\\\n* Use **dash** \\"-\\" to exclude search terms and modifiers"
id="search_bar.usage.tips"
/>
</Fragment>
Expand All @@ -19,7 +19,7 @@ exports[`components/SearchHint should match snapshot, with title 1`] = `
exports[`components/SearchHint should match snapshot, without title 1`] = `
<Fragment>
<InjectIntl(FormattedMarkdownMessage)
defaultMessage="* Use **\\"quotation marks\\"** to search for phrases\\\\n* Use **from:** to find posts from specific users and **in:** to find posts in specific channels\\\\n* Use **on:** to find posts on a specific date\\\\n* Use **before:** to find posts before a specific date\\\\n* Use **after:** to find posts after a specific date"
defaultMessage="* Use **\\"quotation marks\\"** to search for phrases\\\\n* Use **from:** to find posts from specific users and **in:** to find posts in specific channels\\\\n* Use **on:** to find posts on a specific date\\\\n* Use **before:** to find posts before a specific date\\\\n* Use **after:** to find posts after a specific date\\\\n* Use **dash** \\"-\\" to exclude search terms and modifiers"
id="search_bar.usage.tips"
/>
</Fragment>
Expand Down
2 changes: 1 addition & 1 deletion components/search_hint/search_hint.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class SearchHint extends PureComponent {
}
<FormattedMarkdownMessage
id='search_bar.usage.tips'
defaultMessage='* Use **"quotation marks"** to search for phrases\n* Use **from:** to find posts from specific users and **in:** to find posts in specific channels\n* Use **on:** to find posts on a specific date\n* Use **before:** to find posts before a specific date\n* Use **after:** to find posts after a specific date'
defaultMessage='* Use **"quotation marks"** to search for phrases\n* Use **from:** to find posts from specific users and **in:** to find posts in specific channels\n* Use **on:** to find posts on a specific date\n* Use **before:** to find posts before a specific date\n* Use **after:** to find posts after a specific date\n* Use **dash** "-" to exclude search terms and modifiers'
/>
</React.Fragment>
);
Expand Down
2 changes: 1 addition & 1 deletion i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2878,7 +2878,7 @@
"save_button.saving": "Saving",
"search_bar.clear": "Clear search query",
"search_bar.search": "Search",
"search_bar.usage.tips": "* Use **\"quotation marks\"** to search for phrases\n* Use **from:** to find posts from specific users and **in:** to find posts in specific channels\n* Use **on:** to find posts on a specific date\n* Use **before:** to find posts before a specific date\n* Use **after:** to find posts after a specific date",
"search_bar.usage.tips": "* Use **\"quotation marks\"** to search for phrases\n* Use **from:** to find posts from specific users and **in:** to find posts in specific channels\n* Use **on:** to find posts on a specific date\n* Use **before:** to find posts before a specific date\n* Use **after:** to find posts after a specific date\n* Use **dash** \"-\" to exclude search terms and modifiers",
"search_bar.usage.title": "Search Options",
"search_header.loading": "Searching...",
"search_header.results": "Search Results",
Expand Down

0 comments on commit 0d702a7

Please sign in to comment.