<commit_before>import { Record } from 'immutable';
import { SET_MENU_OPEN, SET_TOUR } from './action-types';

export const UserInterfaceState = new Record({
  isMenuOpen: false,
  // Set the walkthrough. aka tour
  tour: {
    isShow: false,
    step: 0
  }
});

export function userInterfaceReducer(state = new UserInterfaceState(), action) {
  switch (action.type) {

    case SET_MENU_OPEN:
      return state.merge({
        isMenuOpen: action.payload
      });

    case SET_TOUR:
      return state.merge({
        tour: action.payload,
      });

    default:
      return new UserInterfaceState();
  }
}
<commit_msg>Found a critical bug in the user interface reducer that was reset on every default event. So even if a task was updated it reset the reducer and got the menu to be closed. Leading to users affecting each other and closing the menu. No more<commit_after>import { Record } from 'immutable';
import { SET_MENU_OPEN, SET_TOUR } from './action-types';

export const UserInterfaceState = new Record({
  isMenuOpen: false,
  // Set the walkthrough. aka tour
  tour: {
    isShow: false,
    step: 0
  }
});

export function userInterfaceReducer(state = new UserInterfaceState(), action) {
  switch (action.type) {

    case SET_MENU_OPEN:
      return state.merge({
        isMenuOpen: action.payload
      });

    case SET_TOUR:
      return state.merge({
        tour: action.payload,
      });

    default:
      return state;
  }
}

{'fraction_non_alphanumeric': 0.09690721649484536, 'fraction_numerical': 0.0013745704467353953, 'mean_word_length': 2.9565217391304346, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5083377', 'n_tokens_mistral': 445, 'n_tokens_neox': 430, 'n_words': 144}