HomePhabricator

Implement a scope selector for the global search

Tags
None
Referenced Files
F379151: Screen_Shot_2015-04-22_at_12.10.14_PM.png
Apr 22 2015, 9:31 PM
F379150: Screen_Shot_2015-04-22_at_12.09.28_PM.png
Apr 22 2015, 9:31 PM
F379154: Screen_Shot_2015-04-22_at_12.09.42_PM.png
Apr 22 2015, 9:31 PM
F379153: Screen_Shot_2015-04-22_at_12.09.49_PM.png
Apr 22 2015, 9:31 PM
Subscribers
None

Description

Implement a scope selector for the global search

Summary:
See M1433. Fixes T7266. Fixes T4475. Ref T7314.

Future work/notes/etc:

  • Write the User Guide (see TODO).
  • This might needs some design tweaks -- I think it's functionally almost-equivalent to the mock, but the UI isn't quite the same.
  • (Mobile design is a touch off-looking I think?)
  • When you use a custom query, the duplicate "magnifying glass" icons are a little weird. Maybe change one or the other.
  • Maybe worth adding an "Open Documents in Current Application" option? Planning to wait for feedback on that.
  • Need a Quicksand integration to change the current application at some point.
  • Searching in "Current Application" from, e.g., the 404 page just searches all documents. Current plan is to just document this behavior, since the icon is a pretty good callout and it seems plausible that this is intuitive enough that users won't have a hard time with it.

Test Plan:
New dropdown:

Screen_Shot_2015-04-22_at_12.09.28_PM.png (347×440 px, 43 KB)

Device-ish:

Screen_Shot_2015-04-22_at_12.10.14_PM.png (1×616 px, 178 KB)

Normal search (current application, from maniphest, selects tasks):

Screen_Shot_2015-04-22_at_12.09.49_PM.png (1×1 px, 186 KB)

Application search from non-application:

Screen_Shot_2015-04-22_at_12.09.42_PM.png (1×1 px, 169 KB)

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: johnny-bit, epriestley

Maniphest Tasks: T7266, T7314, T4475

Differential Revision: https://secure.phabricator.com/D12509