Skip to content

Commit

Permalink
Merge pull request #83 from hpi-swa-teaching/issue/33-tutorial
Browse files Browse the repository at this point in the history
Open Tutorial on first launch
  • Loading branch information
Toalaah authored Jun 13, 2021
2 parents e0f5ace + 7210419 commit 8b5e9c8
Show file tree
Hide file tree
Showing 13 changed files with 55 additions and 9 deletions.
1 change: 1 addition & 0 deletions packages/AutoTDD-Core.package/ATDDHelper.class/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The ATDDHelper assists new users.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
HasSeenTutorialPrompt: aBoolean

HasSeenTutorialPrompt := aBoolean
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
HasSeenTutorialPrompt

^ HasSeenTutorialPrompt ifNil: [ HasSeenTutorialPrompt := false ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
action
openHelpPrompt

| answer |

answer := UserDialogBoxMorph confirm: 'Would you like to view a tutorial on AutoTDD?' title: 'Input requested'.
self HasSeenTutorialPrompt: true.
answer ifTrue: [ HelpBrowser openOn: ATDDHelp ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
action
openTutorialIfNecessary

self HasSeenTutorialPrompt ifFalse: [ self openHelpPrompt ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"class" : {
"HasSeenTutorialPrompt" : "ClassTest 6/11/2021 15:56",
"HasSeenTutorialPrompt:" : "ClassTest 6/11/2021 15:56",
"openHelpPrompt" : "ClassTest 6/11/2021 15:59",
"openTutorialIfNecessary" : "ClassTest 6/11/2021 16:00" },
"instance" : {
} }
14 changes: 14 additions & 0 deletions packages/AutoTDD-Core.package/ATDDHelper.class/properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"category" : "AutoTDD-Core",
"classinstvars" : [
],
"classvars" : [
"HasSeenTutorialPrompt" ],
"commentStamp" : "ClassTest 6/11/2021 16:08",
"instvars" : [
],
"name" : "ATDDHelper",
"pools" : [
],
"super" : "Object",
"type" : "normal" }
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
instance creation
open

^ ToolBuilder open: self new
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class initialization
registerInWorldMenu

self environment at: #TheWorldMenu
ifPresent: [ :class |
class
registerOpenCommand: (Array
with: self worldMenuLabel
with: (Array with: self with: #open)) ]
with: (Array with: self with: #open)) ]
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ buildWith: aBuilder
yourself);
yourself.

ATDDHelper openTutorialIfNecessary.

^ aBuilder build: window
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"gitHubActionUIDictionary" : "sw 5/28/2021 11:54",
"globalFunctionalityDictionary" : "OM 6/6/2021 14:35",
"headerHeight" : "BF 5/30/2021 14:52",
"initialize" : "vxr 5/15/2019 21:54",
"initialize" : "SK 6/10/2021 11:51",
"label" : "ls 7/25/2019 07:39",
"open" : "vxr 5/15/2019 20:02",
"registerInWorldMenu" : "swi 7/25/2019 15:10",
"open" : "ClassTest 6/11/2021 16:09",
"registerInWorldMenu" : "SK 6/10/2021 11:43",
"testingEntitiesAmount" : "ClassTest 5/29/2021 00:05",
"testingEntityEditorDictionary" : "ClassTest 5/28/2021 23:58",
"testingEntityHeaderDictionary" : "ClassTest 5/30/2021 15:55",
Expand All @@ -44,7 +44,7 @@
"buildTestingEntityHeaderOfType:with:" : "ClassTest 5/30/2021 16:23",
"buildTestingEntityListOfType:with:" : "ClassTest 5/30/2021 16:43",
"buildTestingEntityUIOfType:with:" : "ClassTest 5/30/2021 16:47",
"buildWith:" : "ClassTest 5/30/2021 16:50",
"buildWith:" : "ClassTest 6/11/2021 15:59",
"buttonHeight" : "sw 5/24/2021 16:34",
"buttonsFrame" : "BF 5/30/2021 14:53",
"changed:" : "sw 5/24/2021 14:34",
Expand All @@ -70,7 +70,7 @@
"openEditorForTestingEntity:" : "sw 5/25/2021 22:26",
"openInfoForSelectedTestingEntitiesOfType:" : "sw 5/25/2021 23:29",
"openInfoForTestingEntity:" : "sw 5/25/2021 22:46",
"openOverview" : "ng 6/4/2021 18:12",
"openOverview" : "ClassTest 6/11/2021 16:09",
"openResultsForSelectedTestingEntitiesOfType:" : "sw 5/25/2021 23:29",
"openResultsForTestingEntity:" : "sw 5/25/2021 22:51",
"pauseAll" : "ClassTest 5/29/2021 00:13",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ setUp
super setUp.
self class resetTestHasRun.
browser := ATDDBrowser new.
ATDDHelper HasSeenTutorialPrompt: true.
ToolBuilder open: browser.
preTestWatchers := self fetchCopyOfWatchers.
preTestTravisStatuses := self fetchCopyOfTravisStatuses.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"addEmptyWatchers:" : "ng 6/3/2021 12:41",
"fetchCopyOfTravisStatuses" : "swi 6/19/2019 17:13",
"fetchCopyOfWatchers" : "mb 5/29/2019 18:21",
"setUp" : "BF 5/7/2021 18:46",
"setUp" : "ClassTest 6/11/2021 16:01",
"tearDown" : "ng 6/4/2021 19:03",
"testAddButtonAddsNewWatcherToList" : "ng 6/4/2021 17:15",
"testChangingWatchedCategoriesWork" : "ng 6/3/2021 12:11",
Expand Down

0 comments on commit 8b5e9c8

Please sign in to comment.