Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
187 changes: 82 additions & 105 deletions client/cat3/src/partials/sections/dashboard/bots/bots.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
padding-bottom: 10px;
}

.paddingbottom20 {
padding-bottom: 20px;
}

.margintop8 {
margin-top: 8px;
}
Expand All @@ -36,137 +40,84 @@
height: 50px;
}

#botAuditTrailPage {
.ui-grid-column-menu-button {
display: none;
}
.param-table {
max-height: 400px;
overflow-y: auto;
}

#botLibraryPage, #botAuditTrailPage {
.page-name {
font-size: 18px;
margin: 5px 0 5px 10px;
font-size: 18px;
margin: 5px 0 5px 10px;
}

.btn-xs {
padding: 1px 5px;
font-size: 12px;
padding: 1px 5px;
font-size: 12px;
}

.refresh-btn {
margin: 2px 10px 0 0;
}

.borderTop {
border-top: 1px dashed #ddd;
}
}

#botLibraryPage {
.summary-container {
width: 100%;
}

.selected {
height: 92px !important;
margin-top: 14px !important;
.search-text {
font-weight: normal;
}

.selected-blue {
color: #00c0ef !important;
border: 1px solid #00c0ef !important;
.bot-search {
-webkit-appearance: textfield !important;
}

.selected-green {
color: #00a65a !important;
border: 1px solid #00a65a !important;
}

.selected-red {
color: #dd4b39 !important;
border: 1px solid #dd4b39 !important;
.borderTop {
border-top: 1px dashed #ddd;
}
}

.info-box {
display: block;
min-height: 90px;
background: #fff;
#botLibraryPage {
.summary-container {
width: 100%;
box-shadow: 0 1px 1px rgba(0,0,0,0.1);
margin: 15px 0;
border: 1px solid #ccc;
}

.info-box-content {
padding: 5px 10px;
margin-left: 90px;
}

.info-box-text {
text-transform: uppercase;
.bot-library-search {
height: 33px;
margin-right: 12px;
}

.info-box-text {
display: block;
font-size: 13px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.info-box-number {
display: block;
font-weight: bold;
font-size: 20px;
}

.info-box-icon {
display: block;
float: left;
height: 88px;
width: 88px;
text-align: center;
font-size: 45px;
line-height: 90px;
background: rgba(0,0,0,0.2);
}

.bg-aqua {
background-color: #00c0ef !important;
}

.bg-green {
background-color: #00a65a !important;
.section-bottom-glyph {
position: absolute;
top: 140px;
left: 97px;
font-size: 22px;
display: none;
}

.bg-red {
background-color: #dd4b39 !important;
.selected-section {
display: block !important;
}
}

#botLibraryPage{
.circle-tile {
margin-bottom: 15px;
text-align: center;
}

.circle-tile-heading {
position: relative;
width: 80px;
height: 80px;
margin: 10px auto -40px;
border: 3px solid rgba(255,255,255,0.3);
width: 65px;
height: 65px;
margin: 10px auto -35px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-radius: 100%;
color: #fff;
padding-top: 16px;
padding-top: 15px;
transition: all ease-in-out .3s;
}

.circle-tile-number {
padding: 5px 0 15px;
padding: 5px 0 6px;
font-size: 26px;
font-weight: 700;
line-height: 1;
height: 37px;
}

.circle-tile-content {
Expand All @@ -186,6 +137,14 @@
background-color: #00c0ef;
}

.dark-blue-glyph {
color: #00c0ef;
}

.green-glyph {
color: #00a65a;
}

.green {
background-color: #00a65a;
}
Expand All @@ -194,38 +153,56 @@
background-color: #f39c12;
}

.red {
.redcard {
background-color: #e74c3c;
}

.redcard-glyph {
color: #e74c3c;
}

.bg-blue {
background-color: #2980b9;
}

.bg-blue-glyph {
color: #2980b9;
}

.font-size-16 {
font-size: 16px;
}

a.cursor {
padding: 0 5px;
}

.margin-21 {
margin: 0 20px;
}

#botLibraryPage .selected-blue {
border: none !important;
}

.ui-grid-cell{
border-right:none !important;
}

/*global css*/
.ui-grid .ui-grid-row {
border-bottom: 1px solid #ccc;
}
}

.bot-library-search {
height: 33px;
margin-right: 12px;
}

.bot-audit-trail-search {
height: 31px;
margin: 6px 9px 0 0px;
}
#botAuditTrailPage {
.bot-audit-trail-search {
height: 31px;
margin: 6px 9px 0 0px;
}

.search-text {
font-weight: normal;
.ui-grid-column-menu-button {
display: none;
}
}

.bot-search {
-webkit-appearance: textfield !important;
/*global css*/
.ui-grid .ui-grid-row {
border-bottom: 1px solid #ccc;
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@
{ name: 'description',field:'botDesc',cellTooltip: true},
{ name: 'Organization',field:'masterDetails.orgName',cellTooltip: true},
{ name: 'Total Runs',field:'executionCount'},
{ name: 'BOT History',displayName: 'BOT History',cellTemplate:'<span ng-show="row.entity.blueprintType">NA</span>'+
'<span class="btn cat-btn-update control-panel-button" title="History" ng-show="row.entity.botLinkedSubCategory" ng-click="grid.appScope.botHistory(row.entity);"><i class="fa fa-header white"></i></span>'},
{ name: 'BOT Info',displayName: 'BOT Info',cellTemplate:
'<span class="btn cat-btn-update control-panel-button" title="Info" ng-click="grid.appScope.botInfo(row.entity);"><i class="fa fa-info white"></i></span>'},
{ name: 'BOT Action',displayName: 'BOT Action',cellTemplate:
'<span class="btn cat-btn-update control-panel-button" title="Schedule" ng-click="grid.appScope.botSchedule(row.entity);"><i class="fa fa-calendar white"></i></span>' +
'<span class="btn cat-btn-update control-panel-button" title="Execute" ng-click="grid.appScope.launchInstance(row.entity);"><i class="fa fa-play white"></i></span>' +
'<span class="btn btn-danger control-panel-button" title="Delete Bot" ng-click="grid.appScope.deleteBot(row.entity);"><i class="fa fa-trash-o white"></i></span>'
{ name: 'BOT Action',width:200,displayName: 'BOT Action',cellTemplate:
// '<a class="cursor" title="History" ng-click="grid.appScope.botLogs(row.entity);"><i class="fa fa-header font-size-16"></i></a>'+
'<a class="cursor" title="History" ng-click="grid.appScope.botHistory(row.entity);"><i class="fa fa-header font-size-16"></i></a>'+
'<a class="cursor" title="Info" ng-click="grid.appScope.botInfo(row.entity);"><i class="fa fa-info font-size-16"></i></a>'+
//'<a class="cursor" title="Edit" ng-click="grid.appScope.createBot(row.entity);"><i class="fa fa-pencil font-size-16"></i></a>'+
'<a class="cursor" title="Schedule" ng-click="grid.appScope.botSchedule(row.entity);"><i class="fa fa-calendar font-size-16"></i></a>' +
'<a class="cursor" title="Execute" ng-click="grid.appScope.launchInstance(row.entity);"><i class="fa fa-play font-size-16"></i></a>' +
//'<a class="cursor" title="Report" ng-click="grid.appScope.botReport(row.entity);"><i class="fa fa-file-text font-size-16"></i></a>' +
'<a class="cursor" title="Delete" ng-click="grid.appScope.deleteBot(row.entity);"><i class="fa fa-trash-o font-size-16"></i></a>'
}
]
$scope.botLibGridOptions.data=[];
Expand Down Expand Up @@ -127,7 +128,7 @@
$scope.errorMessage = "No Records found";
});
};
var gridBottomSpace = 225;
var gridBottomSpace = 265;
$scope.gridHeight = workzoneUIUtils.makeTabScrollable('botLibraryPage') - gridBottomSpace;
$scope.launchInstance = function(launch){
if(launch.botLinkedCategory === 'Task'){
Expand Down Expand Up @@ -214,6 +215,8 @@
$scope.botLibraryGridView();
} else if($scope.runningBotsselected) {
$scope.showBotsRunning();
} else if($scope.scheduledBotsSelected) {
$scope.showScheduledBots();
} else if($scope.failedBotsselected) {
$scope.showFailedBots();
} else {
Expand All @@ -236,6 +239,8 @@
$scope.botLibraryGridView();
} else if($scope.runningBotsselected) {
$scope.showBotsRunning();
} else if($scope.scheduledBotsSelected) {
$scope.showScheduledBots();
} else if($scope.failedBotsselected) {
$scope.showFailedBots();
} else {
Expand All @@ -246,13 +251,15 @@
$scope.totalBotsSelected = true;
$scope.runningBotsselected = false;
$scope.failedBotsselected = false;
$scope.scheduledBotsSelected = false;
lib.summary();
$scope.botLibraryGridView();
};
$scope.showBotsRunning = function() {
$scope.runningBotsselected = true;
$scope.totalBotsSelected = false;
$scope.failedBotsselected = false;
$scope.scheduledBotsSelected = false;
lib.gridOptions.data=[];
var param={
url:'/bots?actionStatus=running&page=' + $scope.paginationParams.page +'&pageSize=' + $scope.paginationParams.pageSize +'&sortBy=' + $scope.paginationParams.sortBy +'&sortOrder=' + $scope.paginationParams.sortOrder
Expand All @@ -269,6 +276,7 @@
$scope.failedBotsselected = true;
$scope.runningBotsselected = false;
$scope.totalBotsSelected = false;
$scope.scheduledBotsSelected = false;
lib.gridOptions.data=[];
var param={
url:'/bots?actionStatus=failed&page=' + $scope.paginationParams.page +'&pageSize=' + $scope.paginationParams.pageSize +'&sortBy=' + $scope.paginationParams.sortBy +'&sortOrder=' + $scope.paginationParams.sortOrder
Expand All @@ -281,6 +289,23 @@
});
lib.summary();
};
$scope.showScheduledBots = function() {
$scope.failedBotsselected = false;
$scope.runningBotsselected = false;
$scope.totalBotsSelected = false;
$scope.scheduledBotsSelected = true;
lib.gridOptions.data=[];
var param={
url:'/bots?filterBy=isBotScheduled:true&page=' + $scope.paginationParams.page +'&pageSize=' + $scope.paginationParams.pageSize +'&sortBy=' + $scope.paginationParams.sortBy +'&sortOrder=' + $scope.paginationParams.sortOrder
};
genSevs.promiseGet(param).then(function (result) {
$timeout(function() {
$scope.botLibGridOptions.totalItems = result.metaData.totalRecords;
$scope.botLibGridOptions.data=result.bots;
}, 100);
});
lib.summary();
};
lib.summary = function() {
$scope.botSummary=[];
var param={
Expand Down
Loading