Skip to content

Commit

Permalink
rename summary to dashboard (#66)
Browse files Browse the repository at this point in the history
rename summary to dashboard
  • Loading branch information
plessbd authored Sep 9, 2019
2 parents 49dcad9 + 5cb34b0 commit 60422d6
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 50 deletions.
2 changes: 1 addition & 1 deletion configuration/assets.d/appkernels.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"gui/js/modules/app_kernels/AppKernelExplorer.js",
"gui/js/modules/app_kernels/AppKernelNotificationPanel.js",
"gui/js/modules/app_kernels/AppKerPerformanceMapPanel.js",
"gui/js/modules/summary/CenterReportCardPortlet.js",
"gui/js/modules/dashboard/CenterReportCardComponent.js",
"internal_dashboard/js/AppKernel/InstancePanel.js",
"internal_dashboard/js/AppKernel/InstanceWindow.js",
"internal_dashboard/js/AppKernel/InstanceStore.js",
Expand Down
34 changes: 34 additions & 0 deletions configuration/roles.d/appkernels:dashboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"+roles": {
"+cd": {
"+dashboard_components": [
{
"name": "Center Report Card",
"type": "xdmod-dash-centerrepcard-cmp",
"location": {
"row": 0,
"column": 1
},
"config": {
"timeframe": "Year to date"
}
}
]
},
"+cs": {
"+dashboard_components": [
{
"name": "Center Report Card",
"type": "xdmod-dash-centerrepcard-cmp",
"location": {
"row": 0,
"column": 1
},
"config": {
"timeframe": "30 day"
}
}
]
}
}
}
34 changes: 0 additions & 34 deletions configuration/roles.d/appkernels:summary.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* global Ext, XDMoD, CCR, window */
Ext.namespace('XDMoD.Modules.SummaryPortlets');
Ext.namespace('XDMoD.Module.Dashboard');

/**
* XDMoD.Modules.SummaryPortlets.CenterReportCardPortlet
* XDMoD.Module.Dashboard.CenterReportCardComponent
*
* This portlet is responsible for displaying data that could be used to determine
* This component is responsible for displaying data that could be used to determine
* the "health" of a center. Specifically, this implementation shows App Kernel
* data for a given XDMoD Installation. Specifically it will display a horizontal
* stacked barchart of the failed, in control, and under / over performing runs
Expand All @@ -16,7 +16,7 @@ Ext.namespace('XDMoD.Modules.SummaryPortlets');
* `modw.resourcefact.organization_id`.
*
*
* This portlet is driven by the REST Endpoint at
* This component is driven by the REST Endpoint at
* `<XDMoD Rest URL>/app_kernels/performance_map/raw`. Which in turn is served by
* the `AppKernelControllerProvider::getRawPerformanceMap` function.
*
Expand All @@ -31,7 +31,7 @@ Ext.namespace('XDMoD.Modules.SummaryPortlets');
* - `this.gridstore.listeners.load`
* - `this.gridstore.listeners.exception`
*/
XDMoD.Modules.SummaryPortlets.CenterReportCardPortlet = Ext.extend(Ext.ux.Portlet, {
XDMoD.Module.Dashboard.CenterReportCardComponent = Ext.extend(Ext.ux.Portlet, {

layout: 'fit',
autoScroll: true,
Expand Down Expand Up @@ -77,7 +77,7 @@ XDMoD.Modules.SummaryPortlets.CenterReportCardPortlet = Ext.extend(Ext.ux.Portle
],

/**
* Constructor for the CenterReportCardPortlet.
* Constructor for the CenterReportCardComponent.
*/
initComponent: function () {
var self = this;
Expand All @@ -94,7 +94,7 @@ XDMoD.Modules.SummaryPortlets.CenterReportCardPortlet = Ext.extend(Ext.ux.Portle
}
}
/**
* The main datastore for this portlet. It retrieves app kernel run data
* The main datastore for this component. It retrieves app kernel run data
* for the specified time period from `this.config.start_date` to
* `this.config.end_date`. These values are populated w/ the value from
* the XDMoD Duration Toolbar.
Expand All @@ -121,7 +121,7 @@ XDMoD.Modules.SummaryPortlets.CenterReportCardPortlet = Ext.extend(Ext.ux.Portle
},
listeners: {
load: function () {
// Make sure that once we're loaded we remove this portlets
// Make sure that once we're loaded we remove this component's
// mask. This was added during the `afterrender` event.
self.el.unmask();
},
Expand Down Expand Up @@ -262,7 +262,7 @@ XDMoD.Modules.SummaryPortlets.CenterReportCardPortlet = Ext.extend(Ext.ux.Portle
}; // var valueRenderer = function (value, metaData, record) {

/**
* The main visual element for this portlet. Displays App Kernels by
* The main visual element for this component. Displays App Kernels by
* resource, name, and a stacked horizontal bar chart of the failed,
* under performing, in control and over performing runs.
*/
Expand Down Expand Up @@ -333,12 +333,12 @@ XDMoD.Modules.SummaryPortlets.CenterReportCardPortlet = Ext.extend(Ext.ux.Portle

this.updateTitle(this.config.start_date, this.config.end_date);

XDMoD.Modules.SummaryPortlets.CenterReportCardPortlet.superclass.initComponent.apply(this, arguments);
XDMoD.Module.Dashboard.CenterReportCardComponent.superclass.initComponent.apply(this, arguments);
}, // initComponent

listeners: {
duration_change: function (timeframe) {
// Mask the portlet as we're going to be loading new data.
// Mask the component as we're going to be loading new data.
this.el.mask('Loading...');

this.gridStore.load({
Expand All @@ -348,7 +348,7 @@ XDMoD.Modules.SummaryPortlets.CenterReportCardPortlet = Ext.extend(Ext.ux.Portle
}
});

// Make sure that the portlet title reflects the updated start / end
// Make sure that the component title reflects the updated start / end
// date
this.updateTitle(timeframe.start_date, timeframe.end_date);

Expand All @@ -363,7 +363,7 @@ XDMoD.Modules.SummaryPortlets.CenterReportCardPortlet = Ext.extend(Ext.ux.Portle
}, // listeners: {

/**
* A helper function that will update this portlet's title attribute w/
* A helper function that will update this component's title attribute w/
* the start / end date used to generate the data it is displaying.
*
* @param {Date} startDate
Expand All @@ -383,6 +383,6 @@ XDMoD.Modules.SummaryPortlets.CenterReportCardPortlet = Ext.extend(Ext.ux.Portle
('' + date.getDate()).padStart(2, '0');
} // formatDate: function(date) {

}); // XDMoD.Modules.SummaryPortlets.CenterReportCardPortlet = Ext.extend(Ext.ux.Portlet, {
}); // XDMoD.Module.Dashboard.CenterReportCardComponent = Ext.extend(Ext.ux.Portlet, {

Ext.reg('CenterReportCardPortlet', XDMoD.Modules.SummaryPortlets.CenterReportCardPortlet);
Ext.reg('xdmod-dash-centerrepcard-cmp', XDMoD.Module.Dashboard.CenterReportCardComponent);

0 comments on commit 60422d6

Please sign in to comment.