Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Make search search teams as well #4222

Merged
merged 23 commits into from
Dec 16, 2016
Merged

Make search search teams as well #4222

merged 23 commits into from
Dec 16, 2016

Conversation

mattbk
Copy link
Contributor

@mattbk mattbk commented Dec 2, 2016

Closes #3872.

Stubbing out a barely working version.

  • search by team name
  • search by product_or_service
  • display team logo in result
  • display product_or_service the same way ~user statements are

@mattbk
Copy link
Contributor Author

mattbk commented Dec 3, 2016

Not the greatest. I toyed with copying the table on the front page, but that would involve moving the sidebar as well.

screen shot 2016-12-02 at 10 36 50 pm

@chadwhitacre chadwhitacre added this to the Finish Team Basics milestone Dec 3, 2016
@mattbk
Copy link
Contributor Author

mattbk commented Dec 4, 2016

Per last commit, should look like
screen shot 2016-12-03 at 9 37 27 pm
but looks like (project description intentional)
screen shot 2016-12-03 at 9 38 11 pm

The project name is not big, and there is no line at the bottom of the row. CSS?

@mattbk
Copy link
Contributor Author

mattbk commented Dec 5, 2016

Cleaning the environment. Search of product_or_statement is not working as expected.

@mattbk
Copy link
Contributor Author

mattbk commented Dec 8, 2016

I'll probably make the project name results display the same as the project description results for consistency and differentiation from ~user results.

@mattbk mattbk requested review from kaguillera, JessaWitzel, chadwhitacre and clone1018 and removed request for kaguillera December 8, 2016 17:11
@mattbk mattbk added the Review label Dec 8, 2016
@mattbk
Copy link
Contributor Author

mattbk commented Dec 8, 2016

Ready for review.

@JessaWitzel
Copy link
Contributor

I would love to review this but when I checkout the branch and run it locally there is no data so I cannot test the search function. What should I do?

@mattbk
Copy link
Contributor Author

mattbk commented Dec 11, 2016

Have you run "make fake" as mentioned in the readme?

Copy link
Contributor

@JessaWitzel JessaWitzel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me!

@chadwhitacre
Copy link
Contributor

Added to #4221 since right now we're lying. Also #4157 (comment).

@chadwhitacre chadwhitacre mentioned this pull request Dec 13, 2016
21 tasks
@mattbk
Copy link
Contributor Author

mattbk commented Dec 13, 2016

Slack

@chadwhitacre
Copy link
Contributor

Can we do something about the styling? Don't need to go overboard (the search feature needs an overhaul), but maybe at least reuse the "username" tile styling for projects?

screen shot 2016-12-14 at 11 58 35 am

@chadwhitacre
Copy link
Contributor

Also, if we're not going to do excerpts for project descriptions like we do for participant statements, then I think we should just drop project descriptions from both the fields searched and the results display. Even just searching over project names is enough to undo the lie we're currently caught in. :-)

@JessaWitzel
Copy link
Contributor

From what I'm seeing this does include an excerpt from the product description? Am I missing something?

@JessaWitzel
Copy link
Contributor

Also I like that the styling is different so that you can see the entire project name. Do you mean that you want the same tile look @whit537 ?

@mattbk
Copy link
Contributor Author

mattbk commented Dec 14, 2016

If you look at the CSS, you can see that I tried styling them similar to the front page, but it doesn't seem to work.

The project list includes the first 100 characters of the description, not a search-style excerpt as it does for ~user profiles. I was trying for a minimum working product.

@chadwhitacre
Copy link
Contributor

Well, our search experience is really, really rough right now. I'm looking for how to not make it too much worse while also getting this out the door quickly. I think our best bet is to maintain parallelism in the UI with the user results. I think we should have "FOUND A MATCHING PROJECT NAME" with a little tile like we have under "MATCHING USERNAMES." We should drop the description since for users that's a separate section of the page. I don't think we should bother adding a section for matching project descriptions in the interest of expediency.

screen shot 2016-12-14 at 12 16 54 pm

@chadwhitacre
Copy link
Contributor

Also I like that the styling is different so that you can see the entire project name.

Not a bad point, but I think we should address that outside of this PR in a search overhaul.

@chadwhitacre
Copy link
Contributor

I'm gonna make some commits ...

@mattbk
Copy link
Contributor Author

mattbk commented Dec 14, 2016

Project searches both project name and description, and returns both.

What if I'm searching for something like "python" because I want to support Python projects? A logo and a project name don't tell me anything about a project.

I previously had separate sections for project name and project description, then combined them because for the searcher, it probably doesn't matter.

@chadwhitacre
Copy link
Contributor

It's funny, I'm just landing a 3-month project with COS to write a test suite for private search, and over here we have zero tests. :P

@mattbk
Copy link
Contributor Author

mattbk commented Dec 14, 2016

I also disagree that projects should be presented in the same way as ~users. That's confusing. Ideally all projects should be presented as on the front page, even on ~user pages that are listing projects.

E.g.,
image

We added this way back in our first pull request, #2. As it suggests
there, this was in lieu of a real search feature. I think we should
remove it because:

- We no longer focus on individuals through their social network
  accounts
- We have a real search feature
- This clutters up the search page
- It's sugar for going to /on/twitter/foo/ directly; you can still get
  there
@chadwhitacre
Copy link
Contributor

Progress on restyling:

screen shot 2016-12-15 at 11 52 17 am

@chadwhitacre
Copy link
Contributor

I'm trying to wrestle the text part into the details field. Once I've got that neat I think we'll be back to review here.

screen shot 2016-12-15 at 12 06 49 pm

@chadwhitacre
Copy link
Contributor

Heck to the yeah! 💃 👍

kolfbdil8q

@chadwhitacre
Copy link
Contributor

Works in Chrome and Safari, borked in Firefox.

@mattbk
Copy link
Contributor Author

mattbk commented Dec 15, 2016

I like it. Thanks for digging in.

@chadwhitacre
Copy link
Contributor

Got it!

@chadwhitacre
Copy link
Contributor

I have the text description integrated with the homepage listing style, and it's working for both username search (showing the beginning of the statement) as well as user statement matches (showing the relevant excerpt as before). It works responsively, and doesn't break the homepage (though as a side-effect, the details on the homepage now overflow hiddenly with ellipsis rather than float dropping). I've tested in Chrome, Safari, and Firefox on macOS.

image


image


image


image


image

@chadwhitacre
Copy link
Contributor

Back over to you for review, @JessaWitzel @mattbk!

@chadwhitacre
Copy link
Contributor

Here it is on some backup data. It's interesting that zero doesn't match https://gratipay.com/Zerodark-theme/. More trigrams!


ryrcx4ofti

@chadwhitacre
Copy link
Contributor

Oops! 😊


image

@chadwhitacre
Copy link
Contributor

Fixed in 4da2981.

@chadwhitacre
Copy link
Contributor

chadwhitacre commented Dec 15, 2016

@JessaWitzel in slack:

I think it's important enough to find a work around.
But it can be on a different PR

👍

I'll let you reticket if you like. :-)

@mattbk
Copy link
Contributor Author

mattbk commented Dec 15, 2016

I approve.

It's interesting that zero doesn't match https://gratipay.com/Zerodark-theme/. More trigrams!

Probably because zero is not a large enough proportion of the project name string?

@chadwhitacre
Copy link
Contributor

I approve.

💃

Probably because zero is not a large enough proportion of the project name string?

Yeah, searching for zerod matches it.

@JessaWitzel JessaWitzel merged commit 513beb7 into master Dec 16, 2016
@JessaWitzel JessaWitzel deleted the search-projects branch December 16, 2016 02:59
@mattbk
Copy link
Contributor Author

mattbk commented Dec 16, 2016

Woo!

!m @JessaWitzel

@chadwhitacre
Copy link
Contributor

Deployed! Huzzah! 💃

!m @mattbk @JessaWitzel *

image

@chadwhitacre
Copy link
Contributor

chadwhitacre commented Dec 16, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants