lit / lit/lit.dev

[tutorials] add progress saving

Open
#699 0 comments 0 reactions 1 assignee View on GitHub

@e111077 is already working on this.

Since Apr 11, 2022.

Needs Discussion
Dominant language
TypeScript
Stars
142
Forks
230
PR merge metrics
No merged PRs in 30d

Description

Allow progress to be saved in local storage:

How it could work:

  1. visit tutorial
    • check if tutorial url is in localstorage
      • FALSE: save tutorial url to localstorage and current step to the current step
      • TRUE: check if current step is same as local storage current step
        • TRUE: do nothing
        • FALSE: display non-intrusive popup that asks to redirect user to last step
          • if dismiss: set local storage current step to current step
  2. on navigate to next or previous step set localstorage currentstep to that step

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.