Tidy up your note list

After a few days of testing, your Notes view can become a bit cluttered. Although we are already discussing how to fix this for future releases in this blog post we will see what can be done about it.

So image that you currently have something like this:


It is difficult to make some sense out of that mess. It would be nice if we could filter the Text shown for each issue and display just the Title field:




We are going to do this using a renderer function for our Text column. Fire up your editor and open


./server/public/javascripts/dx/dradis.notes.NotesBrowserPanel.js


At around line#170, replace the existing renderer line with the following function:



What the new renderer does is look for notes that have a #[Title]# field defined and then extract the value of that title. Feel free to adjust the regular expression / extraction code to suit your needs.

After making the change, you need to delete the JavaScript bundle (autogenerated) and reload your browser:

$ rm ./server/public/javascripts/all.js


That's it, nice an easy. Now we have a much cleaner notes grid.

 

0 comments:

Post a Comment