Skip to content

Commit a11b75e

Browse files
committed
Merge branch 'release' of https://github.com/appsmithorg/appsmith into fix/upgrade-tinymce-latest-MIT-version
2 parents 61919b8 + 1789339 commit a11b75e

File tree

43 files changed

+653
-27
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+653
-27
lines changed

app/client/cypress/e2e/Regression/ClientSide/Widgets/ListV2/Listv2_BasicClientSideData_spec.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,5 +162,17 @@ describe(
162162
false,
163163
);
164164
});
165+
166+
it("7. For the empty list, there should be no errors in appsmith console(as empty meta widgets are generated)", () => {
167+
cy.openPropertyPane("listwidgetv2");
168+
169+
_.propPane.UpdatePropertyFieldValue("Items", "[]");
170+
171+
_.agHelper.AssertElementVisibility(
172+
_.locators._visibleTextDiv("No data to display"),
173+
);
174+
175+
_.debuggerHelper.AssertErrorCount(0);
176+
});
165177
},
166178
);

app/client/packages/design-system/ads/src/Icon/Icon.provider.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,10 @@ const AIChatIcon = importSvg(
12131213
async () => import("../__assets__/icons/ads/ai-chat.svg"),
12141214
);
12151215

1216+
const LightningLineIcon = importSvg(
1217+
async () => import("../__assets__/icons/ads/lightning-line.svg"),
1218+
);
1219+
12161220
import PlayIconPNG from "../__assets__/icons/control/play-icon.png";
12171221

12181222
function PlayIconPNGWrapper() {
@@ -1636,6 +1640,7 @@ const ICON_LOOKUP = {
16361640
intercom: IntercomIcon,
16371641
onedrive: OnedriveIcon,
16381642
sharepoint: SharepointIcon,
1643+
"lightning-line": LightningLineIcon,
16391644
};
16401645

16411646
export const IconCollection = Object.keys(ICON_LOOKUP);

app/client/packages/design-system/ads/src/Input/Input.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ const Input = forwardRef<HTMLInputElement, InputProps>(
135135
readOnly={isReadOnly}
136136
ref={inputRef}
137137
renderer={renderAs}
138+
size="1"
138139
value={value}
139140
{...rest}
140141
/>
Lines changed: 3 additions & 0 deletions
Loading

app/client/src/IDE/constants/SidebarButtons.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const SidebarButtonTitles = {
66
DATA: "Datasources",
77
SETTINGS: "Settings",
88
LIBRARIES: "Libraries",
9+
TRIGGER_SETTINGS: "Trigger Settings",
910
};
1011

1112
export const EditorButton = (urlSuffix: string): IDESidebarButton => ({
@@ -39,3 +40,11 @@ export const SettingsButton = (urlSuffix: string): IDESidebarButton => ({
3940
testId: SidebarButtonTitles.SETTINGS,
4041
urlSuffix,
4142
});
43+
44+
export const TriggerSettingsButton = (urlSuffix: string): IDESidebarButton => ({
45+
state: EditorState.TRIGGER_SETTINGS,
46+
icon: "lightning-line",
47+
tooltip: SidebarButtonTitles.TRIGGER_SETTINGS,
48+
testId: SidebarButtonTitles.TRIGGER_SETTINGS,
49+
urlSuffix,
50+
});

app/client/src/IDE/enums.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ export enum EditorState {
99
EDITOR = "EDITOR",
1010
SETTINGS = "SETTINGS",
1111
LIBRARIES = "LIBRARIES",
12+
TRIGGER_SETTINGS = "TRIGGER_SETTINGS",
1213
}

app/client/src/api/TemplatesApi.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,18 @@ class TemplatesAPI extends Api {
116116
body,
117117
);
118118
}
119+
120+
// This endpoint imports the application from a template and creates a workflow,
121+
// and attaches the workflow to the application.
122+
static async importAgentTemplate(
123+
templateId: string,
124+
workspaceId: string,
125+
): Promise<AxiosPromise<ImportTemplateResponse>> {
126+
return Api.post(TemplatesAPI.baseUrl + `/applications/agents`, {
127+
templateId,
128+
workspaceId,
129+
});
130+
}
119131
}
120132

121133
export default TemplatesAPI;

app/client/src/ce/actions/organizationActions.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@ export const updateOrganizationConfig = (
1919
type: ReduxActionTypes.UPDATE_ORGANIZATION_CONFIG,
2020
payload,
2121
});
22+
23+
export const fetchMyOrganizations = () => {
24+
return {
25+
type: ReduxActionTypes.FETCH_MY_ORGANIZATIONS_INIT,
26+
};
27+
};

app/client/src/ce/api/ApplicationApi.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export interface ApplicationResponsePayload {
6464
slug: string;
6565
applicationVersion: ApplicationVersion;
6666
isPublic?: boolean;
67+
connectedWorkflowId?: string;
6768
}
6869

6970
export interface FetchApplicationPayload {

app/client/src/ce/api/OrganizationApi.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,20 @@ export interface UpdateOrganizationConfigRequest {
2020
apiConfig?: AxiosRequestConfig;
2121
}
2222

23+
export type FetchMyOrganizationsResponse = ApiResponse<{
24+
organizations: Organization[];
25+
}>;
26+
27+
export interface Organization {
28+
organizationId: string;
29+
organizationName: string;
30+
organizationUrl: string;
31+
state: string;
32+
}
33+
2334
export class OrganizationApi extends Api {
2435
static tenantsUrl = "v1/tenants";
36+
static meUrl = "v1/users/me";
2537

2638
static async fetchCurrentOrganizationConfig(): Promise<
2739
AxiosPromise<FetchCurrentOrganizationConfigResponse>
@@ -41,6 +53,12 @@ export class OrganizationApi extends Api {
4153
},
4254
);
4355
}
56+
57+
static async fetchMyOrganizations(): Promise<
58+
AxiosPromise<FetchMyOrganizationsResponse>
59+
> {
60+
return Api.get(`${OrganizationApi.meUrl}/organizations`);
61+
}
4462
}
4563

4664
export default OrganizationApi;

0 commit comments

Comments
 (0)