mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #4141] [MERGED] feat: CLI collection runner command generation UI flow #4676
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#4676
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/4141
Author: @jamesgeorge007
Created: 6/22/2024
Status: ✅ Merged
Merged: 6/27/2024
Merged by: @jamesgeorge007
Base:
next← Head:feat/cli-collection-runner-command-gen-ui📝 Commits (10+)
715d457feat: CLI collection runner command generation UI flowbc38bbbfeat: add newDetailstab underCollection Propertiesmodal3106ca1feat: addEnvironment Propertiesmodal2571b40chore:Collection Propertiesmodal updatesa205aa6chore: cleanup1cf15abchore: move to i18n strings4a0c5affix: prevent the exception while dismissing environment context menued5e9c3refactor: updateeditingPropertiesprop type for theCollectionsPropertiescomponentfe2ee2fchore: allow user to select ID's3f8a477chore: minor change📊 Changes
11 files changed (+584 additions, -97 deletions)
View changed files
📝
packages/hoppscotch-common/locales/en.json(+18 -2)📝
packages/hoppscotch-common/src/components.d.ts(+2 -0)📝
packages/hoppscotch-common/src/components/collections/Collection.vue(+42 -17)📝
packages/hoppscotch-common/src/components/collections/Properties.vue(+98 -18)➕
packages/hoppscotch-common/src/components/collections/Runner.vue(+149 -0)📝
packages/hoppscotch-common/src/components/collections/TeamCollections.vue(+3 -0)📝
packages/hoppscotch-common/src/components/collections/index.vue(+101 -48)➕
packages/hoppscotch-common/src/components/environments/Properties.vue(+123 -0)📝
packages/hoppscotch-common/src/components/environments/teams/Environment.vue(+29 -12)📝
packages/hoppscotch-common/src/components/environments/teams/index.vue(+18 -0)📝
packages/hoppscotch-common/src/vite-envs.d.ts(+1 -0)📄 Description
Description
#4095 adds support for accessing collections/environments from a team workspace straightaway via the CLI by supplying the respective IDs without having to obtain an export. This PR includes UI flow updates to support the same where the CLI command to run a certain collection with the ID can be obtained (optionally including the active environment) via the context menu.
Closes HFE-520.
Changes
Fixes the case about dismissing the environment context menu (opened via pressing the
Morekebab menu) via pressingEscape, which results in an exception.Made
editingPropertiesa required prop for theCollectionsPropertiescomponent withnullremoved from the types since the existing usages guarantee the above prop to be an object.New
Run collectionaction under the context menu option for collections that displays the modal with the respective CLI command to run the collection, optionally including any active environment. It can also be accessed while hovering over a certain collection.The
Collection Propertiesmodal now includes a newDetailstab that shows the collection ID.There'll be a new
propertiesaction under the context menu for environments that opens a newEnvironment Propertiesmodal which displays the respective environment ID.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.