Skip to content

Commit 9800c40

Browse files
authored
Merge pull request #41473 from appsmithorg/release
17/12 - Daily Promotion
2 parents 1feb6b5 + ff36efa commit 9800c40

File tree

26 files changed

+521
-41
lines changed

26 files changed

+521
-41
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ const RightArrowIcon2 = importRemixIcon(
204204
const RocketIcon = importRemixIcon(
205205
async () => import("remixicon-react/RocketLineIcon"),
206206
);
207+
const RocketDotIcon = importSvg(
208+
async () => import("../__assets__/icons/ads/rocket-dot.svg"),
209+
);
207210
const RobotIcon = importRemixIcon(
208211
async () => import("remixicon-react/RobotLineIcon"),
209212
);
@@ -1589,6 +1592,7 @@ const ICON_LOOKUP = {
15891592
reaction: Reaction,
15901593
refresh: RefreshLineIcon,
15911594
rocket: RocketIcon,
1595+
"rocket-dot": RocketDotIcon,
15921596
robot: RobotIcon,
15931597
"robot-2": Robot2LineIcon,
15941598
"sparkling-filled": SparklingFilledIcon,
Lines changed: 4 additions & 0 deletions
Loading

app/client/packages/design-system/widgets-old/src/Icon/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,9 @@ const RightArrowIcon2 = importRemixIcon(
414414
const RocketIcon = importRemixIcon(
415415
async () => import("remixicon-react/RocketLineIcon"),
416416
);
417+
const RocketDotIcon = importSvg(
418+
async () => import("../assets/icons/ads/rocket-dot.svg"),
419+
);
417420
const SearchIcon = importRemixIcon(
418421
async () => import("remixicon-react/SearchLineIcon"),
419422
);
@@ -869,6 +872,7 @@ const ICON_LOOKUP = {
869872
reaction: <Reaction />,
870873
refresh: <RefreshLineIcon />,
871874
rocket: <RocketIcon />,
875+
"rocket-dot": <RocketDotIcon />,
872876
search: <SearchIcon />,
873877
setting: <SettingIcon />,
874878
share: <ShareForwardIcon />,
Lines changed: 4 additions & 0 deletions
Loading

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,15 @@ export const publishApplication = (applicationId: string) => {
185185
};
186186
};
187187

188+
export const redeployApplication = (applicationId: string) => {
189+
return {
190+
type: ReduxActionTypes.REDEPLOY_APPLICATION_INIT,
191+
payload: {
192+
applicationId,
193+
},
194+
};
195+
};
196+
188197
export const publishAnvilApplication = (applicationId: string) => {
189198
return {
190199
type: ReduxActionTypes.PUBLISH_ANVIL_APPLICATION_INIT,
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { REDEPLOY_APP_WARNING } from "ee/constants/messages";
2+
3+
export const REDEPLOY_TRIGGERS = {
4+
PendingDeployment: "PENDING_DEPLOYMENT",
5+
} as const;
6+
7+
type ValueOf<T> = T[keyof T];
8+
export type RedeployTriggerValue = ValueOf<typeof REDEPLOY_TRIGGERS>;
9+
10+
export const REDEPLOY_WARNING_MESSAGE: Record<
11+
RedeployTriggerValue,
12+
() => string
13+
> = {
14+
[REDEPLOY_TRIGGERS.PendingDeployment]: REDEPLOY_APP_WARNING,
15+
};

app/client/src/ce/constants/ReduxActionConstants.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,8 @@ const AppViewActionTypes = {
10181018
"FETCH_PUBLISHED_PAGE_RESOURCES_SUCCESS",
10191019
PUBLISH_ANVIL_APPLICATION_INIT: "PUBLISH_ANVIL_APPLICATION_INIT",
10201020
PUBLISH_ANVIL_APPLICATION_SUCCESS: "PUBLISH_ANVIL_APPLICATION_SUCCESS",
1021+
REDEPLOY_APPLICATION_INIT: "REDEPLOY_APPLICATION_INIT",
1022+
REDEPLOY_APPLICATION_SUCCESS: "REDEPLOY_APPLICATION_SUCCESS",
10211023
};
10221024

10231025
const AppViewActionErrorTypes = {
@@ -1028,6 +1030,7 @@ const AppViewActionErrorTypes = {
10281030
FETCH_JS_ACTIONS_VIEW_MODE_ERROR: "FETCH_JS_ACTIONS_VIEW_MODE_ERROR",
10291031
FETCH_PUBLISHED_PAGE_RESOURCES_ERROR: "FETCH_PUBLISHED_PAGE_RESOURCES_ERROR",
10301032
PUBLISH_ANVIL_APPLICATION_ERROR: "PUBLISH_ANVIL_APPLICATION_ERROR",
1033+
REDEPLOY_APPLICATION_ERROR: "REDEPLOY_APPLICATION_ERROR",
10311034
};
10321035

10331036
const WorkspaceActionTypes = {

app/client/src/ce/constants/messages.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,9 @@ export const CURRENT_PAGE_DISCARD_WARNING = (page: string) =>
10541054
`Current page (${page}) is in the discard list.`;
10551055
export const DISCARD_MESSAGE = () =>
10561056
`Some changes may reappear after discarding them, these changes support new features in Appsmith. You can safely commit them to your repository.`;
1057+
export const REDEPLOY_APP_WARNING = () =>
1058+
"The deployed version of this app is not using the latest versions of some packages. Redeploy to apply the latest package versions to the app.";
1059+
10571060
// GIT DEPLOY end
10581061

10591062
// GIT CHANGE LIST begin
@@ -1462,6 +1465,8 @@ export const LAYOUT_DROPDOWN_TOOLTIP = () =>
14621465
"Choose how your application looks on desktop, tablet and mobile devices";
14631466
export const DEPLOY_BUTTON_TOOLTIP = () =>
14641467
"Deploy the current version of the application";
1468+
export const REDEPLOY_APP_BUTTON_TOOLTIP = () =>
1469+
"Redeploy needed to sync changes from edit mode";
14651470
export const SHARE_BUTTON_TOOLTIP = () => "Invite your team to Appsmith";
14661471
export const SHARE_BUTTON_TOOLTIP_WITH_USER = (length: number) => () =>
14671472
`Shared with ${length} other`;
@@ -1474,6 +1479,7 @@ export const NOTIFICATIONS_TOOLTIP = () => "Notifications";
14741479

14751480
// Navigation Menu
14761481
export const DEPLOY_MENU_OPTION = () => "Deploy";
1482+
export const REDEPLOY_MENU_OPTION = () => "Redeploy";
14771483
export const CURRENT_DEPLOY_PREVIEW_OPTION = () => "Current deployed version";
14781484
export const CONNECT_TO_GIT_OPTION = () => "Connect to Git repository";
14791485
//
@@ -1706,6 +1712,8 @@ export const ADMIN_BRANDING_LOGO_FORMAT_ERROR = () =>
17061712
`Uploaded file must be in .SVG .PNG, and .JPG formats`;
17071713
export const ADMIN_BRANDING_LOGO_REQUIREMENT = () =>
17081714
`.SVG, .PNG, or .JPG only • Max 2MB`;
1715+
export const ADMIN_BRANDING_LOGO_SIZE_HELP = () =>
1716+
"Set maximum logo size in pixels. Defaults to 10rem (160px) width and 1.5rem (24px) height.";
17091717
export const ADMIN_BRANDING_FAVICON_DIMENSION_ERROR = () =>
17101718
`Uploaded file must have a max size of 48X48 pixels`;
17111719
export const ADMIN_BRANDING_FAVICON_SIZE_ERROR = () =>

app/client/src/ce/entities/FeatureFlag.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export const FEATURE_FLAG = {
6666
"configure_block_event_tracking_for_anonymous_users",
6767
release_static_url_enabled: "release_static_url_enabled",
6868
release_window_dimensions_enabled: "release_window_dimensions_enabled",
69+
release_branding_logo_resize_enabled: "release_branding_logo_resize_enabled",
6970
} as const;
7071

7172
export type FeatureFlag = keyof typeof FEATURE_FLAG;
@@ -120,6 +121,7 @@ export const DEFAULT_FEATURE_FLAG_VALUE: FeatureFlags = {
120121
configure_block_event_tracking_for_anonymous_users: false,
121122
release_static_url_enabled: false,
122123
release_window_dimensions_enabled: false,
124+
release_branding_logo_resize_enabled: false,
123125
};
124126

125127
export const AB_TESTING_EVENT_KEYS = {

app/client/src/ce/reducers/uiReducers/editorReducer.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export const initialState: EditorReduxState = {
1818
loadingStates: {
1919
publishing: false,
2020
publishingError: false,
21+
redeploying: false,
22+
redeployingError: false,
2123
saving: false,
2224
savingError: false,
2325
savingEntity: false,
@@ -117,6 +119,28 @@ export const handlers = {
117119

118120
return { ...state };
119121
},
122+
[ReduxActionTypes.REDEPLOY_APPLICATION_INIT]: (state: EditorReduxState) => {
123+
state.loadingStates.redeploying = true;
124+
state.loadingStates.redeployingError = false;
125+
126+
return { ...state };
127+
},
128+
[ReduxActionErrorTypes.REDEPLOY_APPLICATION_ERROR]: (
129+
state: EditorReduxState,
130+
) => {
131+
state.loadingStates.redeploying = false;
132+
state.loadingStates.redeployingError = true;
133+
134+
return { ...state };
135+
},
136+
[ReduxActionTypes.REDEPLOY_APPLICATION_SUCCESS]: (
137+
state: EditorReduxState,
138+
) => {
139+
state.loadingStates.redeploying = false;
140+
state.loadingStates.redeployingError = false;
141+
142+
return { ...state };
143+
},
120144
[ReduxActionTypes.SAVE_PAGE_INIT]: (state: EditorReduxState) => {
121145
state.loadingStates.saving = true;
122146
state.loadingStates.savingError = false;
@@ -338,6 +362,8 @@ export interface EditorReduxState {
338362
publishing: boolean;
339363
published?: string;
340364
publishingError: boolean;
365+
redeploying: boolean;
366+
redeployingError: boolean;
341367
loading: boolean;
342368
loadingError: boolean;
343369
isPageSwitching: boolean;

0 commit comments

Comments
 (0)