Unverified Commit e477dc93 authored by Noelle Daley's avatar Noelle Daley Committed by GitHub
Browse files

show dynamic state glyph (#8747)

* show dynamic state glyph

* show state glyph after state

* move LearnLink into core addon

* make ReplicationDocLink component

* prevent double lines at the bottom of the dashboard
parent 7f992f37
Showing with 39 additions and 18 deletions
+39 -18
.replication-dashboard {
.documentation-link {
float: right;
}
.selectable-card {
line-height: normal;
......@@ -66,4 +62,9 @@
}
}
}
// prevent double lines at the bottom of the dashboard
&.box {
padding-bottom: 0;
}
}
.documentation-link {
margin: $spacing-s 0 $spacing-l 0;
float: right;
.doc-link {
font-weight: normal;
}
}
......@@ -80,6 +80,7 @@
@import './components/radial-progress';
@import './components/raft-join';
@import './components/replication-dashboard';
@import './components/replication-doc-link';
@import './components/replication-primary-card';
@import './components/replication-summary';
@import './components/role-item';
......
import Component from '@ember/component';
import layout from '../templates/components/replication-doc-link';
export default Component.extend({
layout,
});
......@@ -9,23 +9,15 @@
{{/if}}
<div class="selectable-card-container has-top-margin-xl">
{{yield (hash
{{yield (hash
card=(component componentToRender data=data)
)}}
</div>
{{yield (hash
{{yield (hash
isSyncing=isSyncing
rows=(component 'replication-table-rows' data=data)
)}}
<div class="documentation-link">
<p class="has-text-grey">We have additional timeseries telemetry that can be found
<LearnLink
@path="/vault/operations/monitor-replication#key-monitoring-metrics"
> in our documentation</LearnLink>
.
</p>
</div>
<ReplicationDocLink />
</div>
<div class="documentation-link">
<p class="has-text-grey">We have additional timeseries telemetry that can be found
<LearnLink @path="/vault/operations/monitor-replication#key-monitoring-metrics"> in our documentation</LearnLink>
.
</p>
</div>
export { default } from 'core/components/learn-link';
export { default } from 'core/components/replication-doc-link';
......@@ -14,6 +14,7 @@ import Component from '@ember/component';
* ```
* @param {string} [title=null] - The title to be displayed on the top left corner of the card.
* @param {string} [description=null] - Helper text to describe the metric on the card.
* @param {object} [glyph=null] - The glyph to display beside the metric.
* @param {string} metric=null - The main metric to highlight on the card.
*/
......@@ -22,4 +23,5 @@ export default Component.extend({
title: null,
description: null,
metric: null,
glyph: null,
});
......@@ -5,9 +5,10 @@
{{description}}
</span>
<h3 class="title is-3">
{{!-- TODO make this dynamic --}}
<Icon @glyph="check-circle-outline" class="has-text-success" />
{{metric}}
{{#if glyph}}
<Icon @glyph={{glyph}} class="has-text-success" />
{{/if}}
</h3>
</div>
</div>
......@@ -349,6 +349,7 @@
<ReplicationPrimaryCard
@title='State'
@description='Updated every ten seconds.'
@glyph={{get cluster (concat replicationMode 'StateGlyph')}}
@metric={{replicationAttrs.state}}/>
<ReplicationPrimaryCard
@title='Last WAL entry'
......@@ -357,6 +358,7 @@
<KnownSecondariesCard @cluster={{cluster}} @replicationAttrs={{replicationAttrs}} />
</div>
<ReplicationTableRows @data={{replicationAttrs}}/>
<ReplicationDocLink />
</div>
{{/if}}
{{/if}}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment