freeCodeCamp / CodeAlly-CodeRoad-freeCodeCamp

10 stars 5 forks source link

Closing and reopening CodeRoad sends me to the first set of instructions #19

Closed moT01 closed 3 years ago

moT01 commented 3 years ago

When I close CodeRoad and start it back up. I get the instructions for the first lesson... Here's a gif

All the files are there for the lesson I left off from, so that part is in the right spot.

I don't believe this is the behavior locally - I think continuing a tutorial there will work.

AdamZaczek commented 3 years ago

I believe it's an issue on the CodeAlly part. We'll take a look.

moT01 commented 3 years ago

Side note: This doesn't happen locally

moT01 commented 3 years ago

I'm wondering if it's cause when we load tutorials on CodeAlly, we skip one step at the beginning. If I run locally, I see a "start new tutorial" and "continue tutorial" options. When running on CodeAlly, it just auto-loads. Does that sound like it might be a cause @ShMcK?

ShMcK commented 3 years ago

@moT01 like you mentioned - its because of the logic for skipping a step at the beginning.

if (TUTORIAL_URL) {
        // if a tutorial URL is added, launch tutorial on startup
        ...
}

CodeAlly launches with a TUTORIAL_URL of which tutorial to use, which you probably don't have set locally.

I'll put in a fix to check to just auto-continue for users.

ShMcK commented 3 years ago

Released in CodeRoad v0.17 on the ovsx marketplace