@@ -5,7 +5,6 @@ import StaticTestsTreeBuilder from '../../tests-tree-builder/static';
55import actionNames from './action-names' ;
66import { types as modalTypes } from '../components/modals' ;
77import { QUEUED } from '../../constants/test-statuses' ;
8- import viewModes from '../../constants/view-modes' ;
98import diffModes from '../../constants/diff-modes' ;
109import { getHttpErrorMessage } from './utils' ;
1110import { fetchDataFromDatabases , mergeDatabases , connectToDatabase , getMainDatabaseUrl , getSuitesTableRows } from '../../db-utils/client' ;
@@ -188,7 +187,6 @@ export const expandAll = () => ({type: actionNames.VIEW_EXPAND_ALL});
188187export const expandErrors = ( ) => ( { type : actionNames . VIEW_EXPAND_ERRORS } ) ;
189188export const expandRetries = ( ) => ( { type : actionNames . VIEW_EXPAND_RETRIES } ) ;
190189export const collapseAll = ( ) => ( { type : actionNames . VIEW_COLLAPSE_ALL } ) ;
191- export const toggleSkipped = ( ) => ( { type : actionNames . VIEW_TOGGLE_SKIPPED } ) ;
192190export const processBegin = ( ) => ( { type : actionNames . PROCESS_BEGIN } ) ;
193191export const processEnd = ( ) => ( { type : actionNames . PROCESS_END } ) ;
194192export const updateBaseHost = ( host ) => ( { type : actionNames . VIEW_UPDATE_BASE_HOST , host} ) ;
@@ -202,6 +200,7 @@ export const togglePageScreenshot = () => ({type: actionNames.TOGGLE_PAGE_SCREEN
202200export const updateBottomProgressBar = ( payload ) => ( { type : actionNames . UPDATE_BOTTOM_PROGRESS_BAR , payload} ) ;
203201export const toggleTestsGroup = ( payload ) => ( { type : actionNames . TOGGLE_TESTS_GROUP , payload} ) ;
204202export const groupTestsByKey = ( payload ) => ( { type : actionNames . GROUP_TESTS_BY_KEY , payload} ) ;
203+ export const changeViewMode = ( payload ) => ( { type : actionNames . CHANGE_VIEW_MODE , payload} ) ;
205204
206205export const runCustomGuiAction = ( payload ) => {
207206 return async ( dispatch ) => {
@@ -225,16 +224,6 @@ export const setStrictMatchFilter = (strictMatchFilter) => {
225224 return { type : actionNames . VIEW_SET_STRICT_MATCH_FILTER , strictMatchFilter} ;
226225} ;
227226
228- export function changeViewMode ( mode ) {
229- switch ( mode ) {
230- case viewModes . FAILED :
231- return { type : actionNames . VIEW_SHOW_FAILED } ;
232- case viewModes . ALL :
233- default :
234- return { type : actionNames . VIEW_SHOW_ALL } ;
235- }
236- }
237-
238227export function changeDiffMode ( mode ) {
239228 switch ( mode ) {
240229 case diffModes . ONLY_DIFF . id :
0 commit comments