-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move key value to lib/core/addon so I can use inside replication engine * setup summary dasbhoard on replication summary component * set title for summary dashboard * do not show replication table rows on summary dashboard * show that last_wal updates every 10 seconds * show replication table rows on individual dashboards, but not summary * remove extra bottom border on replication-dashboard * add replicationDetailsSummary object and replication-summary-card * setup structure and data calcs of replication summary card * fix links and styling on summary card * breadcrumbs * match state title on summary dashboard to individual dashboards * add margin below replication header * update breadcrumbs to show replication mode * align details link right * add margin below tabs in replication header * user helper-text to make card text styling consistent across dashboards * remove unneeded code * add bottom border to summary state * add bottom margin to summary dashboard * add negative margins to bring values closer to related cell * fix failing test due to data-test attribute change and make storybook component for replication-summary-card * setup replication summary card test. I suspect we'll move the hasError test to the dashboard where the error will show around the state display * add to replication acceptance test for new summary dashboard * remove pauseTest * add is-active to li element * clean up * dashboard test and clean up * addressing pr comments * fix replication/null/status error * add JSDocs for rep page and rep dash * more pr cleanup * remove conditional and fix styling blue link * fix conditional on when loading summary dashboard to check for primary on both. wrap code in div so it lands on another line. Co-authored-by: Noelle Daley <[email protected]>
- Loading branch information
1 parent
ef8e476
commit bf88fdc
Showing
25 changed files
with
626 additions
and
139 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,5 @@ | ||
.replication-header { | ||
.tabs-container { | ||
margin-bottom: $spacing-l; | ||
} | ||
} |
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
2 changes: 2 additions & 0 deletions
2
ui/app/components/key-value-header.js → ...core/addon/components/key-value-header.js
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
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,44 @@ | ||
import Component from '@ember/component'; | ||
import { computed } from '@ember/object'; | ||
import layout from '../templates/components/replication-summary-card'; | ||
|
||
/** | ||
* @module ReplicationSummaryCard | ||
* The `ReplicationSummaryCard` is a card-like component. It displays cluster mode details for both DR and Performance | ||
* | ||
* @example | ||
* ```js | ||
* <ReplicationSummaryCard | ||
@title='States' | ||
@replicationDetails={DS.Model.replicationDetailsSummary} | ||
/> | ||
* ``` | ||
* @param {String} [title=null] - The title to be displayed on the top left corner of the card. | ||
* @param {Object} replicationDetails=null - An Ember data object computed off the Ember Model. It combines the Model.dr and Model.performance objects into one and contains details specific to the mode replication. | ||
*/ | ||
|
||
export default Component.extend({ | ||
layout, | ||
title: null, | ||
replicationDetails: null, | ||
lastDrWAL: computed('replicationDetails.dr.{lastWAL}', function() { | ||
return this.replicationDetails.dr.lastWAL || 0; | ||
}), | ||
lastPerformanceWAL: computed('replicationDetails.performance.{lastWAL}', function() { | ||
return this.replicationDetails.performance.lastWAL || 0; | ||
}), | ||
merkleRootDr: computed('replicationDetails.dr.{merkleRoot}', function() { | ||
return this.replicationDetails.dr.merkleRoot || ''; | ||
}), | ||
merkleRootPerformance: computed('replicationDetails.performance.{merkleRoot}', function() { | ||
return this.replicationDetails.performance.merkleRoot || ''; | ||
}), | ||
knownSecondariesDr: computed('replicationDetails.dr.{knownSecondaries}', function() { | ||
const knownSecondaries = this.replicationDetails.dr.knownSecondaries; | ||
return knownSecondaries.length; | ||
}), | ||
knownSecondariesPerformance: computed('replicationDetails.performance.{knownSecondaries}', function() { | ||
const knownSecondaries = this.replicationDetails.performance.knownSecondaries; | ||
return knownSecondaries.length; | ||
}), | ||
}); |
File renamed without changes.
Oops, something went wrong.