-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/relui: enable creation of mock workflow
This change introduces mock data, multiple templates, and an in-memory store to the release automation webserver. The goal of this change is to introduce a basic UI structure. The underlying data infrastructure is only for mock purposes, and will be replaced in a future CL. This change enables creation and viewing of an in-memory workflow, with very minor data stored. List screenshot: https://storage.googleapis.com/screen.toothrot.net/pub/2020-07-17-workflow-list.png New workflow screenshot: https://storage.googleapis.com/screen.toothrot.net/pub/2020-07-01-11_23_17-workflows-new.png For golang/go#40279 Change-Id: Id9dfcc01cb2aba1df3e36d7a6301bbf8b47476da Reviewed-on: https://go-review.googlesource.com/c/build/+/243339 Run-TryBot: Alexander Rakoczy <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Andrew Bonventre <[email protected]>
- Loading branch information
Showing
8 changed files
with
352 additions
and
33 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
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,33 @@ | ||
<!-- | ||
Copyright 2020 The Go Authors. All rights reserved. | ||
Use of this source code is governed by a BSD-style | ||
license that can be found in the LICENSE file. | ||
--> | ||
{{define "content"}} | ||
<section class="Workflows"> | ||
<div class="Workflows-header"> | ||
<h2>Workflows</h2> | ||
<a href="/workflows/new" class="Button">New</a> | ||
</div> | ||
<ul class="WorkflowList"> | ||
{{range $workflow := .Workflows}} | ||
<li class="WorkflowList-item"> | ||
<h3>{{$workflow.Title}}</h3> | ||
<h4 class="WorkflowList-sectionTitle">Tasks</h4> | ||
<ul class="TaskList"> | ||
{{range $task := $workflow.Tasks}} | ||
<li class="TaskList-item"> | ||
<span class="TaskList-itemTitle">{{$task.Title}}</span> | ||
Status: {{$task.Status}} | ||
</li> | ||
{{end}} | ||
<li class="TaskList-item"> | ||
<span class="TaskList-itemTitle">Sample Task</span> | ||
Status: created | ||
</li> | ||
</ul> | ||
</li> | ||
{{end}} | ||
</ul> | ||
</section> | ||
{{end}} |
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,17 @@ | ||
<!-- | ||
Copyright 2020 The Go Authors. All rights reserved. | ||
Use of this source code is governed by a BSD-style | ||
license that can be found in the LICENSE file. | ||
--> | ||
{{define "content"}} | ||
<section class="NewWorkflow"> | ||
<h2>New Go Release</h2> | ||
<form action="/workflows/create" method="post"> | ||
<label> | ||
Revision | ||
<input name="workflow.revision" value="master" /> | ||
</label> | ||
<input name="workflow.create" type="submit" value="Create" /> | ||
</form> | ||
</section> | ||
{{end}} |
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
Oops, something went wrong.