[PR #4280] [MERGED] feat: sort environments alphabetically #4731

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4280
Author: @nivedin
Created: 8/20/2024
Status: Merged
Merged: 8/28/2024
Merged by: @nivedin

Base: nextHead: feat/sort-environments-alphabetically


📝 Commits (6)

  • af83730 feat: sort environments alphabetically in sidebar and selector
  • 8d9e045 fix: correct typo in i18n string key
  • 25dd774 fix: rename and export team environments bug
  • 29111e6 chore: added sortEnvironments util function
  • b3f9658 chore: ads doc
  • ae5b6aa chore: cleanup

📊 Changes

8 files changed (+146 additions, -31 deletions)

View changed files

📝 packages/hoppscotch-common/locales/en.json (+1 -0)
📝 packages/hoppscotch-common/src/components/environments/Selector.vue (+26 -10)
📝 packages/hoppscotch-common/src/components/environments/my/Details.vue (+5 -0)
📝 packages/hoppscotch-common/src/components/environments/my/index.vue (+14 -10)
📝 packages/hoppscotch-common/src/components/environments/teams/Details.vue (+2 -0)
📝 packages/hoppscotch-common/src/components/environments/teams/Environment.vue (+3 -1)
📝 packages/hoppscotch-common/src/components/environments/teams/index.vue (+24 -10)
packages/hoppscotch-common/src/helpers/utils/sortEnvironmentsAlphabetically.ts (+71 -0)

📄 Description

Closes HFE-551 #4200.

This PR sorts the environments in alphabetical order on the environment section in the sidebar and the environment selector.

What's changed

The environments have been sorted alphabetically by default for both personal and team. Also made 3 letter minimum length for creating a Personal Environment which was already the criteria for creating a Team Environment.


🔄 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/4280 **Author:** [@nivedin](https://github.com/nivedin) **Created:** 8/20/2024 **Status:** ✅ Merged **Merged:** 8/28/2024 **Merged by:** [@nivedin](https://github.com/nivedin) **Base:** `next` ← **Head:** `feat/sort-environments-alphabetically` --- ### 📝 Commits (6) - [`af83730`](https://github.com/hoppscotch/hoppscotch/commit/af8373028defe53f2c88353f2340929c44de7e1f) feat: sort environments alphabetically in sidebar and selector - [`8d9e045`](https://github.com/hoppscotch/hoppscotch/commit/8d9e04539fc9a50a76fbfe44b70fb6905ff32c3e) fix: correct typo in i18n string key - [`25dd774`](https://github.com/hoppscotch/hoppscotch/commit/25dd774b0875d72a66da0277fed48a9a6be3ae84) fix: rename and export team environments bug - [`29111e6`](https://github.com/hoppscotch/hoppscotch/commit/29111e6e4809c6847556ed4cbe65e7b131fd3637) chore: added sortEnvironments util function - [`b3f9658`](https://github.com/hoppscotch/hoppscotch/commit/b3f9658da32600b3d21c73377eb4bb493bbc0f2b) chore: ads doc - [`ae5b6aa`](https://github.com/hoppscotch/hoppscotch/commit/ae5b6aad8ba4f6cf9c49e1eea9979de004b33469) chore: cleanup ### 📊 Changes **8 files changed** (+146 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/locales/en.json` (+1 -0) 📝 `packages/hoppscotch-common/src/components/environments/Selector.vue` (+26 -10) 📝 `packages/hoppscotch-common/src/components/environments/my/Details.vue` (+5 -0) 📝 `packages/hoppscotch-common/src/components/environments/my/index.vue` (+14 -10) 📝 `packages/hoppscotch-common/src/components/environments/teams/Details.vue` (+2 -0) 📝 `packages/hoppscotch-common/src/components/environments/teams/Environment.vue` (+3 -1) 📝 `packages/hoppscotch-common/src/components/environments/teams/index.vue` (+24 -10) ➕ `packages/hoppscotch-common/src/helpers/utils/sortEnvironmentsAlphabetically.ts` (+71 -0) </details> ### 📄 Description Closes HFE-551 #4200. This PR sorts the environments in alphabetical order on the environment section in the sidebar and the environment selector. ### What's changed The environments have been sorted alphabetically by default for both personal and team. Also made 3 letter minimum length for creating a Personal Environment which was already the criteria for creating a Team Environment. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:14:35 +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#4731
No description provided.