Chris911 / Ask-Stack-Atom

Ask Stack Overflow for Atom
https://atom.io/packages/ask-stack
MIT License
124 stars 22 forks source link

Add more information to the result page #32

Closed hazrpg closed 8 years ago

hazrpg commented 8 years ago

I have added more information to the displayed results:

Please see attached screenshots:

1

2

3

4

5

6

hazrpg commented 8 years ago

Just thought I would point out that the errors in the failed build below is not due to the code I have added.

Chris911 commented 8 years ago

Thanks for your contributions @hazrpg. I'll review tomorrow.

As for CI I know it's broken. Haven't had time to fix the tests.

hazrpg commented 8 years ago

You're welcome @Chris911, I hope you like the changes. If there is anything you don't like, let me know and I'll amend it accordingly.

If I get chance, I might have a go at fixing the tests.

Chris911 commented 8 years ago

Looks good @hazrpg except I can't get the tooltips to work here. Also can't figure out how they're supposed to work by looking at the code there's no hover css class or anything like that.

hazrpg commented 8 years ago

Thanks @Chris911, glad you like it. I wanted to keep it simple, so I used traditional tooltips using the "title" attribute. They don't appear instantly, they take a couple of seconds to appear after hovering over it.

For example on line 72 of lib/ask-stack-result-view.coffee:

@p class: 'icon icon-check', title: 'This question has an accepted answer' if question['accepted_answer_id']
Chris911 commented 8 years ago

@hazrpg yep it works. My bad for being impatient :stuck_out_tongue_closed_eyes:.

Everything looks good. I'll merge this tonight and create a release.

Thanks for your contribution! Might be time to refactor the code a little bit and fix some bugs.

hazrpg commented 8 years ago

@Chris911, don't worry about it :smile:. Although, I wish I had seen your reply sooner. I genuinely thought it was a bug, so I set out to change it to a CSS version. If you're happy with the original implementation I did, then I'm happy to roll my commit back.

You're welcome, and thanks for your time in reviewing it. If there's anything I can do to help refactor/fix bugs, let me know.

Here's a screenshot of the CSS implementation in the 2c56c23 commit: screenshot from 2016-01-26 01 53 02 screenshot from 2016-01-26 01 53 51

EDIT: I decided to roll it back anyway, and created a new branch instead called feat-css-tooltips. If you like it I'll do another pull request for it.

Chris911 commented 8 years ago

These tooltips look good as well. Go for another PR when you're happy with the result.

Chris911 commented 8 years ago

Release 2.1.0 includes this change.

hazrpg commented 8 years ago

Excellent, thanks for adding it into the release. Hopefully others will like the change too. :smiley:

I'll create a new PR once I'm happy with the CSS tooltips.