FET Forum

FET Development => Suggestions => Topic started by: Davide G. M. Salvetti on November 10, 2011, 09:56:17 PM

Title: interface improvement: sort constraints
Post by: Davide G. M. Salvetti on November 10, 2011, 09:56:17 PM
Hi,

out of my experience, when you have a lot of constraints (say, teacher not available constraints, min days between activities, min hours daily, ...), it would be desirable to be allowed to sort them, just like one can sort teacher, subjects, and so on.  The filter really helps finding out things, but works unfortunately in one-at-a-time only mode.  Sorting constraints (say, by teacher surname, by student group, et coetera, whenever and wherever appliable) would IMO allow a more productive management of the constraints set.

On a similar ease of management vein, I would also add the possibility to specify min hour daily = 1, just to allow the user to raise and lower this parameter at will, even to 1, without needing to delete and add again the constraints (which, if done for many teachers, in the absence of sorting, let's the list quickly turn into a mess); of course fet should plainly ignore min hour daily = 1, treating it like interface sugar, because the allow empty days box should always be kept checked in this case.

What do you think?
Title: Re: interface improvement: sort constraints
Post by: Liviu Lalescu on November 11, 2011, 06:35:25 AM
I'll think of this.

For first part, sorting, this is complicated, but I'll think about it.

Second part: maybe an "active" flag for constraints. But I can only take care of this in all time/space constraints, because there is no space to add this in each constraint's dialog. Would that be OK? I mean add two buttons in all time/space constraints, "Activate" and "Deactivate".
Title: Re: interface improvement: sort constraints
Post by: Liviu Lalescu on November 11, 2011, 09:26:58 AM
I thought some more:

Each constraint has Boolean 'active' and string 'comments'. Sorting is based on comments (so the user can add comment like: "rank: 1", "rank: 2"). And 'active' and 'comments' can only be edited from all time/space constraints.
Title: Re: interface improvement: sort constraints
Post by: Davide G. M. Salvetti on November 11, 2011, 10:10:03 AM
Quote from: Liviu Lalescu on November 11, 2011, 09:26:58 AM
I thought some more:

Each constraint has Boolean 'active' and string 'comments'. Sorting is based on comments (so the user can add comment like: "rank: 1", "rank: 2"). And 'active' and 'comments' can only be edited from all time/space constraints.


That would be very good:
Title: Re: interface improvement: sort constraints
Post by: Liviu Lalescu on November 12, 2011, 12:44:48 PM
I did this, see Snapshot section: http://lalescu.ro/liviu/fet/forum/index.php?topic=1040.msg6029

I added comments for activities and constraints, and activate/deactivate constraints, and sort constraints based on comments.

Please test and report results.