feat(Global Environments): Introduce a new top level file type called global environments.#7511
Conversation
a20fd61 to
750f9c0
Compare
|
can you include some screen shots in the description please. I think the ux is a bit contentious. I would also like to see a clear the environment model addressing the current inconsistencies in order to code review this approach. |
7058467 to
0f08cd2
Compare
ihexxa
left a comment
There was a problem hiding this comment.
Went through some parts like data model, rendering and the UI part is not checked yet.
| collection: 'bg-[--color-surprise]', | ||
| 'mock-server': 'bg-[--color-warning]', | ||
| unsynced: 'bg-[--hl-md]', | ||
| environment: 'bg-[--color-font]', |
There was a problem hiding this comment.
nit: Should it be --color-font or color-bg?
There was a problem hiding this comment.
Yep it's correct we want the color-font for bg here. Agree that it's counter intuitive but there are cases were we need the font color as bg 🫣
f9653fd to
b98088b
Compare
9113f83 to
40b0bea
Compare
ihexxa
left a comment
There was a problem hiding this comment.
Tend to move forward but there are many details in the component so it may deserve more detailed check.
40b0bea to
7ef6780
Compare
ihexxa
left a comment
There was a problem hiding this comment.
LGTM we've discuss several topics like relationship syncing, ux consistency and overall it looks to me. We will also apply it to the scripting feature, have more tests on it and move to the importing/exporting implementation.
… global environments. (Kong#7511) * add new workspace type 'environment' * new route for environments and set/get for them * update environment picker UI * update workspace environment modal ui to match env view * global environment request rendering * type checks * ui overflow fix * update e2e * auto-lint issue * type-checks * Update aria label * create env from project view * changes * save * environment picker component * update e2e
Highlights:
environmentNext steps:
globalsAPI in pre-request/after-response scriptsNew Environment picker UI:
Global Environments in the Project view:
Updates to Models
environment