- Notifications
You must be signed in to change notification settings - Fork277
Add new deploy plugin endpoint for Environments#1715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
FalkWolsky merged 4 commits intolowcoder-org:ee-setupfromiamfaran:add-new-deploy-plugin-endpointMay 27, 2025
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
4 commits Select commitHold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
72 changes: 69 additions & 3 deletionsclient/packages/lowcoder/src/pages/setting/environments/components/DeployItemModal.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
111 changes: 111 additions & 0 deletions...t/packages/lowcoder/src/pages/setting/environments/components/credentialConfirmations.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
import { Modal, Alert } from 'antd'; | ||
import { ExclamationCircleOutlined, WarningOutlined } from '@ant-design/icons'; | ||
interface ConfirmHandlers { | ||
onOk: () => void; | ||
onCancel: () => void; | ||
} | ||
/** | ||
* First-step confirmation modal (orange / warning). | ||
*/ | ||
export function showFirstCredentialOverwriteConfirm({ onOk, onCancel }: ConfirmHandlers) { | ||
Modal.confirm({ | ||
title: ( | ||
<div style={{ display: 'flex', alignItems: 'center', color: '#ff7a00' }}> | ||
<WarningOutlined style={{ marginRight: 8, fontSize: 18 }} /> | ||
<span style={{ fontSize: 16, fontWeight: 600 }}>Overwrite Credentials Warning</span> | ||
</div> | ||
), | ||
icon: null, | ||
content: ( | ||
<div style={{ padding: '16px 0' }}> | ||
<Alert | ||
message="This action will overwrite existing credentials in the target environment." | ||
description={ | ||
<div style={{ marginTop: 8 }}> | ||
<p style={{ margin: 0, fontWeight: 500 }}> | ||
This is a serious operation that may affect other applications and users. | ||
</p> | ||
<p style={{ margin: '8px 0 0 0', color: '#8c8c8c' }}> | ||
Are you sure you want to proceed? | ||
</p> | ||
</div> | ||
} | ||
type="warning" | ||
showIcon | ||
style={{ marginBottom: 0, border: '1px solid #fff2e8', borderRadius: 8 }} | ||
/> | ||
</div> | ||
), | ||
okText: 'Continue', | ||
cancelText: 'Cancel', | ||
okButtonProps: { | ||
style: { backgroundColor: '#ff7a00', borderColor: '#ff7a00', fontWeight: 500 } | ||
}, | ||
cancelButtonProps: { | ||
style: { fontWeight: 500 } | ||
}, | ||
width: 520, | ||
centered: false, | ||
onOk, | ||
onCancel | ||
}); | ||
} | ||
/** | ||
* Second-step (final) confirmation modal (red / danger). | ||
*/ | ||
export function showSecondCredentialOverwriteConfirm({ onOk, onCancel }: ConfirmHandlers) { | ||
Modal.confirm({ | ||
title: ( | ||
<div style={{ display: 'flex', alignItems: 'center', color: '#ff4d4f' }}> | ||
<ExclamationCircleOutlined style={{ marginRight: 8, fontSize: 18 }} /> | ||
<span style={{ fontSize: 16, fontWeight: 600 }}>Final Confirmation Required</span> | ||
</div> | ||
), | ||
icon: null, | ||
content: ( | ||
<div style={{ padding: '16px 0' }}> | ||
<Alert | ||
message="Final Warning: Credential Overwrite" | ||
description={ | ||
<div style={{ marginTop: 8 }}> | ||
<p style={{ margin: 0, fontWeight: 500 }}> | ||
You are about to overwrite credentials in the target environment. This action cannot be undone and may break existing integrations. | ||
</p> | ||
<p style={{ margin: '8px 0 0 0', color: '#8c8c8c' }}> | ||
Please confirm one more time. | ||
</p> | ||
</div> | ||
} | ||
type="error" | ||
showIcon | ||
style={{ marginBottom: 16, border: '1px solid #ffebee', borderRadius: 8 }} | ||
/> | ||
<div | ||
style={{ | ||
padding: '12px 16px', | ||
backgroundColor: '#fff2f0', | ||
borderRadius: 8, | ||
border: '1px solid #ffccc7' | ||
}} | ||
> | ||
<p style={{ margin: 0, fontWeight: 600, color: '#cf1322', fontSize: 14 }}> | ||
Are you absolutely certain you want to overwrite the credentials? | ||
</p> | ||
</div> | ||
</div> | ||
), | ||
okText: 'Yes, Overwrite Credentials', | ||
okType: 'danger', | ||
cancelText: 'Cancel', | ||
okButtonProps: { style: { fontWeight: 500 } }, | ||
cancelButtonProps: { style: { fontWeight: 500 } }, | ||
width: 520, | ||
centered: false, | ||
onOk, | ||
onCancel | ||
}); | ||
} |
7 changes: 7 additions & 0 deletionsclient/packages/lowcoder/src/pages/setting/environments/config/apps.config.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
9 changes: 8 additions & 1 deletionclient/packages/lowcoder/src/pages/setting/environments/config/data-sources.config.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
12 changes: 10 additions & 2 deletionsclient/packages/lowcoder/src/pages/setting/environments/config/workspace.config.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletionclient/packages/lowcoder/src/pages/setting/environments/services/apps.service.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletionclient/packages/lowcoder/src/pages/setting/environments/services/datasources.service.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletionclient/packages/lowcoder/src/pages/setting/environments/services/workspace.service.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.