From e43d0f1b702bf61373ef95337afa0a0738a97356 Mon Sep 17 00:00:00 2001 From: Nivedin <53208152+nivedin@users.noreply.github.com> Date: Mon, 24 Mar 2025 22:18:19 +0530 Subject: [PATCH] feat: add search in environment selector and sidebar (#4872) Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com> --- packages/hoppscotch-common/locales/en.json | 2 +- .../src/components/environments/Selector.vue | 128 ++++++++++++++---- .../src/components/environments/my/index.vue | 64 +++++++-- .../components/environments/teams/index.vue | 94 +++++++++---- .../src/components/smart/EnvInput.vue | 71 +++++++++- 5 files changed, 288 insertions(+), 71 deletions(-) diff --git a/packages/hoppscotch-common/locales/en.json b/packages/hoppscotch-common/locales/en.json index d3920da8..ba4643c7 100644 --- a/packages/hoppscotch-common/locales/en.json +++ b/packages/hoppscotch-common/locales/en.json @@ -68,7 +68,6 @@ "turn_on": "Turn on", "undo": "Undo", "yes": "Yes", - "confirm": "Confirm", "verify": "Verify", "enable": "Enable", "disable": "Disable" @@ -367,6 +366,7 @@ "protocols": "Protocols are empty", "request_variables": "This request does not have any request variables", "schema": "Connect to a GraphQL endpoint to view schema", + "search_environment": "No matching environment found for", "secret_environments": "Secrets are not synced to Hoppscotch", "shared_requests": "Shared requests are empty", "shared_requests_logout": "Login to view your shared requests or create a new one", diff --git a/packages/hoppscotch-common/src/components/environments/Selector.vue b/packages/hoppscotch-common/src/components/environments/Selector.vue index d0e511cd..0ee4c8c8 100644 --- a/packages/hoppscotch-common/src/components/environments/Selector.vue +++ b/packages/hoppscotch-common/src/components/environments/Selector.vue @@ -26,12 +26,20 @@