mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #4280] [MERGED] feat: sort environments alphabetically #4731
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4731
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
next← Head:feat/sort-environments-alphabetically📝 Commits (6)
af83730feat: sort environments alphabetically in sidebar and selector8d9e045fix: correct typo in i18n string key25dd774fix: rename and export team environments bug29111e6chore: added sortEnvironments util functionb3f9658chore: ads docae5b6aachore: 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.