Discussion:
[mantisbt-dev] View Issues Page
P Richards
2014-07-17 21:39:34 UTC
Permalink
Hi All,



I've been experimenting for a while about whether to make use of
http://datatables.net/ for the view issues list and related filtering
functionality



The aim here would be to modernise and try and improve the existing
filtering:



* Make use of Ajax requests for filtering response to avoid a full
page load.

* Try to simplify the filtering options that are currently above the
view issues page to take up less space on the screen.

* Allow easy colour theming of the grid for non-technical users -
Data Tables provides colour theming functionality through the use of
jquery's themeroller (http://jqueryui.com/themeroller/ ), and I know in 1.3
we move what used to be the jquery plugin into the core, and include jquery
UI in the core, as well as its own theme creator
(http://datatables.net/manual/styling/theme-creator ). Of course, making use
of Jquery's theme roller would allow someone who has a plugin utilising
jquery ui already to theme both the grid and the plugin in one go.



I've done a bunch of preliminary work for a while now into this (and
actually make use of a hacked up implementation of the datatable
functionality on my work Mantis instance), I'd like to sit down and try and
get an implementation done that would be suitable to include in the open
source version of Mantis.



Before I proceed on this, I'm after some feedback on:

* Whether people feel that making use of datatables for the View
issues functionality specifically would be useful, and improve the current
behaviour.

* Whether, whilst it works in my work environment (Which is
controlled in terms of browsers/devices/people using it), would be a bad
idea to try and make work as part of the core Mantis

* Given the suggestion of using datatables, whether there are any
key things to consider when doing an initial implementation i.e. ideas of
things you would like to see

* How important it would be to support the use of jquery's
themeroller to allow customising the colours of the datatable in an easy to
use manner.



I've obviously got some ideas on the above, and some background experience
having added it to my work instance of Mantis, of what I think works, but it
would be good to get some feedback/thoughts from both users and others on
the dev team on this concept before spending time trying to port, generalise
and improve the code from work to the latest master.



Whilst I could have submitted a patch with this proposal, I feel that the
filtering and viewing issues functionality within Mantis is key to the
usability of Mantis - and arguably it's success or failure, that I'd rather
see what views and opinions people have first :) - and see if others in the
community have any good suggestions or ideas that could be covered as part
of looking at improving this part of Mantis.



Paul
Robert Munteanu
2014-07-31 15:26:25 UTC
Permalink
Hi Paul,
Post by P Richards
Hi All,
I’ve been experimenting for a while about whether to make use of
http://datatables.net/ for the view issues list and related filtering
functionality
The aim here would be to modernise and try and improve the existing
· Make use of Ajax requests for filtering response to avoid a full
page load.
· Try to simplify the filtering options that are currently above the
view issues page to take up less space on the screen.
· Allow easy colour theming of the grid for non-technical users -
Data Tables provides colour theming functionality through the use of
jquery’s themeroller (http://jqueryui.com/themeroller/ ), and I know in 1.3
we move what used to be the jquery plugin into the core, and include jquery
UI in the core, as well as its own theme creator
(http://datatables.net/manual/styling/theme-creator ). Of course, making use
of Jquery’s theme roller would allow someone who has a plugin utilising
jquery ui already to theme both the grid and the plugin in one go.
I’ve done a bunch of preliminary work for a while now into this (and
actually make use of a hacked up implementation of the datatable
functionality on my work Mantis instance), I’d like to sit down and try and
get an implementation done that would be suitable to include in the open
source version of Mantis.
· Whether people feel that making use of datatables for the View
issues functionality specifically would be useful, and improve the current
behaviour.
· Whether, whilst it works in my work environment (Which is
controlled in terms of browsers/devices/people using it), would be a bad
idea to try and make work as part of the core Mantis
Datatables requires Javascript AFAIU, but I think that by know it's
safe to do so in Mantis.
Post by P Richards
· Given the suggestion of using datatables, whether there are any
key things to consider when doing an initial implementation i.e. ideas of
things you would like to see
Well, it it plays nicely with the current filter table it works for me.
Post by P Richards
· How important it would be to support the use of jquery’s
themeroller to allow customising the colours of the datatable in an easy to
use manner.
I think we should fallback to whatever theme we have applied to
Mantis, so no independent theming should be possible.

Robert
Post by P Richards
I’ve obviously got some ideas on the above, and some background experience
having added it to my work instance of Mantis, of what I think works, but it
would be good to get some feedback/thoughts from both users and others on
the dev team on this concept before spending time trying to port, generalise
and improve the code from work to the latest master.
Whilst I could have submitted a patch with this proposal, I feel that the
filtering and viewing issues functionality within Mantis is key to the
usability of Mantis – and arguably it’s success or failure, that I’d rather
see what views and opinions people have first J - and see if others in the
community have any good suggestions or ideas that could be covered as part
of looking at improving this part of Mantis.
Paul
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
mantisbt-dev mailing list
https://lists.sourceforge.net/lists/listinfo/mantisbt-dev
--
http://robert.muntea.nu/
P Richards
2014-08-17 23:29:46 UTC
Permalink
Rombert,

I know you I replied to you offlist briefly when you sent this as I was on a cruise, so to follow up now:

" Datatables requires Javascript AFAIU, but I think that by know it's safe to do so in Mantis."

At the moment, we do actually have a $g_use_javascript option to turn off javascript. I think we need to consider whether this actually makes sense to have - any user can still turn javascript off in any modern browser I believe - so I'm not sure this option makes sense ;)

I think the bigger question is whether we want to require Javascript, or not. If you take the other post I just sent regarding graphviz - if a user has jscript disabled, should they still be able to get a graph. >
Robert Munteanu
2014-08-19 12:56:24 UTC
Permalink
Post by P Richards
I think the bigger question is whether we want to require Javascript, or not.
I would say that we require Javascript. Users without Javascript
enabled ( like me using NoScript :-) ) already expect things to break.

Robert
--
http://robert.muntea.nu/
P Richards
2014-08-30 23:56:30 UTC
Permalink
Robert,

Following this discussion, I've generated a PR
https://github.com/mantisbt/mantisbt/pull/287 to obsolete the use_javascript
configuration option.

As part of testing this, I've noticed that the check_selected() type
checking setting that was added completely breaks filtering if javascript is
not enabled -

I'll try and work out a fix for that tomorrow, as I'm guessing do we want
the front end to fall back gracefully if someone is using noscript etc where
possible.

Paul


-----Original Message-----
From: Robert Munteanu [mailto:***@gmail.com]
Sent: 19 August 2014 13:56
To: developer discussions
Subject: Re: [mantisbt-dev] View Issues Page
Post by P Richards
I think the bigger question is whether we want to require Javascript, or not.
I would say that we require Javascript. Users without Javascript enabled (
like me using NoScript :-) ) already expect things to break.

Robert

--
http://robert.muntea.nu/

----------------------------------------------------------------------------
--

Robert Munteanu [mailto:]=20
1970-01-01 00:00:00 UTC
Permalink
In terms of others, apart from Rombert and a couple of users off list, I =
don't recall anyone else coming up with any feedback or comments... is =
that because it's a sensible idea so no one had comments or what? :)

Paul

-----Original Message-----
From: Robert Munteanu [mailto:***@gmail.com]=20
Sent: 31 July 2014 16:26
To: developer discussions
Cc: Help with Mantis
Subject: Re: [mantisbt-dev] View Issues Page

Hi Paul,
Post by P Richards
Hi All,
I=E2=80=99ve been experimenting for a while about whether to make use =
of=20
Post by P Richards
http://datatables.net/ for the view issues list and related filtering =
functionality
The aim here would be to modernise and try and improve the existing
=C2=B7 Make use of Ajax requests for filtering response to =
avoid a full
Post by P Richards
page load.
=C2=B7 Try to simplify the filtering options that are =
currently above the
Post by P Richards
view issues page to take up less space on the screen.
=C2=B7 Allow easy colour theming of the grid for non-technical =
users -
Post by P Richards
Data Tables provides colour theming functionality through the use of=20
jquery=E2=80=99s themeroller (http://jqueryui.com/themeroller/ ), and =
I know=20
Post by P Richards
in 1.3 we move what used to be the jquery plugin into the core, and=20
include jquery UI in the core, as well as its own theme creator=20
(http://datatables.net/manual/styling/theme-creator ). Of course,=20
making use of Jquery=E2=80=99s theme roller would allow someone who =
has a=20
Post by P Richards
plugin utilising jquery ui already to theme both the grid and the =
plugin in one go.
Post by P Richards
I=E2=80=99ve done a bunch of preliminary work for a while now into =
this (and=20
Post by P Richards
actually make use of a hacked up implementation of the datatable=20
functionality on my work Mantis instance), I=E2=80=99d like to sit =
down and=20
Post by P Richards
try and get an implementation done that would be suitable to include=20
in the open source version of Mantis.
=C2=B7 Whether people feel that making use of datatables for =
the View
Post by P Richards
issues functionality specifically would be useful, and improve the=20
current behaviour.
=C2=B7 Whether, whilst it works in my work environment (Which =
is
Post by P Richards
controlled in terms of browsers/devices/people using it), would be a=20
bad idea to try and make work as part of the core Mantis
Datatables requires Javascript AFAIU, but I think that by know it's safe =
to do so in Mantis.
Post by P Richards
=C2=B7 Given the suggestion of using datatables, whether there =
are any
Post by P Richards
key things to consider when doing an initial implementation i.e. ideas =
of things you would like to see
Well, it it plays nicely with the current filter table it works for me.
Post by P Richards
=C2=B7 How important it would be to support the use of =
jquery=E2=80=99s
Post by P Richards
themeroller to allow customising the colours of the datatable in an=20
easy to use manner.
I think we should fallback to whatever theme we have applied to Mantis, =
so no independent theming should be possible.

Robert
Post by P Richards
I=E2=80=99ve obviously got some ideas on the above, and some =
background=20
Post by P Richards
experience having added it to my work instance of Mantis, of what I=20
think works, but it would be good to get some feedback/thoughts from=20
both users and others on the dev team on this concept before spending=20
time trying to port, generalise and improve the code from work to the =
latest master.
Post by P Richards
Whilst I could have submitted a patch with this proposal, I feel that=20
the filtering and viewing issues functionality within Mantis is key to =
the usability of Mantis =E2=80=93 and arguably it=E2=80=99s success or =
failure, that=20
Post by P Richards
I=E2=80=99d rather see what views and opinions people have first J - =
and see=20
Post by P Richards
if others in the community have any good suggestions or ideas that=20
could be covered as part of looking at improving this part of Mantis.
Paul
----------------------------------------------------------------------
-------- Want fast and easy access to all the code in your enterprise? =
Index and search up to 200,000 lines of code with a free copy of Black =
Duck Code Sight - the same software that powers the world's largest=20
code search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
mantisbt-dev mailing list
https://lists.sourceforge.net/lists/listinfo/mantisbt-dev
--
http://robert.muntea.nu/

-------------------------------------------------------------------------=
-----
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.=20
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=3D153845071&iu=3D/4140/ostg=
.clktrk
Continue reading on narkive:
Loading...