Skip to content

Commit 2b8764e

Browse files
authored
Merge pull request #459 from appsmithorg/release
Release
2 parents de161d9 + 8a0805d commit 2b8764e

File tree

37 files changed

+594
-142
lines changed

37 files changed

+594
-142
lines changed

app/client/cypress/integration/Smoke_TestSuite/ApiFlow/CurlImportFlow_spec.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ describe("Test curl import flow", function() {
66
localStorage.setItem("ApiPaneV2", "ApiPaneV2");
77
cy.NavigateToApiEditor();
88
cy.get(ApiEditor.curlImage).click({ force: true });
9-
cy.get("textarea").type(
10-
"curl -X GET http://app.appsmith.com/scrap/api?slugifiedName=Freshdesk&ownerName=volodimir.kudriachenko",
11-
);
9+
cy.get("textarea").type("curl -X GET https://mock-api.appsmith.com/users");
1210
cy.importCurl();
1311
cy.get("@curlImport").then(response => {
1412
cy.expect(response.response.body.responseMeta.success).to.eq(true);

app/client/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
"@craco/craco": "^5.6.1",
1717
"@manaflair/redux-batch": "^1.0.0",
1818
"@optimizely/optimizely-sdk": "^4.0.0",
19-
"@sentry/browser": "^5.6.3",
20-
"@sentry/webpack-plugin": "^1.10.0",
19+
"@sentry/react": "^5.22.0",
20+
"@sentry/tracing": "^5.22.0",
21+
"@sentry/webpack-plugin": "^1.12.1",
2122
"@types/chance": "^1.0.7",
2223
"@types/lodash": "^4.14.120",
2324
"@types/moment-timezone": "^0.5.10",
@@ -55,6 +56,7 @@
5556
"fusioncharts": "^3.15.0-sr.1",
5657
"history": "^4.10.1",
5758
"husky": "^3.0.5",
59+
"immer": "^7.0.8",
5860
"instantsearch.css": "^7.4.2",
5961
"instantsearch.js": "^4.4.1",
6062
"interweave": "^12.1.1",

app/client/src/actions/actionActions.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,38 @@ export const runAction = (id: string, paginationField?: PaginationField) => {
6767
};
6868
};
6969

70+
export const runActionInit = (
71+
id: string,
72+
paginationField?: PaginationField,
73+
) => {
74+
return {
75+
type: ReduxActionTypes.RUN_ACTION_INIT,
76+
payload: {
77+
id,
78+
paginationField,
79+
},
80+
};
81+
};
82+
83+
export const showRunActionConfirmModal = (show: boolean) => {
84+
return {
85+
type: ReduxActionTypes.SHOW_RUN_ACTION_CONFIRM_MODAL,
86+
payload: show,
87+
};
88+
};
89+
90+
export const cancelRunActionConfirmModal = () => {
91+
return {
92+
type: ReduxActionTypes.CANCEL_RUN_ACTION_CONFIRM_MODAL,
93+
};
94+
};
95+
96+
export const acceptRunActionConfirmModal = () => {
97+
return {
98+
type: ReduxActionTypes.ACCEPT_RUN_ACTION_CONFIRM_MODAL,
99+
};
100+
};
101+
70102
export const updateAction = (payload: { id: string }) => {
71103
return batchAction({
72104
type: ReduxActionTypes.UPDATE_ACTION_INIT,
@@ -196,6 +228,13 @@ export const updateActionProperty = (
196228
});
197229
};
198230

231+
export const setActionsToExecuteOnPageLoad = (actions: string[]) => {
232+
return {
233+
type: ReduxActionTypes.SET_ACTION_TO_EXECUTE_ON_PAGELOAD,
234+
payload: actions,
235+
};
236+
};
237+
199238
export default {
200239
createAction: createActionRequest,
201240
fetchActions,

app/client/src/api/ActionAPI.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,12 @@ class ActionAPI extends API {
182182
static executeQuery(executeAction: any): AxiosPromise<ActionApiResponse> {
183183
return API.post(ActionAPI.url + "/execute", executeAction);
184184
}
185+
186+
static toggleActionExecuteOnLoad(actionId: string, shouldExecute: boolean) {
187+
return API.put(ActionAPI.url + `/executeOnLoad/${actionId}`, undefined, {
188+
flag: shouldExecute.toString(),
189+
});
190+
}
185191
}
186192

187193
export default ActionAPI;

app/client/src/api/PageApi.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ export type FetchPublishedPageResponse = ApiResponse & {
4545
};
4646

4747
export interface SavePageResponse extends ApiResponse {
48-
pageId: string;
48+
data: {
49+
id: string;
50+
layoutOnLoadActions: PageAction[][];
51+
dsl: Partial<ContainerWidgetProps<any>>;
52+
};
4953
}
5054

5155
export interface CreatePageRequest {

app/client/src/components/designSystems/appsmith/ChartComponent.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,20 @@ class ChartComponent extends React.Component<ChartComponentProps> {
231231
componentDidMount() {
232232
this.createGraph();
233233
FusionCharts.ready(() => {
234-
this.chartInstance.render();
234+
/* Component could be unmounted before FusionCharts is ready,
235+
this check ensure we don't render on unmounted component */
236+
if (this.chartInstance) {
237+
this.chartInstance.render();
238+
}
235239
});
236240
}
237241

242+
componentWillUnmount() {
243+
if (this.chartInstance) {
244+
this.chartInstance = null;
245+
}
246+
}
247+
238248
componentDidUpdate(prevProps: ChartComponentProps) {
239249
if (!_.isEqual(prevProps, this.props)) {
240250
const chartType = this.getChartType();

app/client/src/components/designSystems/appsmith/TableStyledWrappers.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ export const TableHeaderWrapper = styled.div<{
291291
.show-page-items {
292292
display: ${props => (props.width < 700 ? "none" : "flex")};
293293
}
294-
overflow-x: scroll;
294+
overflow-x: auto;
295295
overflow-y: hidden;
296296
height: ${props => props.tableSizes.TABLE_HEADER_HEIGHT}px;
297297
min-height: ${props => props.tableSizes.TABLE_HEADER_HEIGHT}px;
@@ -325,7 +325,7 @@ export const TableIconWrapper = styled.div<{
325325
box-shadow: ${props =>
326326
props.selected ? `inset 0px 4px 0px ${Colors.GREEN}` : "none"};
327327
width: 48px;
328-
height: 45px;
328+
height: 42px;
329329
display: flex;
330330
align-items: center;
331331
justify-content: center;

app/client/src/components/designSystems/appsmith/TableUtilities.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,12 @@ export function sortTableFunction(
718718
)?.metaProperties?.type || ColumnTypes.TEXT;
719719
return tableData.sort(
720720
(a: { [key: string]: any }, b: { [key: string]: any }) => {
721-
if (a[sortedColumn] !== undefined && b[sortedColumn] !== undefined) {
721+
if (
722+
a[sortedColumn] !== undefined &&
723+
a[sortedColumn] !== null &&
724+
b[sortedColumn] !== undefined &&
725+
b[sortedColumn] !== null
726+
) {
722727
switch (columnType) {
723728
case ColumnTypes.CURRENCY:
724729
case ColumnTypes.NUMBER:

app/client/src/components/editorComponents/ErrorBoundry.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { ReactNode } from "react";
22
import styled from "styled-components";
3-
import * as Sentry from "@sentry/browser";
3+
import * as Sentry from "@sentry/react";
44

55
type Props = { isValid: boolean; children: ReactNode };
66
type State = { hasError: boolean };

app/client/src/components/formControls/DynamicTextFieldControl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
const Wrapper = styled.div`
2525
.dynamic-text-field {
2626
border-radius: 4px;
27-
border: 1px solid #d0d7dd;
27+
border: none;
2828
font-size: 14px;
2929
height: calc(100vh / 4);
3030
}

0 commit comments

Comments
 (0)