Closed abettermap closed 2 years ago
@rperlin-ela I think this is very doable. I learned the graphql query for it and below are example results for Ngaju
(no language instances, 1 project, 1 post, and 1 page).
So, what should be presented for each result? I'm thinking:
custom excerpt
if available, otherwise regular excerpt
(see screenshot: project and posts have regular, and pages has custom). If neither excerpt type is available (or maybe that's impossible) then empty barren space? Might not be a thing. And then of course a "View" button to visit each result.
the
or and
, then that's a crap-ton of results. Ya never know, people do weird 💩 ! So, maybe limit it to 5-10 results per page type (10 max for langs, 10 max for projects, etc.)No results
...etc.
If grouped like that, to make it easier to see most of the results without scrolling, probably best to limit it to 5 results per page type. If first type (e.g. Languages) has a ton of results, mobile users might not know of other types (e.g. Projects) w/o a lot of scrolling.
Last thing- what order should the grouped results be in? I'm guessing:
Actually, do we need any excerpt at all? Reasons to avoid:
@rperlin-ela got this wired up (well via the URL bar so far, not an input box yet), working like a champ. Just wondering how to present this layout:
here's where it got ugly with Posts, as expected, so maybe if i just strip out the "Continue reading" HTML, aka everything after the dots, we'll be all set?
This looks super and works great. So the input will change (and input font size increase a bit)? Still planning on stripping out the "Continue reading..."? A little wordy, but it's not the worst thing, just should go to the same right link as the linked headline right above
So the input will change
Elaborate please, not sure what you mean.
(and input font size increase a bit)?
Wow yeah not great on mobile, I'll fix it and look at desktop when I'm on a desktop.
Still planning on stripping out the "Continue reading..."?
For sure. It's just weird because the custom excerpt is a nice clean bit of text, whereas the Continue is HTML. But yeah Near-future J will tackle it.
Great, just meant font size, that's all
k fixed the font size and the page transition, just wondering should there be a button or should user just know they need to hit Enter? I tried a few different options but couldn't find anything i liked.
other examples (use your imagination):
i don't feel like google's left-side button is very intuitive. it just seems like an icon to represent search-ness, not a button (i didn't even know it was a btn until i tried it).
i'll roll w/this unless i hear otherwise:
as for stripping out the "continue reading", note that:
and we end up with this:
going to merge this and #45 once i push, so if any minor tweaks after it's up-n-runnin, i'd say chuck em in a new issue and i'll tackle it separately.
Search bar or some other input to search for a phrase found in content anywhere in the site.