-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move UI out of experimental mode (#7012)
* Make UI not experimental * Display API and UI URLs * Remove link to old sources * Fix integration tests * Add UI to Usage Data * Add a "Using the GUI to edit the Devfile" page to doc * Add link to odo.dev specific page * Apply suggestions from code review Co-authored-by: Armel Soro <[email protected]> * Change favicon with odo logo * Display web console URL as part of the Dev status * Update UI static files * Document that Comments not supported * Add UI screenshots --------- Co-authored-by: Armel Soro <[email protected]>
- Loading branch information
Showing
24 changed files
with
170 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
--- | ||
title: Using the Web UI to edit the Devfile | ||
sidebar_position: 3 | ||
--- | ||
|
||
When the command `odo dev` is running, a Graphical User Interface (GUI) is accessible (generally at http://localhost:20000). | ||
|
||
The interface can be used to edit the Devfile used by the `odo dev` session. | ||
|
||
The interface proposes three representations of the Devfile: a textual representation in YAML format, a Chart, and a graphical representation. | ||
|
||
You can edit any representation independently, the other representations will be modified accordingly. The chart is read-only, the two other representations can be freely edited. | ||
|
||
The YAML representation reflects exactly the content of the `devfile.yaml` file found into the directory where the `odo dev` session is running. | ||
|
||
<figure> | ||
<img | ||
src={require('/static/img/ui-textual-representation.png').default} | ||
alt="Textual Representation of a Devfile in Devfile Builder" | ||
/> | ||
<figcaption>A Textual Representation of a Devfile</figcaption> | ||
</figure> | ||
|
||
|
||
The page *Chart* contains a chart describing the different steps of the `odo dev` session. | ||
|
||
<figure> | ||
<img | ||
src={require('/static/img/ui-chart-representation.png').default} | ||
alt="Chart Representation of a Devfile in Devfile Builder" | ||
/> | ||
<figcaption>A Chart Representation of a Devfile</figcaption> | ||
</figure> | ||
|
||
The following pages of the UI contain a graphical representation of the Devfile. From these pages, you can edit the Devfile by adding and deleting objects (commands, events, containers, images, resources and volumes). From the *Commands* page, it is possible to change the *Kind* (Build, Run, Test, Debug or Deploy) of each command. | ||
|
||
<figure> | ||
<img | ||
src={require('/static/img/ui-graphical-representation.png').default} | ||
alt="Graphical Representation of a Devfile in Devfile Builder" | ||
/> | ||
<figcaption>A Graphical Representation of a Devfile</figcaption> | ||
</figure> | ||
|
||
When you *Save* the Devfile, the content of the YAML representation is saved to the disk, replacing the previous version of the Devfile. The `odo dev` session will react accordingly, depending on the changes done into the Devfile. | ||
|
||
When the file `devfile.yaml` is modified, its content is sent to the GUI, which will alert you and give you the opportunity to accept the changes done into the file. If you accept, the changes you may have done in the interface will be lost. | ||
|
||
## Limitations | ||
|
||
### Limited Devfile Schema Versions | ||
|
||
The only supported Devfile Schema version is 2.2.0. | ||
|
||
### Limited support of parameters during object creation | ||
|
||
When you create an object (either a command, a container or an image) from the graphical representation, you can fill in a limited number of parameters for the object, as only the more common parameters are presented in the creation form. | ||
|
||
You can add parameters to the object after it has been created by editing it from the YAML representation. | ||
|
||
### Limited support for parent devfile | ||
|
||
When the current Devfile is referencing a parent Devfile (using the `.parent` field into the YAML), this parent is not represented into the GUI. | ||
|
||
It is still possible to add a parent information to the YAML representation. It will be taken into account by the `odo dev` session once saved. | ||
|
||
### Experimental Chart representation | ||
|
||
The chart representation is experimental. It is possible that, for some complex Devfile, the chart is not accurate or is not displayed. | ||
|
||
### Comments in YAML are not supported | ||
|
||
Comments are generally supported in YAML. In the case of a Devfile, the library used to validate the contents of a Devfile discards these comments. | ||
This results in that comments are removed from the YAML when you save it. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// package informer provides a service to register information | ||
// to display during Dev mode to the user in a regular basis | ||
package informer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package informer | ||
|
||
type InformerClient struct { | ||
info string | ||
} | ||
|
||
func NewInformerClient() *InformerClient { | ||
return &InformerClient{} | ||
} | ||
|
||
func (o *InformerClient) AppendInfo(s string) { | ||
if o.info != "" { | ||
o.info += "\n" | ||
} | ||
o.info += s | ||
} | ||
|
||
func (o *InformerClient) GetInfo() string { | ||
return o.info | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ var ( | |
} | ||
|
||
UIServer = OdoFeature{ | ||
isExperimental: true, | ||
isExperimental: false, | ||
} | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.