spine-tools / Spine-Toolbox

Spine Toolbox is an open source Python package to manage data, scenarios and workflows for modelling and simulation. You can have your local workflow, but work as a team through version control and SQL databases.
https://www.tools-for-energy-system-modelling.org/
GNU Lesser General Public License v3.0
72 stars 17 forks source link

Stronger visual cue for alternative filtering #2009

Open DillonJ opened 1 year ago

DillonJ commented 1 year ago

Sometimes you can forget that a specific alternative filter is active and it can take some time to understand why you can't see some data that you think you should be able to see. Maybe we can have a stronger visual cue when altnerative filtering is active? Maybe a coloured selection box or something appearing in the corner of DB editor or some text in the parameter value pane header?

jkiviluo commented 1 year ago

Happens to me too.

I think the parameter value header could change background color (e.g. from current light grey to light blue) and change from Parameter value to Parameter value [FILTERED by alternative] (in the new data structure where there is only one parameter value table)

I guess the same applies to being filtered by entity_class and entity - and could have the same treatment.

jkiviluo commented 1 year ago

Maybe the color cue for alternatives could be added for 0.7 and the rest in 1.0 (since the entity change will influence all of this). But if it's all piece of cake, please go ahead.

PiispaH commented 5 months ago

~So this issue is about the scenario filter in the db editors toolbar that hides items like entities and parameter values? Is the idea to also have these color and text changes in the header of every affected dock widget every time something is selected from entity, scenario or alternative -trees? @jkiviluo @DillonJ~

Okay, I see now that you are probably talking about the filters from the tables that can be set by clicking on a header.

PiispaH commented 4 months ago

The above pr implements the column filter indicators in the tables. Indicators for the spinedb-api -level scenario filter have not yet been implemented, beside the old magenta colored icon.