Skip to content

Commit e391027

Browse files
committed
FS-872 Reviewed text content of tour steps
1 parent 6090cb7 commit e391027

File tree

5 files changed

+18
-15
lines changed

5 files changed

+18
-15
lines changed

src/main/webapp/modules/templates/tour-splash-call-success.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
<button type="button" class="close" ng-click="status='closed'; $hide()">×</button>
66
</div>
77
<div class="modal-body">
8-
<h3 class="modal-title">You are ready!</h3>
8+
<h3 class="modal-title">Congratulations !</h3>
99
<div class="happy-guy"></div>
10-
<div class="message">Go back to Console and build more exciting Applications!</div>
10+
<div class="message">You built your first application. You can now go back to Console and play with the
11+
Visual Designer to build more exciting Applications! Don’t forget to visit our <a href="https://www.restcomm.com/docs/" target="_blank">documentation</a> too!</div>
1112
</div>
1213
<div class="modal-footer">
1314
<button type="button" class="btn btn-default" ng-click="status='ok'; $hide()">Back to console</button>

src/main/webapp/modules/templates/tour-splash-message-success.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
<button type="button" class="close" ng-click="status='closed'; $hide()">×</button>
66
</div>
77
<div class="modal-body">
8-
<h3 class="modal-title">You are ready!</h3>
8+
<h3 class="modal-title">Congratulations !</h3>
99
<div class="happy-guy"></div>
10-
<div class="message">Go back to Console and build more exciting Applications!</div>
10+
<div class="message">You built your first application. You can now go back to Console and play with the
11+
Visual Designer to build more exciting Applications! Don’t forget to visit our <a href="https://www.restcomm.com/docs/" target="_blank">documentation</a> too!</div>
1112
</div>
1213
<div class="modal-footer">
1314
<button type="button" class="btn btn-default" ng-click="status='ok'; $hide()">Back to console</button>

src/main/webapp/resources/css/olympus.css

+3
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,9 @@ form[role=login] button:enabled:hover {
399399
.tour-modal .modal-body {
400400
text-align: center;
401401
}
402+
.tour-modal .modal-body a {
403+
color: #23527c;
404+
}
402405
.tour-modal .modal-header .close {
403406
color: var(--takeatour-text-color);
404407
}

src/main/webapp/resources/js/directives.js

+5-7
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ olyDirectives.directive('tourStep', function($compile, tourManager, $interval, $
169169
link: function postLink(scope, element,attrs) {
170170
var stepInfo = tourManager.getStep(attrs.tourStep, attrs.tourName);
171171
scope.tourStep = stepInfo;
172-
console.log('creating tour step', attrs.tourStep );
173-
console.log('visibility: ', attrs.tourStep, elementIsVisible(element), element.length);
172+
//console.log('creating tour step', attrs.tourStep );
173+
//console.log('visibility: ', attrs.tourStep, elementIsVisible(element), element.length);
174174

175175
// start monitoring visibility of step target.Called when tourStep.active turns true
176176
stepInfo.visible = undefined;
@@ -181,7 +181,7 @@ olyDirectives.directive('tourStep', function($compile, tourManager, $interval, $
181181
var myPopover;
182182
var watchesToClear = [];
183183
function activate() {
184-
console.log('will start monitoring visibility for ', attrs.tourStep)
184+
//console.log('will start monitoring visibility for ', attrs.tourStep)
185185
clearIntervalHandle = $interval(function () {
186186
if (elementIsVisible(element)) {
187187
if (!stepInfo.visible) {
@@ -191,14 +191,12 @@ olyDirectives.directive('tourStep', function($compile, tourManager, $interval, $
191191
}
192192
myPopover.show();
193193
stepInfo.visible = true;
194-
console.log('set visibility to ', stepInfo.visible);
195194
}
196195
} else {
197196
if (myPopover && stepInfo.visible) {
198197
myPopover.hide();
199198
myPopover.destroy();
200199
stepInfo.visible = false;
201-
console.log('set visibility to ', stepInfo.visible);
202200
}
203201
}
204202
},500);
@@ -256,7 +254,7 @@ olyDirectives.directive('touring', function($compile, tourManager) {
256254
scope.tourManager = tourManager;
257255

258256
scope.$watch("tourManager.countActiveSteps()", function (newVal, oldVal) {
259-
console.warn('active step count: ', newVal)
257+
//console.warn('active step count: ', newVal)
260258
if (newVal === 0) {
261259
tourManager.onTourAborted()
262260
}
@@ -294,7 +292,7 @@ olyDirectives.directive('backdrop', function($interval, backdropService) {
294292
if (!rectPadding.bottom) rectPadding.bottom = 0;
295293

296294
scope.$watch(attrs.backdrop, function (newVal, oldVal) {
297-
console.log((scope.tourStep.name ? (scope.tourStep.name+" "): "") + 'backdrop: ', newVal)
295+
//console.log((scope.tourStep.name ? (scope.tourStep.name+" "): "") + 'backdrop: ', newVal)
298296
if (newVal && !scope.backdropActive) {
299297
// we need to activate backdrop
300298
activateBackdrop();

src/main/webapp/resources/js/takeatour.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ angular.module('mcWebRTC').run(function (tourManager, $rootScope, $location) {
66
tourManager.addTour("main");
77
tourManager.registerStep("step-enter-creds", {
88
name:'step-enter-creds',
9-
body:"<p>This is the WebRTC Demo sign page.</p> <p>For Username type the <em>user</em> part of your account email. For example, for <em><strong>alice</strong>@company.com</em> just type <em><strong>alice</strong></em>.</p> <p>The account password will work as it is.</p>",
9+
body:"<p>This is the WebRTC Demo sign page.</p> <p>For <strong>Username</strong>, please enter the <em>user</em> part of your account email. For example, for <em><strong>alice</strong>@company.com</em> just type <em><strong>alice</strong></em>.</p> <p>For <strong>password</strong>, you can reuse your account password.</p>",
1010
order: 1,
1111
placement: 'right',
1212
customClasses: "popover-medium"
@@ -21,22 +21,22 @@ angular.module('mcWebRTC').run(function (tourManager, $rootScope, $location) {
2121

2222
tourManager.registerStep('step-enter-contact-address', {
2323
name: 'step-enter-contact-address',
24-
body: "<p>Paste your number here and optionally give it a name. Then click 'Add contact'.</p> <p><strong>Hint</strong>: If you don't remember it, your number is {{tourManager.context.phoneNumber}}.</p>",
24+
body: "<p>Paste the number you previously mapped your application to and give it a name. Then click <strong>Add contact</strong>.</p> <p><strong>Hint</strong>: If you don't remember it, your number is {{tourManager.context.phoneNumber}}.</p>",
2525
order: 4,
2626
placement: 'right'
2727
}, "main");
2828

2929
tourManager.registerStep('step-make-the-call', {
3030
name: 'step-make-the-call',
31-
body: '<p>Time to call your number and test your application.</p> <p>Click on the phone button bellow to initiate the call.</p>',
31+
body: '<p>You can now call your number and test your application by clicking on the phone button below to initiate the call.</p>',
3232
order: 5,
3333
placement: 'top-right',
3434
//done: [{byExpression: "inCall && inCall.intStatus === 'ESTABLISHED'", doNext: 'tourManager.stopTour(); showTourSplash();', delay: 2000}]
3535
}, "main");
3636

3737
tourManager.registerStep('step-send-the-message', {
3838
name: 'step-send-the-message',
39-
body: '<p>Time to send a message to your application.</p> <p>Type a messsage and click on the button below to send it.</p>',
39+
body: '<p>You can now send an SMS to your number and test your application. Type the message and click on the message button below.</p>',
4040
order: 5,
4141
placement: 'top-left',
4242
}, "main");

0 commit comments

Comments
 (0)