Remove 'full-display' setting from Conpherence, spruce up search results

Summary: This removes 'full-display', 'minimal-display' from Conpherence, which I recall was because we had 2 UIs for column and regular chat. I'm also tossing in slightly nicer search results, with a link to the actual message and the full date shown for context.

Test Plan: Post a message in mobile, tablet, full conpherence, and in durable column. Clean up UI in durable column. Do a search in Full UI, click on result date, get taken to the message... usually. My test data is a little wonky, but I think this works most of the time.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D16710
This commit is contained in:
Chad Little
2016-10-15 20:26:15 -07:00
parent dd25b2b48b
commit ac8e11359d
12 changed files with 124 additions and 179 deletions

View File

@@ -44,7 +44,13 @@ JX.behavior('conpherence-search', function() {
});
request.setData({fulltext: search_text});
request.send();
}
function _viewResult(e) {
e.kill();
var uri = e.getNode('tag:a');
_toggleSearch(e);
JX.$U(uri).go();
}
JX.Stratcom.listen(
@@ -63,6 +69,11 @@ JX.behavior('conpherence-search', function() {
_doSearch(e);
});
JX.Stratcom.listen(
'click',
'conpherence-search-result-jump',
_viewResult);
JX.Stratcom.listen(
'click',
'conpherence-search-toggle',