mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #3126] [MERGED] chore: type and UX improvement for SmartTree #4245
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#4245
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/3126
Author: @anwarulislam
Created: 6/8/2023
Status: ✅ Merged
Merged: 8/2/2023
Merged by: @AndrewBastin
Base:
release/2023.8.0← Head:chore/smart-tree-improvement📝 Commits (3)
2aa2423chore: type and ux improvement for smarttreed7a54e4chore: update prop name10ee3ffchore: simplified isOnlyRootChild checking📊 Changes
3 files changed (+48 additions, -67 deletions)
View changed files
📝
packages/hoppscotch-common/src/components/collections/Collection.vue(+38 -64)📝
packages/hoppscotch-common/src/components/smart/Tree.vue(+1 -0)📝
packages/hoppscotch-common/src/components/smart/TreeBranch.vue(+9 -3)📄 Description
🤖 Generated by Copilot at ef9bd74
Summary
✨🛠️🎨
Improved the UX of the
CollectionandTreecomponents. Refactored some props and collapse/expand logic. Removed unnecessary code.Previous: By default, we keep all collections collapsed.
Now: If there is only one single collection we will expand it by default.
Walkthrough
root-node-lengthprop toTreecomponent to control default expansion of root nodes (link)root-node-lengthprop fromTreetoTreeBranchcomponent (link)childrenRendered,showChildren, andisNodeOpenrefs inTreeBranchcomponent based onroot-node-lengthprop value (link)propsdefinition inCollectioncomponent to usewithDefaultshelper function (link)PropTypeimport fromCollectioncomponent (link)collectionMoveLoadingprop inisCollLoadingcomputed property inCollectioncomponent (link)Closes HFE-94
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
Global environmentaction for a team workspace #4725