spyder-ide / ux-improvements

Discussion about UX improvements for Spyder 5 and beyond
4 stars 2 forks source link

Code analysis issues #21

Open juanis2112 opened 3 years ago

juanis2112 commented 3 years ago
ccordoba12 commented 1 year ago

I have some suggestions to improve the UI of entries for the code analysis results:

imagen

  1. Remove arrows on the left. They don't add anything of value to the results.
  2. Move error code and name to the end and make them appear in italics.
  3. Move line number to be at the beginning, remove line and show it in bold.

In other words, I'd like to see something like this for each entry (this is the first one in my screenshot):

138: TODO: Once we can test that all plugins can be restarted - W0511 (fixme)

ccordoba12 commented 1 year ago

Some additional things to take into account:

  1. Code analysis is able to receive a directory to analyze all Python files in it and shows the results of each one in the tree. That makes the code quite complicated and it's not easily discoverable, so we should remove it.
  2. The roots of the tree (i.e. Convention, Refactor, etc) should be un-collapsed by default after an analysis finishes. That way all results would be immediately visible to users without any additional effort.
  3. When the results of real code analysis are integrated in this pane, we should remove the submenu Source > Show warning/error list. It'd make make little sense to keep that menu when this functionality is available.
  4. Perhaps we should change the order of the tree roots to be Error, Warning, Convention, Refactor. That way we'd show them in order of importance from top to bottom.
ccordoba12 commented 1 year ago

@CAM-Gerlach has some additional suggestions about this which we discussed in our previous UX meeting and I agreed with them.

So, I'd suggest work on this issue should be halted until he post those suggestions.

CAM-Gerlach commented 1 year ago

Sorry, I'd taken a look at this before, but then it fell off my radar during the craziness of PyCon and my post-PyCon mental health break and subsequent catching up with everything I'd missed.

After talking once again with @ccordoba12 , here's our current consensus for now: