This PR mainly fixes advanced filters on kanban view. It also fixes various bugs and cleans some old states. ## Advanced filters on kanban views Kanban views use a different hook to retrieve data from the backend : useLoadRecordIndexBoardColumn, this hook wasn't using the new state currentRecordFilterGroupsComponentState. ## Removal of confusing duplicate states A few different states were used for filters and states, where we only need one for filters and one for sorts for all indexes. So we remove here the different states that can lead to confusion about what state should be used in what case. States removed : - recordIndexFilterState - recordIndexSortState - recordIndexViewFilterGroupsState - tableFiltersComponentState - tableSortsComponentState We also remove the logic that was used to manage those states. ## Abstracted non composite field type check into a util We abstract the check made in mapFieldMetadataToGraphQLQuery into a util isNonCompositeField, because those kinds of checks should be stored into a separate unique file that acts as a source of truth. ## Bug with advanced filter rule position not saved The position of an advanced filter rule wasn't correctly saved in the backend, here we remove the WorkspaceIsSystem decorator on the positionInViewFilterGroup fields. The function that saved view filters was also ignoring the field positionInViewFilterGroup, we add it back. ## Bug with view picker option dropdown closing weirdly The view picker option dropdown was closing as soon as we hovered outside of the option dropdown, which was annoying for the user, here we apply the same behavior as every dropdown in the app : closing on click outside.
Run yarn dev while server running on port 3000