Improve search result listing
Summary:
Make it prettier, paginate, add user pictures, show document types, clean some
stuff up a little. Plenty of room for improvement but this should make it a lot
more useful.
Test Plan:
Here's what the new one looks like:
https://secure.phabricator.com/file/view/PHID-FILE-edce2b83c2e3a121c2b7/
Reviewed By: jungejason
Reviewers: tomo, jungejason, aran, tuomaspelkonen, mroch
Commenters: tomo
CC: aran, tomo, jungejason, epriestley
Differential Revision: 545
2011-06-28 23:35:02 +02:00
|
|
|
/**
|
|
|
|
* @provides phabricator-search-results-css
|
|
|
|
*/
|
|
|
|
|
2015-03-03 16:18:40 +01:00
|
|
|
.phui-object-item-link strong {
|
2015-05-31 21:14:32 +02:00
|
|
|
color: {$fire};
|
2015-06-16 22:10:24 +02:00
|
|
|
text-decoration: underline;
|
Improve search result listing
Summary:
Make it prettier, paginate, add user pictures, show document types, clean some
stuff up a little. Plenty of room for improvement but this should make it a lot
more useful.
Test Plan:
Here's what the new one looks like:
https://secure.phabricator.com/file/view/PHID-FILE-edce2b83c2e3a121c2b7/
Reviewed By: jungejason
Reviewers: tomo, jungejason, aran, tuomaspelkonen, mroch
Commenters: tomo
CC: aran, tomo, jungejason, epriestley
Differential Revision: 545
2011-06-28 23:35:02 +02:00
|
|
|
}
|
2015-03-24 20:47:28 +01:00
|
|
|
|
|
|
|
.phui-source-fragment {
|
|
|
|
color: {$darkgreytext};
|
|
|
|
}
|
|
|
|
|
|
|
|
.phui-source-fragment strong {
|
|
|
|
background-color: {$lightyellow};
|
|
|
|
font-weight: normal;
|
2015-05-31 21:14:32 +02:00
|
|
|
color: #000;
|
2015-03-24 20:47:28 +01:00
|
|
|
}
|
Allow search results to be snippeted, roughly
Summary:
Ref T8646. This is fairly rough:
This interface is very niche, and not really flexible enough to accommodate other result customization (but I don't think we have any plans here)?
I'm just //summarizing// the content of documents, basically showing the first paragraph of their content, summary, etc. This isn't what Google does: it shows snippets surrounding the actual search terms. However, this is more involved and might be less useful in structured data: for example, I'd imagine that the first line of most phriciton documents, maniphest tasks and Differential revisions really might be the best machine-generatable summary of them. The actual contextual snippeting in Google doesn't often seem hugely useful to me. But this might also not be very useful.
There's not much design, not sure if you had any ideas.
I only implemented this for tasks, revisions and the wiki since those seem most useful.
I'm generally on the fence about this, but it's not a ton of work to swap out for something else later. Maybe we can see how it feels? But happy to toss it or rethink the approach.
Test Plan: {F788026}
Reviewers: chad
Reviewed By: chad
Maniphest Tasks: T8646
Differential Revision: https://secure.phabricator.com/D14095
2015-09-11 04:06:36 +02:00
|
|
|
|
|
|
|
.phui-search-snippet {
|
|
|
|
margin: 0 8px;
|
|
|
|
color: {$greytext};
|
|
|
|
}
|