mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #2813] [MERGED] Feat: Add inline environment variable edit #4084
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#4084
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/2813
Author: @franciscoemanuel
Created: 10/23/2022
Status: ✅ Merged
Merged: 11/2/2022
Merged by: @liyasthomas
Base:
main← Head:feature/add-inline-variable-edit📝 Commits (10+)
bf82c3brefactor: changes v-if render to v-show on Environments tabs3e7dc6dfeat: adds selectText prop to EnvInputc41db19feat: adds editing variable name to env Details modal8930158feat: adds actions to invoke edit env modals45e80e8feat: adds edit action to tooltip env195110drefactor: adds destructuring assignment on action handlers for edit env modals8b95cf7refactor: fix comment on environment modals action729e879chore: minor ui improvements7892427refactor: change text selecion prop on EnvInput to something more meaningfuldcb5545refactor: removes comment on HoppEnvironment extension📊 Changes
10 files changed (+176 additions, -30 deletions)
View changed files
📝
packages/hoppscotch-app/assets/scss/styles.scss(+2 -2)📝
packages/hoppscotch-app/src/components/environments/index.vue(+2 -2)📝
packages/hoppscotch-app/src/components/environments/my/Details.vue(+2 -0)📝
packages/hoppscotch-app/src/components/environments/my/index.vue(+17 -0)📝
packages/hoppscotch-app/src/components/environments/teams/Details.vue(+2 -0)📝
packages/hoppscotch-app/src/components/environments/teams/index.vue(+15 -1)📝
packages/hoppscotch-app/src/components/smart/EnvInput.vue(+15 -1)📝
packages/hoppscotch-app/src/helpers/actions.ts(+83 -8)📝
packages/hoppscotch-app/src/helpers/editor/extensions/HoppEnvironment.ts(+28 -12)📝
packages/hoppscotch-app/src/helpers/editor/themes/baseTheme.ts(+10 -4)📄 Description
Closes #2607
Description
Adds edit action on environment variable tooltip:

When the edit icon is clicked, the environment edit modal is opened with the variable value auto selected

Checks
Additional Information
environments/index.vueto conditionally render env components to use v-show instead of v-if, so the modals can be called even when the correspondent tab is not active;invokeActionmethodselectTextprop to EnvInput so it can auto select the text on the input when it's rendered🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.