This PR improves advanced filter code and fixes the bug that prevented the creation of a filter group. On the debugging side : - Adding an advanced filter rule to create a group now works On the refactoring side : - We now use AdvancedFilterRecordFilterGroupChildOptionsDropdown to clarify the code that show the option dropdown of a group. - Refacatored useCurrentViewViewFilterGroup to useChildRecordFiltersAndRecordFilterGroups. It is now using only RecordFilter and RecordFilterGroup type instead of view types. It also exports recordFilters and recordFilterGroups alone, when they are children of a group, so we don't have to extract them from the merged array that is typed RecordFilter | RecordFilterGroup, which is necessary for displaying a group. - Two typeguards have been introduced to help discern RecordFilter from RecordFilterGroup : isRecordFilterGroupChildARecordFilterGroup and isRecordFilterGroupChildARecordFilter, this allows to remove any typing on child processing. - Renaming from view to record (but there are still some left)
Run yarn dev while server running on port 3000