Repository navigation
feat(variables): adds variable scope selector with option to add as a secret - #8863
Merged
sachin-thakur-bruno merged 20 commits intoAug 12, 2026
Conversation
sachin-thakur-bruno
requested review from
bijin-bruno,
helloanoop,
lohit-bruno,
naman-bruno,
sanish-bruno,
sid-bruno,
utkarsh-bruno and
vijayh-bruno
as code owners
August 4, 2026 05:25
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (2)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
sachin-thakur-bruno
marked this pull request as draft
August 4, 2026 05:26
sachin-thakur-bruno
marked this pull request as ready for review
August 12, 2026 11:28
sachin-thakur-bruno
merged commit Aug 12, 2026
4e2fa9c
into
feature/variable-scope-selector-8665-internal
sachin-thakur-bruno
added a commit
that referenced
this pull request
Aug 28, 2026
sachin-thakur-bruno
added a commit
that referenced
this pull request
Aug 28, 2026
sachin-thakur-bruno
added a commit
that referenced
this pull request
Aug 28, 2026
* feat(variables): add scope-aware variable creation (#8665) * feat(variables): scope-aware secret creation, review fixes (#8863, #8974, #8981) --------- Co-authored-by: Delta X <[email protected]> Co-authored-by: sachin-thakur-bruno <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Closes #7382
Adopted from - #8665
BRU-3763
Problem
When a user types an undefined variable placeholder like {{currency_id}} in the request editor, there is no way to create that variable in the correct scope without leaving the editor. Users must manually navigate to environment or collection settings to define the variable before it resolves. This breaks flow, especially for users migrating from Postman who expect inline variable creation.
Fix
Extended
updateVariableInScopeinproviders/ReduxStore/slices/collections/actions.jsto support creating new variables in Environment and Global scopes.Added
getAvailableAddToScopesinutils/collections/index.jsto determine which scopes are currently available when adding a new variable:Added
addToScopeSwitcher.js, for scope selector with a toggle and dropdown. For Environment and Global scopes, it also provides a Secret checkbox and an inline Create One flow for creating a new Environment/Global Environment when active environment is not present without leaving the variable tooltip.Integrated the scope switcher into
brunoVarInfo.js. The initially guessed scope is shown as the default badge. Changing the scope only changes where the variable will be saved next.Added secret handling: checking Secret immediately masks the variable value and shows the eye toggle, even before the variable is saved.
Newly created variables are saved through an outside-click or immediately after creating the required scope.
When a variable already has a definition, its name itself becomes an underlined link. Clicking it takes the user directly to the scope where that variable is defined.
Screenshots
Contribution Checklist:
Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.
Publishing to New Package Managers
Please see here for more information.