Better deployment UX

This commit is contained in:
Kaitlyn Parkhurst 2021-06-20 17:04:17 -07:00
parent 60dc608e63
commit d2a9481ece
5 changed files with 27 additions and 22 deletions

View file

@ -53,12 +53,10 @@ sub startup ($self) {
$r->post ('/node') ->to('Node#create');
# Deployment
$r->get ('/deploy/automatic' ) ->to('Deploy::Automatic#index' );
$r->get ('/deploy/automatic/:node_id' ) ->to('Deploy::Automatic#deploy');
$r->get ('/deploy/automatic/:node_id' ) ->to('Deploy::Automatic#deploy')->name('deploy_automatic');
$r->post ('/deploy/automatic' ) ->to('Deploy::Automatic#create');
$r->get ('/deploy/manual' ) ->to('Deploy::Manual#index' );
$r->get ('/deploy/manual/:node_id' ) ->to('Deploy::Manual#deploy');
$r->get ('/deploy/manual/:node_id' ) ->to('Deploy::Manual#deploy')->name('deploy_manual');
$r->post ('/deploy/manual' ) ->to('Deploy::Manual#create');
# Manage SSH Keys

View file

@ -59,22 +59,5 @@
</li>
</ul>
-->
<h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted">
<span>Deployment</span>
</h6>
<ul class="nav flex-column mb-2">
<li class="nav-item">
<a class="nav-link [% $sb_active == "deploy_automatic" ? "active" : "" %]" href="/deploy/automatic">
<span data-feather="hard-drive"></span>
Remote Node
</a>
</li>
<li class="nav-item">
<a class="nav-link [% $sb_active == "deploy_manual" ? "active" : "" %]" href="/deploy/manual">
<span data-feather="user"></span>
Manual Setup
</a>
</li>
</div>
</nav>

View file

@ -17,6 +17,14 @@
<td>[% $node.nebula_ip %]</td>
<td>[% $node.public_ip %]</td>
<td>
<a href="[% $c.url_for( 'deploy_automatic', {'node_id', $node.id} ) %]"
title="Automatically Deploy Node"
><span data-feather="upload-cloud"></span></a>
&nbsp;
<a href="[% $c.url_for( 'deploy_manual', {'node_id', $node.id} ) %]"
title="Manually Deploy Node"
><span data-feather="download-cloud"></span></a>
&nbsp;
<a href="[% $c.url_for( 'view_node', {'node_id', $node.id} ) %]"
title="View Node Details"
><span data-feather="arrow-right"></span></a>

View file

@ -1,8 +1,16 @@
%% cascade _base::layout { title => "Deploy Node",
%% sb_active => 'deploy_automatic'
%% sb_active => 'dashboard'
%% }
%% override panel -> {
<nav style="margin-top: 2em;" aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="[% $c.url_for( 'dashboard' ) %]">Dashboard</a></li>
<li class="breadcrumb-item"><a href="[% $c.url_for( 'list_nodes' ) %]">Nodes</a></li>
<li class="breadcrumb-item"><a href="[% $c.url_for( 'view_node', 'node_id', $node.id ) %]">[% $node.hostname %]</a></li>
<li class="breadcrumb-item active" aria-current="page">Automatic Deploy</li>
</ol>
</nav>
<table style="margin-top: 2em" class="table">
<thead>

View file

@ -3,6 +3,14 @@
%% }
%% override panel -> {
<nav style="margin-top: 2em;" aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="[% $c.url_for( 'dashboard' ) %]">Dashboard</a></li>
<li class="breadcrumb-item"><a href="[% $c.url_for( 'list_nodes' ) %]">Nodes</a></li>
<li class="breadcrumb-item"><a href="[% $c.url_for( 'view_node', 'node_id', $node.id ) %]">[% $node.hostname %]</a></li>
<li class="breadcrumb-item active" aria-current="page">Automatic Deploy</li>
</ol>
</nav>
<table style="margin-top: 2em" class="table">
<thead>