Skip to content

Commit 6d9026b

Browse files
committed
Release version for 3.0.0!
- Updated info boxes on the top of pages - Updated status page to use times - Bumped version number - Minor UI updates as always
1 parent 9d9199c commit 6d9026b

File tree

9 files changed

+44
-17
lines changed

9 files changed

+44
-17
lines changed

assets/src/modules/sm/App/controllers/AppController.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ angular.module('sm').controller("AppController", function($scope, localStorage,
3232
};
3333

3434
$scope.state.ui = {
35-
alert_betaInfo: true,
3635
alert_newFeatures: true,
36+
alert_generateFeatures: true,
37+
alert_searchFeatures: true,
38+
alert_browseFeatures: true,
3739
action_generateSchedules: false,
3840
};
3941

assets/src/modules/sm/Browse/templates/browse.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<div class="container">
22
<div class="row">
33
<div class="col-md-8">
4+
<div class="alert alert-success" ng-show="state.ui.alert_browseFeatures">
5+
<button type="button" class="close" data-dismiss="alert" aria-hidden="true" ng-click="state.ui.alert_browseFeatures = false"><i class="fa fa-times"></i></button>
6+
<strong>NEW!</strong> Once you've found some courses you like, simply add them to your cart, they will be included in your possible schedules. Also, check out the <a ui-sref="/help">help</a> page for more info.
7+
</div>
48
<div class="panel panel-default">
59
<div class="panel-heading">
610
<div class="row form-horizontal">

assets/src/modules/sm/Generate/templates/generate.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<form novalidate id="scheduleForm" name="schedule" class="container">
22
<div class="row">
33
<div class="col-md-8 clearfix">
4+
<div class="alert alert-success" ng-show="state.ui.alert_generateFeatures">
5+
<button type="button" class="close" data-dismiss="alert" aria-hidden="true" ng-click="state.ui.alert_generateFeatures = false"><i class="fa fa-times"></i></button>
6+
<strong>NEW!</strong> Use a comma to separate courses to see which course fits your schedule better. Add courses from the Browse or Search page to your schedule as well so you can easily create schedule combinations from anywhere! Also, check out the <a ui-sref="/help">help</a> page for new keyboard shortcuts.
7+
</div>
48
<div class="panel panel-default form-horizontal" ng-controller="GenerateScheduleCoursesController">
59
<div class="panel-heading">
610
<div class="row form-horizontal">

assets/src/modules/sm/Index/templates/index.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
<div class="container">
22
<div class="hidden-xs">
3-
<div class="alert alert-info" ng-show="state.ui.alert_betaInfo">
4-
<button type="button" class="close" aria-hidden="true" ng-click="state.ui.alert_betaInfo = false"><i class="fa fa-times"></i></button>
5-
<strong>Thanks</strong> for testing the new beta of ScheduleMaker! <strong>Please report any bugs</strong> you find to our github page <a target="_blank" href="https://github.com/ComputerScienceHouse/schedulemaker/issues">here</a> or email <a target="_blank" href="mailto:[email protected]">[email protected]</a> (Please try to use github if you can, it makes everything easier for us). Your reports are greatly apreciated!
6-
</div>
73
<div class="alert alert-success" ng-show="state.ui.alert_newFeatures">
84
<button type="button" class="close" data-dismiss="alert" aria-hidden="true" ng-click="state.ui.alert_newFeatures = false"><i class="fa fa-times"></i></button>
9-
Welcome to the new ScheduleMaker! We've added lots of new functionality to the website, including full mobile support, a brand-new interface, a new course cart and search system, and RateMyProfessors integration. Check out the <a ui-sref="/help">help</a> page for more info. Enjoy!
5+
<strong>Welcome to the new ScheduleMaker!</strong> We've added lots of new features to the website, including a completely redesigned modern interface with full mobile support, a new course cart so you add courses to your schedule from the Browse and Search Page, the ability to come back right where you left off (automatic saved sessions), <a ui-sref="help">keyboard shortcuts</a> for power users, RateMyProfessors integration, and a whole lot more! Check out the <a ui-sref="help">help</a> page for more info. Enjoy!
106
</div>
117
</div>
128
<div id="mainMenu" class="row">

assets/src/modules/sm/Search/templates/search.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<div class="container">
22
<div class="row">
33
<div class="col-md-8">
4+
<div class="alert alert-success" ng-show="state.ui.alert_searchFeatures">
5+
<button type="button" class="close" data-dismiss="alert" aria-hidden="true" ng-click="state.ui.alert_searchFeatures = false"><i class="fa fa-times"></i></button>
6+
<strong>NEW!</strong> Search for courses by a wide range of critera which you can then easily add to your schedule! If you already know your course's number, jump over to to the <a ui-sref="generate">generation page</a> Also, check out the <a ui-sref="/help">help</a> page for new keyboard shortcuts.
7+
</div>
48
<form name="search.form" class="form-horizontal">
59
<div class="panel panel-default">
610
<div class="panel-heading">
@@ -44,7 +48,7 @@ <h2 class="panel-title control-label pull-left">Search Courses</h2>
4448
<div class="form-group">
4549
<label class="control-label col-sm-4" for="search.params.credits">Credit Hours:</label>
4650
<div class="col-sm-8">
47-
<input type="text" maxlength="2" size="3" ng-model="search.params.credits" name="credits" class="mousetrap form-control">
51+
<input type="text" maxlength="2" size="3" id="search.params.credits" ng-model="search.params.credits" name="credits" class="mousetrap form-control">
4852
</div>
4953
</div>
5054
</div>
@@ -67,23 +71,23 @@ <h2 class="panel-title control-label pull-left">Search Courses</h2>
6771
<div class="form-group">
6872
<label class="control-label col-sm-4" for="search.params.title">Title:</label>
6973
<div class="col-sm-8">
70-
<input type="text" ng-model="search.params.title" name="title" class="mousetrap form-control">
74+
<input type="text" id="search.params.title" ng-model="search.params.title" name="title" class="mousetrap form-control">
7175
</div>
7276
</div>
7377
</div>
7478
<div class="col-md-6">
7579
<div class="form-group">
7680
<label class="control-label col-sm-4" for="search.params.professor">Professor:</label>
7781
<div class="col-sm-8">
78-
<input type="text" ng-model="search.params.professor" name="professor" class=" mousetrap form-control">
82+
<input type="text" id="search.params.professor" ng-model="search.params.professor" name="professor" class=" mousetrap form-control">
7983
</div>
8084
</div>
8185
</div>
8286
</div>
8387
<div class="form-group">
8488
<label class="control-label col-sm-4" for="search.params.description">Keywords:</label>
8589
<div class="col-sm-8">
86-
<input type="text" ng-model="search.params.description" name="description" class="mousetrap form-control" placeholder="(comma delmited)">
90+
<input type="text" id="search.params.description" ng-model="search.params.description" name="description" class="mousetrap form-control" placeholder="(comma delmited)">
8791
</div>
8892
</div>
8993
<div class="form-group">

assets/src/modules/sm/Status/controllers/StatusController.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,21 @@ angular.module('sm').controller('StatusController', function($scope, $http) {
1212
alert(scope.error);
1313
}
1414
});
15+
16+
$scope.timeConvert = function(UNIX_timestamp){
17+
var a = new Date(+UNIX_timestamp*1000);
18+
var months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];
19+
var year = a.getFullYear();
20+
var month = months[a.getMonth()];
21+
var date = a.getDate();
22+
var hour = a.getHours();
23+
var min = a.getMinutes();
24+
var sec = a.getSeconds();
25+
if(sec <= 10) sec = "0" + sec;
26+
if(min <= 10) min = "0" + min;
27+
var time = month+' '+date+' '+year+' '+hour+':'+min+':'+sec ;
28+
return time;
29+
}
30+
31+
1532
});

assets/src/modules/sm/Status/templates/status.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="container">
22
<div class="panel panel-default">
33
<div class="panel-heading">
4-
<h3 class="panel-title">Last 20 Data Scrapes <div class="pull-right">Last run: {{logs.length > 0?logs[0].timeStarted:'Never'}}</div></h3>
4+
<h3 class="panel-title">Last 20 Data Scrapes <div class="pull-right">Last run: {{logs.length > 0?timeConvert(logs[0].timeStarted):'Never'}}</div></h3>
55
</div>
66
<div class="panel-body">
77
<table class="table">
@@ -20,9 +20,9 @@ <h3 class="panel-title">Last 20 Data Scrapes <div class="pull-right">Last run: {
2020
<tbody>
2121
<tr ng-show="logs.length == 0"><td colspan='7'>No Logs Exist</td></tr>
2222
<tr ng-repeat="log in logs">
23-
<td ng-bind="log.timeStarted"></td>
24-
<td ng-bind="log.timeEnded"></td>
25-
<td ng-bind="log.timeEnded - log.timeStarted"></td>
23+
<td ng-bind="timeConvert(log.timeStarted)"></td>
24+
<td ng-bind="timeConvert(log.timeEnded)"></td>
25+
<td ng-bind="log.timeEnded - log.timeStarted + 's'"></td>
2626
<td ng-bind="log.coursesAdded"></td>
2727
<td ng-bind="log.coursesUpdated"></td>
2828
<td ng-bind="log.sectionsAdded"></td>

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<meta name="twitter:card" content="photo">
5656
<meta property="og:title" content="<?= (!empty($TITLE)) ? $TITLE . " - " : "" ?>ScheduleMaker" />
5757
<meta property="og:type" content="website" />
58-
<meta property="og:description" content="CSH ScheduleMaker makes picking your RIT class schedule easy! Preview all permutations of your schedule, browse available courses, and select courses at random, all with ScheduleMaker.">
58+
<meta property="og:description" content="CSH ScheduleMaker makes picking your RIT class schedule easy! Preview all permutations of your schedule, browse available courses, and search for any course, all with ScheduleMaker.">
5959
<meta property="og:url" content="http://<?= $_SERVER['HTTP_HOST'] ?><?= $_SERVER['REQUEST_URI'] ?>" />
6060
<? if(!empty($IMGURL)) { ?>
6161
<meta property="og:image" content="<?= $IMGURL ?>" />
@@ -74,7 +74,7 @@
7474
<span class="icon-bar"></span>
7575
<span class="icon-bar"></span>
7676
</button>
77-
<a class="navbar-brand" ui-sref="index">ScheduleMaker <?=($SERVER_TYPE != 'production')?"<span class=\"label label-info\">BETA</span>":""?></a>
77+
<a class="navbar-brand" ui-sref="index">ScheduleMaker <?=($SERVER_TYPE != 'development')?"<span class=\"label label-info\">BETA</span>":"<span class=\"label label-success\">NEW!</span>"?></a>
7878
</div>
7979
<div class="collapse navbar-collapse navbar-right navbar-ex1-collapse" nav-close-on-mobile>
8080
<ul class="nav navbar-nav">

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "schedulemaker",
3-
"version": "3.0.0-beta9",
3+
"version": "3.0.0",
44
"private": true,
55
"description": "A course database lookup tool and schedule building web application for use at Rochester Institute of Technology.",
66
"main": "index.php",

0 commit comments

Comments
 (0)