This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mode | |
appOffline* | |
checkingAPI | |
apiOnline -> online | |
apiOffline -> checkingInternet | |
checkingInternet | |
internetOnline -> online | |
internetOffline -> offline | |
online | |
offline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const checkGlobalAPI = (context, event) => { | |
return new Promise((resolve, reject) => { | |
let condition = Math.round(Math.random() * 10) > 8; | |
console.log(condition); | |
if (condition) { | |
resolve(42) | |
} else { | |
reject('foo') | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Search Bar* | |
Idle* | |
focused -> Active | |
Active | |
canceled -> Idle | |
typed -> Text Entry | |
Empty* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class InitialMigration < ActiveRecord::Migration[5.0] | |
def change | |
enable_extension "pgcrypto" unless extension_enabled?("pgcrypto") | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Onboarding* | |
Idle* | |
signup -> Signup | |
Customer | |
Validate Email | |
click? -> Change Password | |
no click? -> NotVerified | |
Auth Service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Login Flow | |
Unauthenticated* | |
login -> Error? | |
Authenticated | |
verified? -> Verified | |
not verified? -> Unverified | |
Verified | |
projects? -> Ready | |
no projects? Setup | |
Unverified |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Darcie* | |
Question* | |
try submitting -> Validate | |
No Errors* | |
Bad Input Error | |
Validate | |
valid? -> History | |
invalid? -> Bad Input Error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Client Registration | |
Unauthenticated | |
ready -> Unauthenticated | |
submit -> Authenticated | |
Authenticated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nag* | |
Main Screen | |
Default* | |
task label pressed -> Text Entry | |
add 1 h button pressed -> Ticking | |
add 1 m button pressed -> Ticking | |
subtract 1 h button pressed -> Ticking | |
subtract 1 m button pressed -> Ticking | |
info button pressed -> Display | |
add task button pressed -> New Main Screen |
NewerOlder