Skip to content

Instantly share code, notes, and snippets.

@anka-213
Forked from rgraves-aspiration/SketchSystems.spec
Last active April 14, 2020 16:00

Revisions

  1. anka-213 revised this gist Apr 14, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions SketchSystems_prototype.js
    Original file line number Diff line number Diff line change
    @@ -4,14 +4,14 @@ function render(model){
    function addImage() {
    if (current.image_url) {
    return $("img",
    {src: model.active_states[0].image_url, style: {height: "70%", margin: "0 auto"}})
    {src: current.image_url, style: {height: "70%", margin: "0 auto"}})
    } else {
    return "No image available."
    }
    }
    return (
    <div style={{textAlign: "center"}}>
    <h1>{model.active_states[0].name}</h1>
    <h1>{current.name}</h1>
    {addImage()}
    </div>
    );
  2. anka-213 revised this gist Apr 14, 2020. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion SketchSystems_prototype.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,8 @@

    function render(model){
    const current = model.active_states[0]
    function addImage() {
    if (model.active_states[0].image_url) {
    if (current.image_url) {
    return $("img",
    {src: model.active_states[0].image_url, style: {height: "70%", margin: "0 auto"}})
    } else {
  3. anka-213 revised this gist Apr 14, 2020. No changes.
  4. @rgraves-aspiration rgraves-aspiration revised this gist Jul 20, 2018. No changes.
  5. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -134,7 +134,9 @@ Tab Bar
    Impact
    info button -> What is AIM?
    Current Month
    tap History tab -> History
    History
    tap Current Month tab -> Current Month
    What is AIM?
    Got it -> Impact
    Learn more on web -> AIM Webview
  6. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions SketchSystems_prototype.js
    Original file line number Diff line number Diff line change
    @@ -4,10 +4,10 @@ function render(model){
    if (model.active_states[0].image_url) {
    return $("img",
    {src: model.active_states[0].image_url, style: {height: "70%", margin: "0 auto"}})
    } else {
    return "No image available."
    } else {
    return "No image available."
    }
    }
    }
    return (
    <div style={{textAlign: "center"}}>
    <h1>{model.active_states[0].name}</h1>
  7. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions SketchSystems_prototype.js
    Original file line number Diff line number Diff line change
    @@ -2,16 +2,16 @@
    function render(model){
    function addImage() {
    if (model.active_states[0].image_url) {
    return $("img",
    {src: model.active_states[0].image_url, style: {height: "70%", margin: "0 auto"}})
    return $("img",
    {src: model.active_states[0].image_url, style: {height: "70%", margin: "0 auto"}})
    } else {
    return "No image available."
    }
    }
    return (
    <div style={{textAlign: "center"}}>
    <h1>{model.active_states[0].name}</h1>
    {addImage()}
    </div>
    <h1>{model.active_states[0].name}</h1>
    {addImage()}
    </div>
    );
    }
  8. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 6 additions and 4 deletions.
    10 changes: 6 additions & 4 deletions SketchSystems_prototype.js
    Original file line number Diff line number Diff line change
    @@ -8,8 +8,10 @@ function render(model){
    return "No image available."
    }
    }
    return <div style={{textAlign: "center"}}>
    <h1>{model.active_states[0].name}</h1>
    {addImage()}
    </div>;
    return (
    <div style={{textAlign: "center"}}>
    <h1>{model.active_states[0].name}</h1>
    {addImage()}
    </div>
    );
    }
  9. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion SketchSystems_prototype.js
    Original file line number Diff line number Diff line change
    @@ -10,6 +10,6 @@ function render(model){
    }
    return <div style={{textAlign: "center"}}>
    <h1>{model.active_states[0].name}</h1>
    {addImage()}
    {addImage()}
    </div>;
    }
  10. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. No changes.
  11. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Aspiration App Logic*
    Aspiration App Logic
    open app from home screen -> Has User Previously Logged In?

    Logged Out Flow
  12. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -106,18 +106,20 @@ Tab Bar
    Deposit Flow
    cancel -> Deposit List
    Transfers
    Scheduled List
    Scheduled Transfer List
    back -> Manage View
    schedule a transfer -> Transfer Flow
    History -> History List
    History List
    back -> Manage View
    schedule a transfer -> Transfer Flow
    Scheduled -> Scheduled List
    Scheduled -> Scheduled Transfer List

    Transfer Flow
    cancel -> Scheduled Transfer List

    Payments
    Scheduled List
    Scheduled Payment List
    Sent -> Sent List
    Sent List
    Scheduled -> Scheduled Payment List
  13. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -115,11 +115,12 @@ Tab Bar
    schedule a transfer -> Transfer Flow
    Scheduled -> Scheduled List
    Transfer Flow
    cancel -> Scheduled List
    cancel -> Scheduled Transfer List
    Payments
    Scheduled List

    Scheduled List
    Sent -> Sent List
    Sent List
    Scheduled -> Scheduled Payment List
    send a payment -> Payment Flow
    Buy Sell
    Recurring Investments
  14. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -117,6 +117,9 @@ Tab Bar
    Transfer Flow
    cancel -> Scheduled List
    Payments
    Scheduled List

    Sent List
    send a payment -> Payment Flow
    Buy Sell
    Recurring Investments
  15. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -104,6 +104,7 @@ Tab Bar
    deposit a check -> Deposit Flow
    deposit record -> Receipt Card
    Deposit Flow
    cancel -> Deposit List
    Transfers
    Scheduled List
    back -> Manage View
    @@ -114,6 +115,7 @@ Tab Bar
    schedule a transfer -> Transfer Flow
    Scheduled -> Scheduled List
    Transfer Flow
    cancel -> Scheduled List
    Payments
    send a payment -> Payment Flow
    Buy Sell
  16. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -100,15 +100,17 @@ Tab Bar
    recurring investments -> Recurring Investments
    Deposits
    Deposit List
    back -> Manage View
    deposit a check -> Deposit Flow
    deposit record -> Receipt Card
    Deposit Flow
    Transfers
    Scheduled List
    back -> Manage View
    schedule a transfer -> Transfer Flow
    History -> History List
    History List
    b -> Manage View
    back -> Manage View
    schedule a transfer -> Transfer Flow
    Scheduled -> Scheduled List
    Transfer Flow
  17. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -108,7 +108,7 @@ Tab Bar
    schedule a transfer -> Transfer Flow
    History -> History List
    History List
    back
    b -> Manage View
    schedule a transfer -> Transfer Flow
    Scheduled -> Scheduled List
    Transfer Flow
  18. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -108,6 +108,8 @@ Tab Bar
    schedule a transfer -> Transfer Flow
    History -> History List
    History List
    back
    schedule a transfer -> Transfer Flow
    Scheduled -> Scheduled List
    Transfer Flow
    Payments
  19. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -99,13 +99,13 @@ Tab Bar
    buy sell -> Buy Sell
    recurring investments -> Recurring Investments
    Deposits
    deposit a check -> Deposit Flow
    deposit record -> Receipt Card
    Deposit List
    deposit a check -> Deposit Flow
    deposit record -> Receipt Card
    Deposit Flow
    Transfers
    schedule a transfer -> Transfer Flow
    Scheduled List
    schedule a transfer -> Transfer Flow
    History -> History List
    History List
    Scheduled -> Scheduled List
  20. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -106,8 +106,9 @@ Tab Bar
    Transfers
    schedule a transfer -> Transfer Flow
    Scheduled List

    History -> History List
    History List
    Scheduled -> Scheduled List
    Transfer Flow
    Payments
    send a payment -> Payment Flow
  21. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -105,12 +105,14 @@ Tab Bar
    Deposit Flow
    Transfers
    schedule a transfer -> Transfer Flow
    Scheduled List

    History List
    Transfer Flow
    Payments
    send a payment -> Payment Flow
    Buy Sell
    Recurring Investments
    Transfer Flow
    Payment Flow
    Buy Sell Flow
    Recurring Investment Flow
  22. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -101,14 +101,15 @@ Tab Bar
    Deposits
    deposit a check -> Deposit Flow
    deposit record -> Receipt Card

    Deposit List
    Deposit Flow
    Transfers
    schedule a transfer -> Transfer Flow

    Payments
    send a payment -> Payment Flow
    Buy Sell
    Recurring Investments
    Deposit Flow
    Transfer Flow
    Payment Flow
    Buy Sell Flow
  23. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 51 additions and 50 deletions.
    101 changes: 51 additions & 50 deletions SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -1,56 +1,57 @@
    Aspiration App Logic*
    open app from home screen -> Has User Previously Logged In?

    Has User Previously Logged In?
    yes -> Is Device Authentication Set Up?
    no -> App Welcome Screen

    App Welcome Screen
    tap login -> Is Device Authentication Set Up?
    tap sign up -> Signup Flow

    Is Device Authentication Set Up?
    yes - Touch ID -> Check Authentication?
    yes - Face ID -> Check Authentication?
    no -> Login Form

    Check Authentication?
    pass -> Load Account Info
    fail -> Login Form

    Login Form
    email field active
    next -> password field active

    password field active
    done -> login successful?

    login -> login successful?

    dismiss -> App Welcome Screen

    login successful?
    true -> MFA Options
    false -> Login Error

    Login Error
    dismiss -> Login Form

    MFA Options
    request code via sms -> Enter MFA Code
    request code via email -> Enter MFA Code

    Enter MFA Code
    submit -> Correct MFA?

    Correct MFA?
    true -> Summary View
    false -> Enter MFA Code

    Load Account Info
    success -> Summary View
    fail -> Login Error

    Logged Out Flow
    Has User Previously Logged In?
    yes -> Is Device Authentication Set Up?
    no -> App Welcome Screen

    App Welcome Screen
    tap login -> Is Device Authentication Set Up?
    tap sign up -> Signup Flow

    Is Device Authentication Set Up?
    yes - Touch ID -> Check Authentication?
    yes - Face ID -> Check Authentication?
    no -> Login Form

    Check Authentication?
    pass -> Load Account Info
    fail -> Login Form

    Login Form
    email field active
    next -> password field active

    password field active
    done -> login successful?

    login -> login successful?

    dismiss -> App Welcome Screen

    login successful?
    true -> MFA Options
    false -> Login Error

    Login Error
    dismiss -> Login Form

    MFA Options
    request code via sms -> Enter MFA Code
    request code via email -> Enter MFA Code

    Enter MFA Code
    submit -> Correct MFA?

    Correct MFA?
    true -> Summary View
    false -> Enter MFA Code

    Load Account Info
    success -> Summary View
    fail -> Login Error

    Tab Bar
    summary -> Summary
    manage -> Manage
  24. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Aspiration App*
    Aspiration App Logic*
    open app from home screen -> Has User Previously Logged In?

    Has User Previously Logged In?
  25. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    Aspiration App*
    open app from home screen -> Has User Previously Logged In?

    Has User Previously Logged In?
    yes -> Is Device Authentication Set Up?
    no -> App Welcome Screen
    Has User Previously Logged In?
    yes -> Is Device Authentication Set Up?
    no -> App Welcome Screen

    App Welcome Screen
    tap login -> Is Device Authentication Set Up?
    @@ -136,5 +136,5 @@ Tab Bar
    back -> Settings View

    Signup Flow
    dismiss -> Welcome to Aspiration
    dismiss -> App Welcome Screen

  26. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,9 @@ Aspiration App*
    open app from home screen -> Has User Previously Logged In?

    Has User Previously Logged In?
    yes -> Is D
    yes -> Is Device Authentication Set Up?
    no -> App Welcome Screen

    App Welcome Screen
    tap login -> Is Device Authentication Set Up?
    tap sign up -> Signup Flow
  27. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,8 @@
    Aspiration App*
    open app from home screen -> Is Device Authentication
    open app from home screen -> Has User Previously Logged In?

    Has User Previously Logged In?
    yes -> Is D
    App Welcome Screen
    tap login -> Is Device Authentication Set Up?
    tap sign up -> Signup Flow
  28. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    Aspiration App*
    open
    open app from home screen -> Is Device Authentication
    App Welcome Screen
    tap login -> Is Device Authentication Set Up?
    tap sign up -> Signup Flow
  29. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    Welcome to Aspiration
    Aspiration App*
    open
    App Welcome Screen
    tap login -> Is Device Authentication Set Up?
    tap sign up -> Signup Flow

    @@ -20,7 +22,7 @@ Login Form

    login -> login successful?

    dismiss -> Welcome to Aspiration
    dismiss -> App Welcome Screen

    login successful?
    true -> MFA Options
  30. @rgraves-aspiration rgraves-aspiration revised this gist Jul 17, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion SketchSystems_prototype.js
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ function render(model){
    function addImage() {
    if (model.active_states[0].image_url) {
    return $("img",
    {src: model.active_states[0].image_url, style: {height: "100%", margin: "0 auto"}})
    {src: model.active_states[0].image_url, style: {height: "70%", margin: "0 auto"}})
    } else {
    return "No image available."
    }