Skip to main content

Environment Profiles & Variables

Contributor Guide
  • Target Component: rumour/ui/src/features/environment/: EnvEditor.tsx, StatusBar.tsx (Environment Switcher)
  • Backing File Format: *.env.toml files (e.g. workspace.env.toml, environments/dev.env.toml)
  • Status: Skeleton / Ready for Contribution
  • Assigned Contributor: Open for assignment

Overview​

Modern API workflows must seamlessly transition between local, staging, testing, and production environments without changing endpoint code. Rumour UI makes environment management intuitive through the Visual Environment Editor and the persistent Environment Switcher in the bottom status bar.


Key Features​

1. Visual Environment Editor (*.env.toml)​

  • Key-value variable editor with type inference (strings, numbers, booleans, arrays).
  • Secure secret masking for tokens and passwords.
  • Inline variable descriptions.
  • Bulk TOML text view toggle.

2. Status Bar Environment Switcher​

  • Located persistently in the bottom status bar: displays the active environment name (e.g., 🟢 Staging ▾) and variable count ({ } 14 vars).
  • Click to open the quick-switcher dropdown menu.
  • Instantly switches the active variable scope across all open tabs without reloading the workspace.

3. Variable Precedence in UI​

  • Explains how environment profiles overlay global workspace.env.toml values.
  • How active selections in the Environment Switcher update the Active Variables Inspector in real time.

Contributor Checklist​

  • Add screenshots of the Environment Editor and the status bar switcher dropdown.
  • Detail variable type validation and formatting.
  • Cross-link with CLI Environment Files Documentation.