Filters in the visualisation page need to be split into files
This file below starts to be a huge file, and it is hard to work easily inside.
https://gitlab.com/sis-cc/.stat-suite/dotstatsuite-data-explorer/-/blob/develop/src/web/components/vis-side.js
That will be good to split this file into multiples files regarding the component:
-
./vis-side/used-filters.js
(UsedFilters
,SpecialUsedFilters
,FiltersCurrent
) -
./vis-side/filters.js
(Filters
) -
./vis-side/period.js
(Period
,LastNPeriod
,FilterPeriod
)
This refactoring has already been started during the feature contentConstraints
by moving the panel "data availability" in
./vis-side/content-constraints
It can be good to rename some specific component
-
SpecialUsedFilters
=>FrequencyPeriodUsedFilters
-
./vis-side/content-constraints
=>./vis-side/data-availability
and if possible simplify them, some children use exactly the same props than his parent.
Edited by Mike Velluet