Skip to content

Commit de01b87

Browse files
author
neurodynamic
committed
replaces instances if "we" with the app name
1 parent bb13e45 commit de01b87

File tree

4 files changed

+40
-25
lines changed

4 files changed

+40
-25
lines changed

elm/Main.elm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ init flags =
4343
( { requestedBugCount = 1
4444
, logo = logoPath
4545
, randomNumbers = numbers
46-
, stage = Intro
46+
-- , stage = Intro
4747

4848
-- , stage = DummyData.chooseFileStage
49-
-- , stage = DummyData.gotFileStage
49+
, stage = DummyData.gotFileStage
5050
-- , stage = DummyData.debuggingStageStepsPage numbers
5151
-- , stage = DummyData.debuggingStageIDontSeeAnyErrorsPage numbers
5252
-- , stage = DummyData.debuggingStageBugHintsTab numbers

elm/Main.js

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5458,7 +5458,6 @@ var $elm$core$Task$perform = F2(
54585458
A2($elm$core$Task$map, toMessage, task)));
54595459
});
54605460
var $elm$browser$Browser$document = _Browser_document;
5461-
var $author$project$Main$Model$Intro = {$: 'Intro'};
54625461
var $author$project$Utils$Constants$appName = 'Debug Trainer';
54635462
var $elm$json$Json$Decode$decodeValue = _Json_run;
54645463
var $dillonkearns$elm_ts_json$TsJson$Decode$decoder = function (_v0) {
@@ -6553,6 +6552,27 @@ var $author$project$Utils$Types$Error$decoding = function (_v0) {
65536552
inModule: inModule
65546553
};
65556554
};
6555+
var $author$project$Main$Model$ChooseFile = function (a) {
6556+
return {$: 'ChooseFile', a: a};
6557+
};
6558+
var $author$project$Stages$ChooseFile$Model$FirstTime = {$: 'FirstTime'};
6559+
var $author$project$Stages$ChooseFile$Model$GotFile = function (a) {
6560+
return {$: 'GotFile', a: a};
6561+
};
6562+
var $author$project$Utils$DummyData$defaultFileContent = 'function a (a, b, c) {\n return c\n}\na()\n';
6563+
var $author$project$Utils$Types$FilePath$FilePath = function (a) {
6564+
return {$: 'FilePath', a: a};
6565+
};
6566+
var $author$project$Utils$Types$FilePath$fromString = function (string) {
6567+
return $author$project$Utils$Types$FilePath$FilePath(string);
6568+
};
6569+
var $author$project$Utils$DummyData$defaultFilePath = $author$project$Utils$Types$FilePath$fromString('/Users/SomeUser/long_file_path/with_a_lot_of_levels/testFile.js');
6570+
var $author$project$Utils$DummyData$gotFileStage = $author$project$Main$Model$ChooseFile(
6571+
{
6572+
startType: $author$project$Stages$ChooseFile$Model$FirstTime,
6573+
status: $author$project$Stages$ChooseFile$Model$GotFile(
6574+
{content: $author$project$Utils$DummyData$defaultFileContent, path: $author$project$Utils$DummyData$defaultFilePath})
6575+
});
65566576
var $elm$core$Platform$Cmd$batch = _Platform_batch;
65576577
var $elm$core$Platform$Cmd$none = $elm$core$Platform$Cmd$batch(_List_Nil);
65586578
var $author$project$Main$init = function (flags) {
@@ -6578,7 +6598,7 @@ var $author$project$Main$init = function (flags) {
65786598
var startingError = _v0.startingError;
65796599
var logoPath = _v0.logoPath;
65806600
return _Utils_Tuple2(
6581-
{logo: logoPath, maybeError: startingError, randomNumbers: numbers, requestedBugCount: 1, stage: $author$project$Main$Model$Intro},
6601+
{logo: logoPath, maybeError: startingError, randomNumbers: numbers, requestedBugCount: 1, stage: $author$project$Utils$DummyData$gotFileStage},
65826602
$elm$core$Platform$Cmd$none);
65836603
};
65846604
var $author$project$Main$Msg$ChooseFileInterface = function (a) {
@@ -13888,7 +13908,8 @@ var $author$project$Stages$ChooseFile$View$render = function (_v0) {
1388813908
$mdgriffith$elm_ui$Element$Background$color($author$project$Utils$Colors$green),
1388913909
$author$project$Utils$UI$Attributes$title(
1389013910
'click here have ' + ($author$project$Utils$Constants$appName + (' introduce ' + (A2($author$project$Utils$Pluralize$aOrSome, requestedBugCount, 'bug') + (' into ' + ($author$project$Utils$Types$FilePath$nameOnly(file.path) + (' so that you can start debugging ' + $author$project$Utils$Pluralize$itOrThem(requestedBugCount)))))))),
13891-
$mdgriffith$elm_ui$Element$centerX
13911+
$mdgriffith$elm_ui$Element$centerX,
13912+
$mdgriffith$elm_ui$Element$centerY
1389213913
]),
1389313914
{
1389413915
msg: $author$project$Stages$ChooseFile$Msg$BreakFile(file),
@@ -14011,7 +14032,7 @@ var $author$project$Stages$ChooseFile$View$render = function (_v0) {
1401114032
_List_fromArray(
1401214033
[
1401314034
$mdgriffith$elm_ui$Element$height(
14014-
$mdgriffith$elm_ui$Element$px(60)),
14035+
$mdgriffith$elm_ui$Element$px(80)),
1401514036
$mdgriffith$elm_ui$Element$centerX
1401614037
]),
1401714038
startButton)
@@ -15261,7 +15282,7 @@ var $author$project$Stages$Debugging$View$IDontSeeAnyErrorsPage$render = functio
1526115282
$mdgriffith$elm_ui$Element$el,
1526215283
_List_fromArray(
1526315284
[$mdgriffith$elm_ui$Element$Font$bold]),
15264-
$mdgriffith$elm_ui$Element$text('3. It may be that the change we introduced into the file doesn\'t actually change the code enough to cause errors.'))
15285+
$mdgriffith$elm_ui$Element$text('3. It may be that the change that ' + ($author$project$Utils$Constants$appName + ' introduced into the file doesn\'t actually change the code enough to cause errors.')))
1526515286
])),
1526615287
A2(
1526715288
$mdgriffith$elm_ui$Element$paragraph,
@@ -15720,7 +15741,7 @@ var $author$project$Stages$Finished$View$render = function (_v0) {
1572015741
if (finishType.$ === 'SuccessfullySolved') {
1572115742
return _List_fromArray(
1572215743
[
15723-
$mdgriffith$elm_ui$Element$text('Nice work! To review, here\'s what we did to '),
15744+
$mdgriffith$elm_ui$Element$text('Nice work! To review, here\'s what ' + ($author$project$Utils$Constants$appName + ' did to ')),
1572415745
A2(
1572515746
$author$project$Utils$UI$Text$codeWithAttrs,
1572615747
_List_fromArray(
@@ -15733,7 +15754,7 @@ var $author$project$Stages$Finished$View$render = function (_v0) {
1573315754
} else {
1573415755
return _List_fromArray(
1573515756
[
15736-
$mdgriffith$elm_ui$Element$text('Here\'s what we did to '),
15757+
$mdgriffith$elm_ui$Element$text('Here\'s what ' + ($author$project$Utils$Constants$appName + ' did to ')),
1573715758
A2(
1573815759
$author$project$Utils$UI$Text$codeWithAttrs,
1573915760
_List_fromArray(
@@ -16096,12 +16117,6 @@ var $author$project$Stages$ChooseFile$Model$File = F2(
1609616117
function (path, content) {
1609716118
return {content: content, path: path};
1609816119
});
16099-
var $author$project$Utils$Types$FilePath$FilePath = function (a) {
16100-
return {$: 'FilePath', a: a};
16101-
};
16102-
var $author$project$Utils$Types$FilePath$fromString = function (string) {
16103-
return $author$project$Utils$Types$FilePath$FilePath(string);
16104-
};
1610516120
var $dillonkearns$elm_ts_json$TsJson$Decode$map = F2(
1610616121
function (mapFn, _v0) {
1610716122
var innerDecoder = _v0.a;
@@ -16208,19 +16223,13 @@ var $author$project$Main$Subscriptions$subscriptions = function (model) {
1620816223
},
1620916224
$author$project$Main$Interop$toElm);
1621016225
};
16211-
var $author$project$Main$Model$ChooseFile = function (a) {
16212-
return {$: 'ChooseFile', a: a};
16213-
};
1621416226
var $author$project$Main$Model$Debugging = function (a) {
1621516227
return {$: 'Debugging', a: a};
1621616228
};
1621716229
var $author$project$Main$Model$Finished = function (a) {
1621816230
return {$: 'Finished', a: a};
1621916231
};
1622016232
var $author$project$Stages$ChooseFile$Model$AfterFileReset = {$: 'AfterFileReset'};
16221-
var $author$project$Stages$ChooseFile$Model$GotFile = function (a) {
16222-
return {$: 'GotFile', a: a};
16223-
};
1622416233
var $author$project$Stages$ChooseFile$Model$afterResetInit = function (brokenFile) {
1622516234
return {
1622616235
startType: $author$project$Stages$ChooseFile$Model$AfterFileReset,
@@ -18730,7 +18739,6 @@ var $author$project$Main$Update$generateNewRandomNumbersCmd = A2(
1873018739
$elm$random$Random$list,
1873118740
20,
1873218741
A2($elm$random$Random$int, 1, 1000000)));
18733-
var $author$project$Stages$ChooseFile$Model$FirstTime = {$: 'FirstTime'};
1873418742
var $author$project$Stages$ChooseFile$Model$JustStarted = {$: 'JustStarted'};
1873518743
var $author$project$Stages$ChooseFile$Model$init = {startType: $author$project$Stages$ChooseFile$Model$FirstTime, status: $author$project$Stages$ChooseFile$Model$JustStarted};
1873618744
var $author$project$Stages$ChooseFile$Update$BreakFileInstruction = function (a) {

elm/Stages/Debugging/View/IDontSeeAnyErrorsPage.elm

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@ render { path } =
4646
)
4747
]
4848
, paragraph []
49-
[ el [ Font.bold ] (text "3. It may be that the change we introduced into the file doesn't actually change the code enough to cause errors.")
49+
[ el [ Font.bold ]
50+
(text
51+
("3. It may be that the change that "
52+
++ Constants.appName
53+
++ " introduced into the file doesn't actually change the code enough to cause errors."
54+
)
55+
)
5056
]
5157
, paragraph [ paddingXY 40 0 ] [ text "If you think this might be it, try rerunning Debug Trainer to introduce a different error." ]
5258
, Buttons.button [ width (px 400), centerX ]

elm/Stages/Finished/View.elm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import Element.Font as Font
77
import Stages.Finished.Model exposing (FinishType(..), Model)
88
import Stages.Finished.Msg exposing (Msg(..))
99
import Utils.Colors as Colors
10+
import Utils.Constants as Constants
1011
import Utils.String
1112
import Utils.Types.BrokenFile exposing (BrokenFile)
1213
import Utils.Types.ChangeData exposing (ChangeData)
@@ -31,13 +32,13 @@ render { finishType, brokenFile } =
3132
[ paragraph [ Font.center, Font.size 30 ]
3233
(case finishType of
3334
SuccessfullySolved ->
34-
[ text "Nice work! To review, here's what we did to "
35+
[ text ("Nice work! To review, here's what " ++ Constants.appName ++ " did to ")
3536
, Text.codeWithAttrs [ Border.rounded 5 ] (FilePath.nameOnly brokenFile.path)
3637
, text ":"
3738
]
3839

3940
AskedToSeeAnswer ->
40-
[ text "Here's what we did to "
41+
[ text ("Here's what " ++ Constants.appName ++ " did to ")
4142
, Text.codeWithAttrs [ Border.rounded 5 ] (FilePath.nameOnly brokenFile.path)
4243
, text ":"
4344
]

0 commit comments

Comments
 (0)