Initial state and reducer notes
Initial State
Unused State
addressSearchPreference: 'address',
markersCopy: [],
showAddressChangeBtn: false,
selectedCheckboxes: [],
selectedStars: {},
zoom: 13,
addressVerified: false,
modalOpen: false
modalSize: 'lg', //sm,md,lg,fluid
modalBody: {},
addToCartBtnText: 'add to list',
soilData.Ponding_Frequency: '',
cropDetailModal: false,
greenbarExpanded: false,
isSoilDataLoading: false,
cashCropData.name: '',
Only used in one place.
addressChangedViaMap - GoogleAutocomplete.js
fullAddress - GoogleAutocomplete.js
zip - Header.js
zipCode - Header.js
lastZipCode - Header.js
allGoals - GoalsSelector.js
snackOpen - app.js
snackVertical - app.js
snackHorizontal - app.js
snackMessage - app.js
zoneToggle - cropSidebar.js
state.soilDataOriginal - Reducer.js ***
soilData.Map_Unit_Name - Greenbar.js
the weatherData object info needs to be revewed
crop-data.js that arent used anywhere (zone 7)
Standard Fall/Winter Seeding Rate Date End
Late Fall/Winter Seeding Rate Date Start
Standard Fall/Winter Seeding Rate Date Start
ITIS TSN
only in JSON objects
Notes: Environmental Tolerances
Reducer Info
part of what i am working on is going to be refactoring things to remove the calls using “change” to use dispatch.
never used:
FALSE
JUMP_SPECIES_PROGRESS
WEATHER_DATA_RESET
CHANGE_ADDRESS_BY_TYPING
UPDATE_LAST_ZONE
UPDATE_MARKER_COPY
UPDATE_ADDRESS_ON_MAP_CLICK
TOGGLE_ADDRESS_CHANGE_BUTTON
TOGGLE_CROP_DETAIL_MODAL
UPDATE_SELCTED_CHECKBOXES
UPDATE_ADDRESS_SEARCH_PREFERENCE
UPDATE_ACTIVE_GROWTH_PERIOD*
IN CHANGE:
TOGGLE
TRUE
MOVED TO DISPATCH:
UPDATE_ACTIVE_CROP_DATA
LAST_ZIP_CODE
UPDATE_CONSENT
UPDATE_PROGRESS
UPDATE_LOCATION
UPDATE_ZONE_TEXT
CHANGE_ADDRESS
CHANGE_ADDRESS_VIA_MAP
RESET
UPDATE_MARKER
ADD_GOALS
SNACK
UPDATE_SELECTED_GOALS
ADD_SELECTED_GOALS
DRAG_GOALS
PULL_CROP_DATA
SELECTED_CROPS_MODIFIER
ACTIVATE_MY_COVER_CROP_LIST_TILE
ACTIVATE_SPECIES_SELECTOR_TILE
UPDATE_WEATHER_CONDITIONS
UPDATE_FROST_FREE_DAYS
UPDATE_AVERAGE_FROST_DATES
UPDATE_AVERAGE_PRECIP_CURRENT_MONTH
UPDATE_AVERAGE_PRECIP_ANNUAL
SET_AJAX_IN_PROGRESS
TOGGLE_SOIL_LOADER
UPDATE_SOIL_DATA
UPDATE_SOIL_DATA_ORIGINAL
UPDATE_DATE_RANGE
UPDATE_ZIP_CODE
UPDATE_DRAINAGE_CLASS
UPDATE_FLOODING_FREQUENCY
UPDATE_COMPARISON_KEYS
Both change and dispatch:
UPDATE_ZONE