-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Ui/summary dashboard #9079
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Monkeychip
merged 34 commits into
ui/replication-status-discoverability
from
ui/summary-dashboard
May 29, 2020
Merged
Ui/summary dashboard #9079
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
befb629
move key value to lib/core/addon so I can use inside replication engine
Monkeychip 05e52ca
setup summary dasbhoard on replication summary component
Monkeychip a912311
set title for summary dashboard
andaley 01fd5b2
do not show replication table rows on summary dashboard
andaley c890cdc
show that last_wal updates every 10 seconds
andaley 0121803
show replication table rows on individual dashboards, but not summary
andaley a1dd392
remove extra bottom border on replication-dashboard
andaley 1cd1fc8
add replicationDetailsSummary object and replication-summary-card
Monkeychip e71f023
setup structure and data calcs of replication summary card
Monkeychip 536a9a8
fix links and styling on summary card
Monkeychip ee43fcb
breadcrumbs
Monkeychip a0f4fca
match state title on summary dashboard to individual dashboards
andaley 59e29e3
add margin below replication header
andaley 68f34fb
update breadcrumbs to show replication mode
andaley 59df88c
align details link right
andaley fe2ebc6
add margin below tabs in replication header
andaley e00460f
user helper-text to make card text styling consistent across dashboards
andaley ca03f9f
remove unneeded code
andaley 716de2e
add bottom border to summary state
andaley 38846bc
add bottom margin to summary dashboard
andaley fc17ec7
add negative margins to bring values closer to related cell
Monkeychip b81dce9
fix failing test due to data-test attribute change and make storybook…
Monkeychip eefc064
setup replication summary card test. I suspect we'll move the hasErr…
Monkeychip 3dff903
add to replication acceptance test for new summary dashboard
Monkeychip 1b42499
remove pauseTest
Monkeychip bb2b4c8
add is-active to li element
Monkeychip df1464e
clean up
Monkeychip d092a01
dashboard test and clean up
Monkeychip 901ad25
addressing pr comments
Monkeychip 2f58e27
fix replication/null/status error
Monkeychip 54d578a
add JSDocs for rep page and rep dash
Monkeychip 74ddb0e
more pr cleanup
Monkeychip 38e67d4
remove conditional and fix styling blue link
Monkeychip e29493b
fix conditional on when loading summary dashboard to check for primar…
Monkeychip File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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() { | ||
Monkeychip marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.