Add an editor and app views to a scenario
By default, a lab offers only a terminal. From a scenario’s Workspace you can add:
- a Code tab: a VS Code editor in the browser that shares the terminal’s working directory;
- app views: the web UI of a tool running in the session’s cluster (Argo CD, Grafana…), shown in a tab of the lab.
What the learner then sees is described in Editor and app views.
Before you start, you need a draft open in Scenario Studio with an environment chosen (see Your first scenario).
Enable the VS Code editor
Section titled “Enable the VS Code editor”-
In the canvas toolbar, click Workspace.
-
On the Coder (VS Code) tab, tick Enable Coder (VS Code).
-
In Pre-installed extensions, enter one extension id per line, for example
redhat.vscode-yaml. Add YAML support fills the list with the YAML extension when it is empty. -
Optional: set a Working directory (for example
/home/coder/project) or an Editor image to override the default editor image. Leave them empty to keep the platform’s values.
Add an app view
Section titled “Add an app view”An app view exposes, in a lab tab, a Service running in the session’s cluster. So a setup step has to install the tool, for example a Helm release (see Setup steps and checks).
-
In Workspace, open the App Views tab, then click Add app view.
-
Fill in the app view:
Field Purpose Example ID Lowercase slug, used in the tab’s URL. grafanaDisplay name The tab label the learner sees. GrafanaIcon The tab’s icon, from a fixed list. Gauge Service name The Kubernetes Service to show. grafanaService namespace Its namespace, inside the session’s cluster. monitoringPort The Service’s port. 80Scheme What the Service itself speaks: httporhttps.http -
If the tool needs a login, tick Show default credentials, then fill in:
- Secret name and Secret namespace: the Secret in the session’s cluster that holds the password;
- Username: a fixed username, for example
admin; - Password key: the Secret key holding the password.
The credentials are read from the Secret during the lab and shown above the tab so the learner can log in.
-
With several app views, reorder them with the Move up and Move down arrows: that is the tab order in the lab.
Check it in the preview
Section titled “Check it in the preview”-
Click Preview, then Launch preview (or Recreate if a preview is already running).
-
Once the terminal is ready, the Code tab and your app view tabs appear beside the terminal. In the preview drawer they offer a link that opens the tool in a new browser tab, with the credentials if you configured them.
-
Open each tab and check that the tool loads and works, login included.
Workspace changes take effect at the next publish (see Publish and manage your scenarios).

