Skip to content

Commit dc85336

Browse files
committed
updated tutorial and demo-mode (including new list features)
1 parent e148ebe commit dc85336

File tree

6 files changed

+84
-30
lines changed

6 files changed

+84
-30
lines changed

www/img/tutorial/controls.png

-110 Bytes
Loading
9.52 KB
Loading

www/scripts/sepiaFW.embedded.services.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ function sepiaFW_build_embedded_services(){
3636
//Lists
3737
if (nluResult.command == "lists"){
3838
serviceResult = Services.lists(nluInput, nluResult);
39+
40+
//Other
41+
}else{
42+
var answerText = SepiaFW.local.g('notPossibleInDemoMode');
43+
serviceResult = Services.buildServiceResult(
44+
nluInput.user, nluInput.language,
45+
nluResult.command, answerText, '', '', ''
46+
);
3947
}
4048
}
4149
return serviceResult;

www/scripts/sepiaFW.local.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ function sepiaFW_build_strings(){
8989
StringsDE.data_privacy = 'Datenschutz';
9090
StringsDE.tutorial = 'Tutorial';
9191
//Offline demo texts
92-
StringsDE.demoMode = 'Du befindest dich im Demo-Modus! In diesem Modus kannst du die Einstellungen ändern (z.B. host-name), das Tutorial anschauen und mit dem Interface spielen. Um auf deinen Assistenten zuzugreifen melde dich bitte zuerst an.';
93-
StringsDE.notPossibleInDemoMode = 'Sorry aber das geht nicht im Demo-Modus.';
92+
StringsDE.demoMode = 'Du befindest dich im Demo-Modus! In diesem Modus kannst du die Einstellungen ändern (z.B. hostname), das Tutorial anschauen und mit manchen(!) Teilen des Interfaces spielen. Um auf deinen Assistenten zuzugreifen melde dich bitte zuerst an.';
93+
StringsDE.notPossibleInDemoMode = 'Sorry aber das geht noch nicht im Demo-Modus.';
9494
StringsDE.demoModeBtn = 'Demo-Modus';
9595
StringsDE.myNewsDemoBtn = 'Öffne meine persönlichen News';
9696
StringsDE.myRadioDemoBtn = 'Starte mein Lieblingsradio';
@@ -179,8 +179,8 @@ function sepiaFW_build_strings(){
179179
StringsEN.data_privacy = 'Data privacy';
180180
StringsEN.tutorial = 'Tutorial';
181181
//Offline demo texts
182-
StringsEN.demoMode = 'You are in demo-mode! This mode only allows you to change settings (e.g. host-name), check out the tutorial and play a bit with the UI. To get access to your assistant please log-in first.';
183-
StringsEN.notPossibleInDemoMode = 'Sorry this is not possible in demo-mode.';
182+
StringsEN.demoMode = 'You are in demo-mode! This mode only allows you to change settings (e.g. hostname), check out the tutorial and play with some(!) parts of the UI. To get access to your assistant please log-in first.';
183+
StringsEN.notPossibleInDemoMode = 'Sorry this is not yet possible in demo-mode.';
184184
StringsEN.demoModeBtn = 'Demo-Mode';
185185
StringsEN.myNewsDemoBtn = 'Open my personal news';
186186
StringsEN.myRadioDemoBtn = 'Start my favorite radio station';

www/scripts/sepiaFW.offline.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,23 +68,23 @@ function sepiaFW_build_offline(){
6868

6969
//Build a list with custom or dummy data
7070
Offline.buildListCardInfoDummy = function(id, title, section, indexType, group, listData){
71-
if (!title) title = "My List";
71+
if (!title) title = "Demo To-Do List";
7272
if (!section) section = "productivity";
7373
if (!indexType) indexType = "todo";
7474
if (!group) group = "todo";
7575
var type = "userDataList";
7676
var dateAdded = new Date().getTime();
7777
var id = id || ("ABCD" + dateAdded); //usually this is defined by database id generator
7878
var data = listData || [{
79-
"name": "Checked entry 1", "checked": true, "dateAdded": dateAdded
79+
"name": "Make screenshots", "checked": true, "dateAdded": dateAdded
8080
}, {
81-
"name": "Open entry 1", "checked": false, "dateAdded": dateAdded
81+
"name": "Write tutorial text", "checked": true, "dateAdded": dateAdded
8282
}, {
83-
"name": "Open entry 2", "checked": false, "dateAdded": dateAdded
83+
"name": "Update data", "checked": false, "state": "inProgress", "dateAdded": dateAdded
8484
}, {
85-
"name": "Checked entry 2", "checked": false, "dateAdded": dateAdded
85+
"name": "Make offline demo-services", "checked": false, "state": "inProgress", "dateAdded": dateAdded
8686
}, {
87-
"name": "Open entry 3", "checked": false, "dateAdded": dateAdded
87+
"name": "Connect shortcut-menu buttons", "checked": false, "dateAdded": dateAdded
8888
}];
8989
var user = "userid";
9090

www/tutorial.html

Lines changed: 66 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,66 +2,112 @@
22
<div class='sepiaFW-carousel-pane-container'>
33
<!-- Page 1 -->
44
<div id="sepiaFW-frame-page-1" class='sepiaFW-frames-page sepiaFW-carousel-pane'>
5-
<h3>Tutorial - Page 1 of 3</h3>
5+
<h3>Tutorial - Page 1 of 5</h3>
66
<p>
7-
Welcome to the S.E.P.I.A. app for browser, iOS and Android! :-)
8-
In this little tutorial you will learn the basics to get started with your personal assistant.
7+
Welcome to the <a href="https://sepia-framework.github.io/" target="_blank">S.E.P.I.A.</a> app for browser, iOS and Android! :-)
8+
In this little tutorial you will learn the <b>basics to get started</b> with your personal assistant.
99
</p>
1010
Here is an overview of the controls:
1111
<div style="width:100%; text-align:center;">
1212
<img src="img/tutorial/controls.png" alt="SEPIA basic controls" style="max-width:75%;">
1313
</div>
14-
Some buttons have a long-press action assigned as well like the shortcuts (settings) and the mic (audio-input reset).
14+
Some buttons have a press-and-hold (long-press) action assigned as well like the shortcuts (settings) and the mic (audio-input reset).
1515
<p>
16-
If you want to ask S.E.P.I.A. a question just press the mic or type in the chat field, send and wait for your answer.
17-
Sometimes when you encounter problems with the mic and it gets stuck in "gray"-mode you can release it with a long-press.
16+
If you want to ask S.E.P.I.A. a question <b>just tap the mic or type in the chat field</b>, send the message and wait for your answer.
17+
On rare occasions your mic might get stuck in "gray"-mode. If that happens you can release it with a long-press on the mic itself.
1818
<p style="display: block; text-align: right;">
1919
<span data-proceed-btn>Proceed to <b>next page</b></span>
2020
</p>
2121
</div>
2222
<!-- Page 2 -->
2323
<div id="sepiaFW-frame-page-2" class='sepiaFW-frames-page sepiaFW-carousel-pane'>
24-
<h3>Tutorial - Page 2 of 3</h3>
24+
<h3>Tutorial - Page 2 of 5</h3>
2525
<p>
26-
When you start S.E.P.I.A. you usually end up in your start-screen (sometimes called 'my-view').
27-
This view will show you personal info like upcoming reminders or recommendations based on the time of day.
28-
You can fill this screen with results you get from from chatting with S.E.P.I.A. (more about this later).
26+
When you start S.E.P.I.A. you usually end up in your personal start-screen a.k.a <b>'my view'</b>.
27+
This view will show you <b>personal info</b> like upcoming reminders, custom buttons or recommendations based on the time of day.
28+
You can fill this screen with results you get by chatting with S.E.P.I.A. (more about this later).
2929
</p>
3030
<div style="width:100%; text-align:center;">
3131
<img src="img/tutorial/swipe-views.png" alt="SEPIA swipe control" style="max-width:40%;">
3232
</div>
3333
<p>
34-
There are 2 more main views to interact with S.E.P.I.A., the chat view and the results view.
35-
You can reach them with the control on the top or by swiping from the edges of the screen (similar to iOS safari navigation).
34+
There are 2 more views to interact with S.E.P.I.A., the <b>chat view</b> and the <b>results view</b>.
35+
You can reach them using the controls on the top or by <b>swiping from the edges</b> of the screen (similar to iOS navigation).
3636
</p>
3737
<p style="display: block; text-align: right;">
3838
<span data-proceed-btn>Proceed to <b>next page</b></span>
3939
</p>
4040
</div>
4141
<!-- Page 3 -->
4242
<div id="sepiaFW-frame-page-3" class='sepiaFW-frames-page sepiaFW-carousel-pane'>
43-
<h3>Tutorial - Page 3 of 3</h3>
43+
<h3>Tutorial - Page 3 of 5</h3>
4444
<p>
4545
Here you can see a typical chat with S.E.P.I.A.:
4646
</p><br>
4747
<div style="width:100%; text-align:center;">
48-
<img src="img/tutorial/chat-sample.png" alt="SEPIA swipe control" style="max-width:75%; border:1px solid black; padding:8px;">
48+
<img src="img/tutorial/chat-sample.png" alt="SEPIA cards sample" style="max-width:75%; border:1px solid black; padding:8px;">
4949
</div><br>
5050
<p>
51-
Some answers will be given as 'cards' directly inside the chat. If the results are bigger like a news overview they will instead be shown inside the extra results view.
52-
As noted in the screen-shot some of the cards (just try them ^^) can be added to your personal start-screen by pressing the icon.
51+
Some answers will be given as <b>'cards'</b> directly inside the chat view. If there are multiple results like different news outlets for example they will instead be shown inside the results view.
52+
As noted in the screen-shot some of the <b>cards can be added to your personal start-screen (my view)</b> by pressing the icon (just try it out ^^).<br>
53+
News-cards can be added as well via a long-press on the preview text of the article.
54+
</p>
55+
<p style="display: block; text-align: right;">
56+
<span data-proceed-btn>Proceed to <b>next page</b></span>
57+
</p>
58+
</div>
59+
<!-- Page 4 -->
60+
<div id="sepiaFW-frame-page-3" class='sepiaFW-frames-page sepiaFW-carousel-pane'>
61+
<h3>Tutorial - Page 4 of 5</h3>
62+
<p>
63+
When you ask S.E.P.I.A. to add stuff to your to-do or shopping lists you will see a card like this:
64+
</p><br>
65+
<div style="width:100%; text-align:center;">
66+
<img src="img/tutorial/list-functions.png" alt="SEPIA list functions" style="max-width:75%; border:1px solid black; padding:8px;">
67+
</div><br>
68+
<p>
69+
Depending on the list type each item can have <b>2-3 different states</b>. For to-do-lists tap the check-button to switch between open (no color), in-progress (yellow) and done (green).
70+
</p>
71+
<p>
72+
Items in your list can be moved by activating the drag & drop mode. To do this <b>press-and-hold the check-button</b>. The list item will quickly flash and become grayish.
73+
Release the check-button and <b>then use it again to drag the item</b> around, drop it at its new position or even move it to a different list.
74+
After 3s of inactivity the drag & drop mode will automatically switch off.
75+
</p>
76+
<p>
77+
Modifications to the list are <b>not saved automatically</b> and you can undo them simply by reloading the list. If changes are detected the <b>save-button</b> will appear in the upper-left corner.
78+
Press it to make all changes permanent.
79+
</p>
80+
<p style="display: block; text-align: right;">
81+
<span data-proceed-btn>Proceed to <b>next page</b></span>
82+
</p>
83+
</div>
84+
<!-- Page 5 -->
85+
<div id="sepiaFW-frame-page-3" class='sepiaFW-frames-page sepiaFW-carousel-pane'>
86+
<h3>Tutorial - Page 5 of 5</h3>
87+
<p>
88+
There are many more things to discover in S.E.P.I.A. like chatting with users (group or private), playing radio music, teaching your own commands, using gamepads to trigger actions or changing skins (the look) so be sure to check out all the menus and play around with all the buttons :-).
89+
A good place to start is the <b>shortcuts menu</b> on the bottom-left (please note that this menu might not fully work in demo-mode yet).
90+
</p>
91+
<p><u>Always-On mode:</u></p>
92+
<p>
93+
The always-on mode can be <b>activated via the shortcuts menu</b> or by a double-tap on the back-button (Android only).
94+
It is a special mode that shows only a very minimalistic interface and <b>prevents the screen from turning off</b> on mobile devices so that S.E.P.I.A. can keep running like a smart-speaker.
5395
</p>
5496
<p><u>Final steps:</u></p>
55-
<p>If you are using the browser-version <b>please allow microphone access, pop-ups and notifications</b> to ensure everything is working as intended.
97+
<p><b>Please allow S.E.P.I.A. to access the microphone, show pop-ups (browser-version) and send notifications</b> so that every service can work as intended.
98+
You can test it using the following buttons:
5699
</p><p style="display: flex; justify-content: center;">
57100
<button id="tutorial-test-mic">Test Mic</button>
58101
<button id="tutorial-test-note">Test Note</button>
59102
<button id="tutorial-test-popup">Test Pop-Up</button>
60103
</p>
61104
<p>
62-
Before you log-in make sure you are using the <b>correct SEPIA server</b>. You can set the server during log-in (drop-down menu) or go to:<br>
105+
Before you log-in make sure you are using the <b>correct S.E.P.I.A. server</b>. You can set it in the extended log-in menu itself (press the arrow at the bottom of the box) or go to:<br>
63106
</p><p style="display: flex; justify-content: center;">
64-
<span style="border:1px solid; padding:4px;">Menu &#8594; Page 2 &#8594; Hostname</span>
107+
<span style="border:1px solid; padding:4px;">Settings menu &#8594; Page 2 &#8594; Hostname</span>
108+
</p>
109+
<p>
110+
If you want to learn how to install <b>your own, private, local S.E.P.I.A. server</b> please visit the <a href="https://github.com/SEPIA-Framework/sepia-installation-and-setup" target="_blank">online help</a>.
65111
</p>
66112
</div>
67113
</div>
@@ -76,7 +122,7 @@ <h3>Tutorial - Page 3 of 3</h3>
76122
<button id="sepiaFW-frames-show-next-page" class='entry'>
77123
<span data-localize="next">next</span><i class="material-icons md-btn2">keyboard_arrow_right</i>
78124
</button>
79-
<div id="sepiaFW-frames-nav-bar-page-indicator"><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div></div>
125+
<div id="sepiaFW-frames-nav-bar-page-indicator"><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div></div>
80126
</div>
81127
<script>
82128
$('[data-localize]').each(function(){

0 commit comments

Comments
 (0)