Workspace Lifecycle & Management
Contributor Guide
- Target Component:
rumour/ui/src/components/views/WorkspaceManager.tsx,WelcomeScreen.tsx,useWorkspaceContext.tsx - Backing File Format:
workspace.env.tomlboundary marker - Status: Skeleton / Ready for Contribution
- Assigned Contributor: Open for assignment
Overview
Unlike legacy API clients that hide collections inside internal SQLite databases or cloud silos, a Rumour workspace is simply a standard directory on your computer anchored by workspace.env.toml. This guide explains the lifecycle of opening, managing, and organizing workspaces in Rumour UI.
Workspace Lifecycle Actions
1. Creating a New Workspace
- Click New workspace on the Welcome Screen.
- Folder selection dialog: Choose an empty directory or scaffold a new folder.
- Optional automated Git initialization (
git init). - Scaffolding of the root
workspace.env.tomlboundary file with default global variables.
2. Opening & Switching Workspaces
- Open existing workspace directory (
Ctrl + O). - Recent Workspaces: Quick-access list on the Welcome Screen and
File → Recent Workspacesshowing paths and last opened timestamps. - Switching between workspaces unloads open tabs safely and caches session history.
3. Closing Workspaces
File → Close Workspace(Ctrl + Shift + W) to unload the active directory and return to the Welcome Screen.
Workspace Directory Structure
A typical production workspace follows this structure on your filesystem:
my_api_workspace/
├── workspace.env.toml # Root boundary & global variables
├── rumour.settings.json # UI workspace settings
├── smoke_test.suite.toml # Root test suite
├── environments/
│ ├── local.env.toml # Local dev overrides
│ ├── staging.env.toml # Staging environment overrides
│ └── prod.env.toml # Production environment overrides
├── auth/
│ ├── collection.env.toml # Collection-scoped variables & headers
│ ├── login.toml # Request definition
│ └── refresh_token.toml
└── users/
├── get_users.toml
└── create_user.toml
Contributor Checklist
- Add screenshots of the workspace creation workflow and folder picker.
- Document recent workspaces cache mechanism (
recentWorkspaces.ts). - Cross-link with CLI Init Command.