bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Allow setting a default environment

Open nmss opened this issue 10 months ago • 4 comments

I have checked the following:

  • [X] I've searched existing issues and found nothing related to my issue.

Describe the feature you want to add

Currently when a collection have environments, by default no environment is selected

I wish I could assign a default one, so the at the collection I load is working without any more action

Mockups or Images of the feature

image

nmss avatar Apr 25 '24 13:04 nmss

I've already played around with this, so if you don't have the time/desire/etc. to implement it by yourself, I can take over IF it's not a problem.

What I've done so far:

  • in environment list, default env is marked as bold
    • wanted to emphasize it while keeping the same UI layout
  • Set as Default at the bottom
    • not sure is there any other position where the placement would be considered appropriate
  • default environment name is saved in collection's bruno.json file
    • name is saved because it can be easily updated by directly changing the .json file if there is a need and it is more readable/understandable than unique identifier

image

bruno.json { "version": "1", "name": "Test", "type": "collection", "defaultEnv": "First", "ignore": [ "node_modules", ".git" ] }

zagorec92 avatar Apr 25 '24 17:04 zagorec92

Seems like a duplicate of https://github.com/usebruno/bruno/issues/1598

grubersjoe avatar Apr 26 '24 05:04 grubersjoe

Seems like a duplicate of #1598

Yep, makes more sense, it's pretty much what postman does with remembering selected environment.

zagorec92 avatar Apr 26 '24 08:04 zagorec92

This is indeed very convenient, and Apidog supports it, so the experience will be better.

satokenta940 avatar May 13 '24 03:05 satokenta940

Duplicate of #1598

lohxt1 avatar Jun 14 '24 11:06 lohxt1