Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(recordings): more tools for filtering by labels (#503)
* fix(tests,history): specify initEntries for createMemoryHistory * fix(test, recordings): add router for all rendered components * fix(test, activeRecording): add cleanup after each tests * fix(filters): filter dropdown should close after selecting * chore(filters): move state filter to its own source file * fix(filters): current filter category should remain * fix(filters): users should able to bulk delete filters in the same category * !tmp(tests): add mocks until new filter features are implemented * chore(filters): move durationFilter to a separate source file * chore(filters): move filters to subdirectory of Recordings * chore(filters): renaming variables * chore(filters): move filter category interfaces to RecordingFilters file * fix(filters): filtered labels should be highlighted * fix(filters): recording labels are now clickable * fix(test-snapshots): update test snapshots * fix(filters): add missing deps in useCallBacks * fix(filters): better naming for props callback * fix(filters): use a common func to get label display format * fix(filters): better handling of label filter search * feat(storage): add utility func to store filter states to local storage * feat(storage): set up Redux for state management * fix(storage): only save recording filters to local storage * fix(redux): redux should store unfiltered recordings * chore(storage): move local storage utilities to util directory * tmp: save selected indices of recordings to redux store * fix(redux): update redux actions and reducers * feat(filters): recording filters now persist across views * fix(recording-tables): add missing deps for react callbacks and memos * fix(filters): fix clearAllFilters button * feat(labels): clickable labels should be highlighted on hover * fix(applayout): add unique keys for each child component in list * feat(filters): filter states should be saved to local storage * fix(filters): state filter now allows toggling * fix(filters): fix datetime picker component layout * chore(filters): rename disPatch to dispatch * fix(filters): add explain comments for datetime picker appendTo props * test(filters): add test for NameFilter * fix(filter): header check should update when filter changes * fix(filters): labels in filter should be sorted * fix(filter): optimize callbacks for NameFilter * fix(active-recording-table): header and checked indices now update properly * fix(archived-recording-table): header and checked indices now update properly * fix(bulk-edit): bulk-edit must choose correctly selected rows * fix(filters): name and label filters should excluded the selected options * fix(filters): update callback deps * fix(fitlers): remove unused states in filter * fix(jest): add jest-dom as a setup file for nested test files * test(filters): update tests for NameFilter * test(filters): add unit test for LabelFilter * fix(filters): remove log calls * test(filter): add test for DurationFilter * test(filter): add test for RecordingStateFilter * test(filters): fix RecordingStateFilter tests * fix(datetimepicker): set document.body as default element to bind popover * test(filters): check if recording state filter is closed on toggle * fix(datetimepicker): datetime is now correct without time set and time change should be reflected in datetime * test(filters): add tests for DateTimePicker * fix(datetimepicker): move func to find menu mount point outside component * test(datepicker): fix test imports * chore(filters): move ClickableLabel to separate source file * test(clickable-label): add unit tests for clickable label * tests(filters): add tests for LabelCell * fix(filters): calculate hash for archive recording indexes * fix(bulk-edit): remove unnecessary notification sub * fix(bulk-edit): use props to check if a recording list is active/archived * tests(bulk-edit): add unit tests for labe bulk-edit * fix(redux): reword comment and add type hints * feat(redux): add type for root state and dispatch * fix(redux): export wrapper setupStore * feat(redux): allow preloading state into store and define redux type hints * feat(redux-test): add wrapper for redux Provider in tests * test(filters): add unit test for recording fitlers * test(recordings): fix tests for active recording table * test(recordings): fix archived recording table tests * fix(local-storage): update comments * chore(filters): add missing memo deps * test(filters): add check if approriate filter input is shown * chore(filters): refactor toolbar from recording table * fix(filters): label and name filter should close menu on selection * fix(toolbars): delete warning should be open on clicked if enabled * fix(recordings): limit calls to context.settings with React memo * test(recordings): fix tests * fix(recordings): fix drawer id * test(filter): fix datepicker filter * test(active-recording): update snapshots * test(datepicker): clean up date mocks * chore(filters): rename, clean up comments and callbacks * fix(labelcell): group prop fields * chore(filters): rename recording categories to singulars * chore(filters): move hashCode method to utils module * fix(filters): add missing deps * fix(delete-modal): move delete-modal flag inside toolbars * fix(filters): mount menu to document.body * fix(datepicker): remove unused deps * fix(filters): fix filter name should in singulars * test(filters): update tests * fix(filters): do not render unncessary filters in Archived view * fix(filters): filters display should be fixed for each type of recording
- Loading branch information