Skip to content

feat(confirm): input app name for app deletion confirmation#33660

Merged
crazywoola merged 1 commit intolanggenius:mainfrom
bowenliang123:confirm-app-deletion
Mar 19, 2026
Merged

feat(confirm): input app name for app deletion confirmation#33660
crazywoola merged 1 commit intolanggenius:mainfrom
bowenliang123:confirm-app-deletion

Conversation

@bowenliang123
Copy link
Contributor

@bowenliang123 bowenliang123 commented Mar 18, 2026

Important

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Summary

Screenshots

Before After
image image

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran make lint and make type-check (backend) and cd web && npx lint-staged (frontend) to appease the lint gods

Copilot AI review requested due to automatic review settings March 18, 2026 09:38
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Mar 18, 2026
@github-actions github-actions bot added the web This relates to changes on the web. label Mar 18, 2026
@dosubot dosubot bot added the 💪 enhancement New feature or request label Mar 18, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly improves user experience and data safety by introducing a mandatory app name input for deletion confirmation. This change prevents accidental data loss by requiring explicit user intent before an app is permanently removed. The implementation leverages an enhanced, reusable confirmation component and includes comprehensive internationalization for a global user base.

Highlights

  • Enhanced App Deletion Confirmation: Implemented a more robust app deletion process that requires users to type the app's name into an input field to confirm the irreversible action, preventing accidental deletions.
  • Reusable Confirmation Component Extension: The generic Confirm component was extended to support input-based confirmation, making this enhanced security feature easily applicable to other sensitive actions throughout the application.
  • Internationalization Support: Added new translation keys across multiple language files to provide localized labels and placeholders for the app deletion confirmation input.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds “type app name to confirm” support for app deletion flows in the web UI, along with localized strings across supported languages.

Changes:

  • Added new i18n strings for delete-confirm input label/placeholder in multiple locales.
  • Extended deprecated Confirm modal to optionally render a confirm-input and disable confirm until it matches.
  • Updated app deletion dialogs (AppCard + AppInfoModals) to require typing the app name before enabling deletion.

Reviewed changes

Copilot reviewed 25 out of 25 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
web/i18n/ar-TN/app.json Adds delete confirm input label/placeholder translations
web/i18n/de-DE/app.json Adds delete confirm input label/placeholder translations
web/i18n/en-US/app.json Adds delete confirm input label/placeholder translations
web/i18n/es-ES/app.json Adds delete confirm input label/placeholder translations
web/i18n/fr-FR/app.json Adds delete confirm input label/placeholder translations
web/i18n/hi-IN/app.json Adds delete confirm input label/placeholder translations
web/i18n/id-ID/app.json Adds delete confirm input label/placeholder translations
web/i18n/it-IT/app.json Adds delete confirm input label/placeholder translations
web/i18n/ja-JP/app.json Adds delete confirm input label/placeholder translations
web/i18n/ko-KR/app.json Adds delete confirm input label/placeholder translations
web/i18n/nl-NL/app.json Adds delete confirm input label/placeholder translations
web/i18n/pl-PL/app.json Adds delete confirm input label/placeholder translations
web/i18n/pt-BR/app.json Adds delete confirm input label/placeholder translations
web/i18n/ro-RO/app.json Adds delete confirm input label/placeholder translations
web/i18n/ru-RU/app.json Adds delete confirm input label/placeholder translations
web/i18n/sl-SI/app.json Adds delete confirm input label/placeholder translations
web/i18n/th-TH/app.json Adds delete confirm input label/placeholder translations
web/i18n/tr-TR/app.json Adds delete confirm input label/placeholder translations
web/i18n/uk-UA/app.json Adds delete confirm input label/placeholder translations
web/i18n/vi-VN/app.json Adds delete confirm input label/placeholder translations
web/i18n/zh-Hans/app.json Adds delete confirm input label/placeholder translations
web/i18n/zh-Hant/app.json Adds delete confirm input label/placeholder translations
web/app/components/base/confirm/index.tsx Adds optional confirm-input gating + Enter key handling update
web/app/components/apps/app-card.tsx Adds app-name input requirement before enabling delete in AlertDialog
web/app/components/app-sidebar/app-info/app-info-modals.tsx Uses Confirm confirm-input gating for delete modal

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings March 18, 2026 09:43
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request introduces a new confirmation step for app deletion, requiring users to type the app's name to proceed. This is a valuable enhancement for preventing accidental data loss. The implementation correctly integrates the new input field into the Confirm component and updates the relevant app deletion modals. Internationalization files have also been updated to support the new labels and placeholders across various languages.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a “type app name to confirm” safeguard to the app deletion flow, and localizes the new UI strings across supported languages in the web frontend.

Changes:

  • Added new i18n keys for the delete-confirmation input label/placeholder across multiple locales.
  • Extended the deprecated Confirm overlay to optionally render a confirmation input and disable confirmation until input matches.
  • Updated app deletion dialogs to require typing the app name before enabling the destructive action.

Reviewed changes

Copilot reviewed 25 out of 25 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
web/i18n/zh-Hant/app.json Adds Traditional Chinese strings for typed-name delete confirmation.
web/i18n/zh-Hans/app.json Adds Simplified Chinese strings for typed-name delete confirmation.
web/i18n/vi-VN/app.json Adds Vietnamese strings for typed-name delete confirmation.
web/i18n/uk-UA/app.json Adds Ukrainian strings for typed-name delete confirmation.
web/i18n/tr-TR/app.json Adds Turkish strings for typed-name delete confirmation.
web/i18n/th-TH/app.json Adds Thai strings for typed-name delete confirmation.
web/i18n/sl-SI/app.json Adds Slovenian strings for typed-name delete confirmation.
web/i18n/ru-RU/app.json Adds Russian strings for typed-name delete confirmation.
web/i18n/ro-RO/app.json Adds Romanian strings for typed-name delete confirmation.
web/i18n/pt-BR/app.json Adds Brazilian Portuguese strings for typed-name delete confirmation.
web/i18n/pl-PL/app.json Adds Polish strings for typed-name delete confirmation.
web/i18n/nl-NL/app.json Adds Dutch-locale strings (currently English) for typed-name delete confirmation.
web/i18n/ko-KR/app.json Adds Korean strings for typed-name delete confirmation.
web/i18n/ja-JP/app.json Adds Japanese strings for typed-name delete confirmation.
web/i18n/it-IT/app.json Adds Italian strings for typed-name delete confirmation.
web/i18n/id-ID/app.json Adds Indonesian strings for typed-name delete confirmation.
web/i18n/hi-IN/app.json Adds Hindi strings for typed-name delete confirmation.
web/i18n/fr-FR/app.json Adds French strings for typed-name delete confirmation.
web/i18n/es-ES/app.json Adds Spanish strings for typed-name delete confirmation.
web/i18n/en-US/app.json Adds English source strings for typed-name delete confirmation.
web/i18n/de-DE/app.json Adds German strings for typed-name delete confirmation.
web/i18n/ar-TN/app.json Adds Arabic (TN) strings for typed-name delete confirmation.
web/app/components/base/confirm/index.tsx Adds optional confirmation input + match-to-enable behavior to Confirm.
web/app/components/apps/app-card.tsx Requires typing the app name before enabling delete in the AlertDialog flow.
web/app/components/app-sidebar/app-info/app-info-modals.tsx Wires typed-name confirmation into the delete modal (via deprecated Confirm).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings March 18, 2026 14:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a typed-name confirmation step when deleting an app, updating both the reusable (legacy) Confirm dialog and the app card delete dialog, along with localized strings and test updates.

Changes:

  • Add optional “type app name to confirm” input support to the legacy Confirm component (and disable confirm until it matches).
  • Require typing the app name in the AppCard delete AlertDialog before enabling deletion.
  • Add i18n strings for the new label/placeholder and update AppCard tests accordingly.

Reviewed changes

Copilot reviewed 26 out of 26 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
web/i18n/zh-Hant/app.json Add delete confirmation input label/placeholder (zh-Hant).
web/i18n/zh-Hans/app.json Add delete confirmation input label/placeholder (zh-Hans).
web/i18n/vi-VN/app.json Add delete confirmation input label/placeholder (vi-VN).
web/i18n/uk-UA/app.json Add delete confirmation input label/placeholder (uk-UA).
web/i18n/tr-TR/app.json Add delete confirmation input label/placeholder (tr-TR).
web/i18n/th-TH/app.json Add delete confirmation input label/placeholder (th-TH).
web/i18n/sl-SI/app.json Add delete confirmation input label/placeholder (sl-SI).
web/i18n/ru-RU/app.json Add delete confirmation input label/placeholder (ru-RU).
web/i18n/ro-RO/app.json Add delete confirmation input label/placeholder (ro-RO).
web/i18n/pt-BR/app.json Add delete confirmation input label/placeholder (pt-BR).
web/i18n/pl-PL/app.json Add delete confirmation input label/placeholder (pl-PL).
web/i18n/nl-NL/app.json Add delete confirmation input label/placeholder (nl-NL).
web/i18n/ko-KR/app.json Add delete confirmation input label/placeholder (ko-KR).
web/i18n/ja-JP/app.json Add delete confirmation input label/placeholder (ja-JP).
web/i18n/it-IT/app.json Add delete confirmation input label/placeholder (it-IT).
web/i18n/id-ID/app.json Add delete confirmation input label/placeholder (id-ID).
web/i18n/hi-IN/app.json Add delete confirmation input label/placeholder (hi-IN).
web/i18n/fr-FR/app.json Add delete confirmation input label/placeholder (fr-FR).
web/i18n/es-ES/app.json Add delete confirmation input label/placeholder (es-ES).
web/i18n/en-US/app.json Add delete confirmation input label/placeholder (en-US).
web/i18n/de-DE/app.json Add delete confirmation input label/placeholder (de-DE).
web/i18n/ar-TN/app.json Add delete confirmation input label/placeholder (ar-TN).
web/app/components/base/confirm/index.tsx Add confirm-input props and disable confirm until typed value matches.
web/app/components/apps/app-card.tsx Add typed-name confirmation input to delete dialog; disable confirm until match.
web/app/components/apps/tests/app-card.spec.tsx Update delete-flow tests to fill confirmation input before confirming.
web/app/components/app-sidebar/app-info/app-info-modals.tsx Wire new confirm-input props into delete modal flow using legacy Confirm.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings March 19, 2026 02:12
@bowenliang123 bowenliang123 requested review from Copilot and removed request for Copilot March 19, 2026 02:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@bowenliang123 bowenliang123 changed the title feat(confirm): add app name input for app deletion confirmation feat(confirm): input app name for app deletion confirmation Mar 19, 2026
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 19, 2026
Copilot AI review requested due to automatic review settings March 19, 2026 06:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 28 out of 28 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@crazywoola crazywoola merged commit 942087c into langgenius:main Mar 19, 2026
22 of 23 checks passed
@bowenliang123 bowenliang123 deleted the confirm-app-deletion branch March 19, 2026 06:26
@bowenliang123
Copy link
Contributor Author

Hi, as this PR merged and it's enforcing app name input for deletion for all, is it necessary to make it configurable? And is there suggestion for it ? cc @crazywoola @hyoban

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💪 enhancement New feature or request lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files. web This relates to changes on the web.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Type the app name for confirmation in app deletion modal

3 participants