ji-devs / ji-devs/ji-cloud

Clearing a card games list breaks the step navigation if the teacher was already on the Preview step

Open
#2,434 2 comments 0 reactions 1 assignee View on GitHub

@johnnynotsolucky is already working on this.

Since Feb 21, 2022.

Activities: All card games bug
Dominant language
Rust
Stars
14
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

If a the editing progress of a card game is saved at the preview step, but the teacher navigates back to step 1 and clears the word list and then refreshes the page, the editor navigates to them to the preview screen which won't load and the navigation buttons to the previous steps are broken.

To Reproduce

Steps to reproduce the behavior:

  1. Create a new JIG and add any card game activity;
  2. Configure the card game and navigate to preview;
  3. Go back to step one and clear the list;
  4. Navigate to the Add Activity screen;
  5. Navigate back to the card game activity;
  6. Observe that you are taken automatically to the preview step, and the buttons for previous steps don't work.

Expected behavior

Shouldn't auto-navigate to the preview step if the game is in an incomplete state.

Contributor guide

No contributing guide indexed for this repository

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.