[PR #4699] [MERGED] chore: add warning prompt for same response name #4901

Closed
opened 2026-03-17 02:23:52 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4699
Author: @nivedin
Created: 1/27/2025
Status: Merged
Merged: 1/29/2025
Merged by: @jamesgeorge007

Base: nextHead: chore/example-response-name-prefill


📝 Commits (3)

  • 1082ec5 chore: add warning prompt for same response name
  • 064bd03 chore: minor update
  • dbfeefc chore: cleanup

📊 Changes

3 files changed (+57 additions, -7 deletions)

View changed files

📝 packages/hoppscotch-common/locales/en.json (+1 -0)
📝 packages/hoppscotch-common/src/components/http/Response.vue (+14 -1)
📝 packages/hoppscotch-common/src/components/http/SaveResponseName.vue (+42 -6)

📄 Description

Closes HFE-717 #4652

This PR adds a flow where, when saving a response, the name inside the modal will be prefilled with the request name. Additionally, a warning indicator has been added to the modal input, which notifies the user if they attempt to save the response with a name that already exists for the request. The user can still proceed with saving, but the response will be overwritten with the latest changes.

https://github.com/user-attachments/assets/eb2d7776-5fbe-45c3-b7bb-edbedbd59124


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/4699 **Author:** [@nivedin](https://github.com/nivedin) **Created:** 1/27/2025 **Status:** ✅ Merged **Merged:** 1/29/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `next` ← **Head:** `chore/example-response-name-prefill` --- ### 📝 Commits (3) - [`1082ec5`](https://github.com/hoppscotch/hoppscotch/commit/1082ec5a053db106f1fa2bd78956b76c15717f54) chore: add warning prompt for same response name - [`064bd03`](https://github.com/hoppscotch/hoppscotch/commit/064bd03ea031411c217c206f5a5677d115b1e60d) chore: minor update - [`dbfeefc`](https://github.com/hoppscotch/hoppscotch/commit/dbfeefc0336f8bfcf29ae4de7d5fa46d2a3af342) chore: cleanup ### 📊 Changes **3 files changed** (+57 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/locales/en.json` (+1 -0) 📝 `packages/hoppscotch-common/src/components/http/Response.vue` (+14 -1) 📝 `packages/hoppscotch-common/src/components/http/SaveResponseName.vue` (+42 -6) </details> ### 📄 Description <!-- Thanks for creating this pull request 🤗 Please make sure that the pull request is limited to one type (docs, feature, etc.) and keep it as small as possible. You can open multiple prs instead of opening a huge one. --> <!-- If this pull request closes an issue, please mention the issue number below --> Closes HFE-717 #4652 This PR adds a flow where, when saving a response, the name inside the modal will be prefilled with the request name. Additionally, a warning indicator has been added to the modal input, which notifies the user if they attempt to save the response with a name that already exists for the request. The user can still proceed with saving, but the response will be overwritten with the latest changes. <!-- Add an introduction into what this PR tries to solve in a couple of sentences --> https://github.com/user-attachments/assets/eb2d7776-5fbe-45c3-b7bb-edbedbd59124 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:23:52 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4901
No description provided.