Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Added search to jslint error #3304

Closed
wants to merge 1 commit into from
Closed

Added search to jslint error #3304

wants to merge 1 commit into from

Conversation

drewhamlett
Copy link
Contributor

No description provided.

@ghost ghost assigned njx Apr 1, 2013
@@ -5,6 +5,7 @@
<td class="line" data-character="{{character}}">{{line}}</td>
<td>{{reason}}</td>
<td>{{evidence}}</td>
<td><a class="lint-url" data-reason="{{reason}}" href="#">Search</a></td>
Copy link
Contributor

Choose a reason for hiding this comment

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

You should move the search string to nls/root/string.js with the other JSLint strings and use it here by the key name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do. Thanks!

@TomMalbran
Copy link
Contributor

Since I rewrote the parts of the JSLint extensions where this is being added, I went ahead and added a few comments. The rest seems to looks and works good :)

@njx
Copy link

njx commented Apr 4, 2013

Cool, I like the functionality. From a UI point of view, I wonder if there's a more elegant way to expose it than the "Search" link on every line--it feels disconnected from the actual error and it's not obvious what it's searching. (Also, I don't know that users would immediately know what "Search" meant in this context.) Some ideas:

  1. A little blue "(i)" icon could show up next to each error string, maybe in a column to the left of it. Clicking on that icon initiates the search. Also, it could have a tooltip saying "Find more info on Google" or something.
  2. Instead of showing the link or an icon in each entry, it could be in a right-click menu. (Less discoverable, more cumbersome, but also less noisy.)

@GarthDB -- any suggestions for how we should tweak this, or could we just merge it as-is?

@drewhamlett
Copy link
Contributor Author

Any news on this?

@njx
Copy link

njx commented Apr 23, 2013

@larz0 - pinging you on this. See the comment thread above. Let me know if you need help pulling the branch.

@ghost ghost assigned larz0 May 10, 2013
@njx
Copy link

njx commented May 10, 2013

Assigning to @larz0 due to [UX] tag. Once resolved, please reassign to me. Thanks.

@larz0
Copy link
Member

larz0 commented May 10, 2013

How about only show the info icon on hover, at the end of an error description:

jslint_errorinfo_001

@njx
Copy link

njx commented May 10, 2013

I like the idea of showing it on hover to avoid noise, but I wonder if it would be better to put it in a consistent horizontal position so it's easier to predict where it will be when you want to target it--e.g. to the left of the error or the line number. Otherwise it might feel a little bit like you have to chase it around.

@larz0
Copy link
Member

larz0 commented May 10, 2013

Ahh yes:

jslint_errorinfo_001

@njx
Copy link

njx commented May 10, 2013

@drewhjava - how does that look to you? Would you mind making that tweak? @larz0, if you could post an icon for him to use, that would be great.

(Sorry it's taken so long to resolve this...we've been crunched with MAX and are just starting to dig ourselves out of the pull request hole...)

@njx
Copy link

njx commented May 10, 2013

Removing [UX] tag since we have a resolution.

@ghost ghost assigned njx and TomMalbran May 10, 2013
@peterflynn
Copy link
Member

#3688 -- allowing text selection as an alternative approach to this problem -- was just merged. We should make sure this change doesn't cause any issues with copying selected text in that panel (e.g. adding extra cruft to the clipboard for all the hidden rollover images).

@drewhamlett
Copy link
Contributor Author

@njx No problem, completely understand. @peterflynn I'll definitely keep that in mind. Thanks!

@larz0
Copy link
Member

larz0 commented May 11, 2013

Here's the icon @drewhjava: http://cl.ly/2b1U45343500

Please use opacity 0.6 for normal state and opacity 1 for hover state. Thanks for your help.

@drewhamlett
Copy link
Contributor Author

#4246

@jdiehl
Copy link
Contributor

jdiehl commented Jun 16, 2013

Closing this in favor of the new pull request.

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

Successfully merging this pull request may close these issues.

6 participants