[Toaster] filtering tasks by order

Barros Pena, Belen belen.barros.pena at intel.com
Tue Jan 21 03:05:26 PST 2014



On 18/01/2014 16:33, "Ravi Chintakunta" <ravi.chintakunta at timesys.com>
wrote:

>Hi Belen,
>
>>  >
>>  >
>>  >>  Having said that, I am very much open to change. If people do
>>  agree
>>  >>  that
>>  >>  filtering tasks by their execution order is not useful, let's get
>>  rid
>>  >>  of
>>  >>  that filter.
>>  >>
>>  >
>>  >Yeah, let's wait for comments from others.
>>  >
>>  >
>
>I have not implemented filtering tasks by execution order in my latest
>commit. The base code includes displaying filtering options only as radio
>buttons. 
>
>I have also not implemented "Show all tasks" button in the tooltip for
>the active filter icon.
>
>Also, can you let me know the css for the active filter icon tooltip.

It uses the Twitter Bootstrap tooltips:

http://getbootstrap.com/2.3.2/javascript.html#tooltips

In the prototype, the implementation is not very good. You could use a
certain class or id to identify the applied filter (.filtered or something
like that). Then, you can use jQuery to set the tooltip options:

$('.filtered').tooltip({
    container:'body¹,
    placement:'bottom¹,
    delay:{hide:1500},
    html:true,
    title:'<p>Showing only %filter_name%</p><p><a
id='task-type-clear-filter' class='btn btn-mini btn-primary' href='#'>Show
all tasks</a></p>
});

I would do this in main.js so that it can be reused by all pages. However,
we need to keep in mind that the button label inside the tooltip changes
per page (in the all tasks page is 'Show all tasks', but in the all builds
page is 'Show all builds' and in the variables table is 'Show all
variables').

I hope this helps.

Belén

>
>Thanks,
>Ravi
>
>Also, please let me know the style to use for the active



More information about the toaster mailing list