* cherry pick -make new * revert to enable fix from release * attempt to hook into existing datasource editor * gSheets plugin skeleton from Rest API * Changes for database migration * fix for auth code * separate it out * action page loads! * add to explorer * create action from datasource * Editor JSON WIP * working query form * Editor JSON WIP * import to * fix toast message * redirect from datasource and editor pages * fix onboarding * fix imports and constants * refactor form out * refactor queryForm * Merge branch 'release' into feature/google-sheets * Merge branch 'release' into feature/google-sheets * initial values from settings, editor and form * Check * remove dangling code around lightTheme * Safety net * remove class * try mouseover solve * force click * changes from review * fix action form name on import * Merge branch 'release' into feature/google-sheets * minor cleanup * Merge branch 'release' into feature/google-sheets * WIP * Google sheets changes * Merge conflicts * Merging and fixes, needs refactoring * Check * Merge branch 'release' into feature/google-sheets * Fixed tests * Add cloud services env variable * Clean up saga * Clean up * Refactoring * Deleted svg file * Minor fixes * Modified design to allow behaviour in google sheets methods (#3486) * Modified design to allow behaviour in google sheets methods * Review changes * Removed sysout * Added handling of edge cases with table data * Merge branch 'release' into feature/google-sheets * Fixes * Fixes * Added validations * Improved tests * Removed extraneous injected bean * Review changes * Fixed bug with method * Changes to Google sheets plugin's request and response structures (#3692) * Method changes * Removed logging * Renaming options * Reverting pom version * Modified type of collection variables, fixed errors * Converted row offset field to one that supports dynamic bindings * Review changes * List SAAS plugin type actions under lightning menu apis (#3820) * list saas plugin type actions under lightning menu apis * combine saas plugin type actions in the other sub menu of lightning menu Co-authored-by: Hetu Nandu <hetunandu@gmail.com> * Fix merge issues * Prettified query editor and a few fixes w/ ux * Test fixes * Reformatting request * code for REST added (#3876) Co-authored-by: hetunandu <hetu@appsmith.com> * Renamed body to row object * Renamed placeholder for range * Renamed range heading * Modifications to handle range semantics * Use spreadsheet Url instead of id * Ordering of methods * Removed logging * Add tests for Dynamic text controls * Add tests for url helpers * Fix coverage config * Nevermind * Interface changes * There is no body here * Yay to hints * Delete row field is separately handled as row index * placeholder support (#4001) * Fixed tests, typos and creating new sheets with random rows * Switched to using 'rowIndex' throughout * binding path added for query input field (#4016) * - Fixed QA bugs (#4032) - Split delete sheet into two - Removed dynamic query input types from hidden keys * Proper exceptions * Removed extra logging * Throw exception if update method does not match any of the columns * Same for bulk update * Zero-indexed delete row * I'm a space bound rocket ship * Logic to register installations with cs (#4062) * Logic to register installations with cs * Clean up * Casting to string * Checking to see if this makes the test pass * Added an extra null check Co-authored-by: Piyush <piyush@codeitout.com> Co-authored-by: hetunandu <hetu@appsmith.com> Co-authored-by: Hetu Nandu <hetunandu@gmail.com> Co-authored-by: Apeksha Bhosale <7846888+ApekshaBhosale@users.noreply.github.com>
48 lines
1.4 KiB
TypeScript
48 lines
1.4 KiB
TypeScript
import { reduxBatch } from "@manaflair/redux-batch";
|
|
import { createStore, applyMiddleware, compose } from "redux";
|
|
import {
|
|
useSelector as useReduxSelector,
|
|
TypedUseSelectorHook,
|
|
} from "react-redux";
|
|
import appReducer, { AppState } from "./reducers";
|
|
import createSagaMiddleware from "redux-saga";
|
|
import { rootSaga } from "sagas";
|
|
import { composeWithDevTools } from "redux-devtools-extension/logOnlyInProduction";
|
|
import * as Sentry from "@sentry/react";
|
|
import { ReduxActionTypes } from "constants/ReduxActionConstants";
|
|
|
|
const sagaMiddleware = createSagaMiddleware();
|
|
const sentryReduxEnhancer = Sentry.createReduxEnhancer({
|
|
actionTransformer: (action) => {
|
|
if (
|
|
action.type === ReduxActionTypes.SET_EVALUATED_TREE ||
|
|
action.type === ReduxActionTypes.EXECUTE_API_ACTION_SUCCESS
|
|
) {
|
|
// Return null to not log the action to Sentry
|
|
action.payload = null;
|
|
}
|
|
return action;
|
|
},
|
|
});
|
|
|
|
export default createStore(
|
|
appReducer,
|
|
composeWithDevTools(
|
|
reduxBatch,
|
|
applyMiddleware(sagaMiddleware),
|
|
reduxBatch,
|
|
sentryReduxEnhancer,
|
|
),
|
|
);
|
|
|
|
export const testStore = (initialState: Partial<AppState>) =>
|
|
createStore(
|
|
appReducer,
|
|
initialState,
|
|
compose(reduxBatch, applyMiddleware(sagaMiddleware), reduxBatch),
|
|
);
|
|
|
|
sagaMiddleware.run(rootSaga);
|
|
|
|
export const useSelector: TypedUseSelectorHook<AppState> = useReduxSelector;
|