klembot / twinejs

Twine, a tool for telling interactive, nonlinear stories
https://twinery.org
GNU General Public License v3.0
2k stars 296 forks source link

Stuck in 0 stories with tags view #1417

Open PhoenixFireLKD opened 1 year ago

PhoenixFireLKD commented 1 year ago

Describe the bug.

To test story-level tags, I added one tag to a story (tag name was demo). Then I used the view tab to filter to stories with the tag demo. That changed my story list to a single story as expected. However, I decided I didn't like the tag name demo, so while still in the view menu, I deleted the tag from my story.

At that point, I was trapped in showing only tagged stories in the view and library tab, but the "show all stories" wasn't an option because I technically now had no tagged stories. I was using the WindowsOS version of Twine. I had a friend replicate the problem on the chrome browser version. Neither of us could get the full library to show again after deleting the only remaining tag on a story in the view menu. I tried to create a new story, so I could add a tag to it, but it wouldn't show in the library list for me to add the story tag.

To solve the issue, I created a new story in the online version of Twine, gave it a tag, published it, put it in my library folder on my PC, and Twine recognized it as a tagged story. From there, I was able to turn off the tagging filter and see all my stories in the library and the view tab.

I've solved the problem for me and I'll be careful not to delete all story tags while the stories are filtered, but I thought this might be a bug worth fixing.

Steps to reproduce:

  1. Have no tags on stories in the library.
  2. tag one story.
  3. Filter in the view tab to that story tag.
  4. In the view tab, use the story tag drop down to remove the tag.
  5. You will be stuck in 0 tagged stories showing with no way to go back to show the full story library.

Expected behavior:

If you delete the only story tag left while filtering your stories by tag, you will be stuck with 0 tagged stories showing with no way to go back to show the full story library.

Additional context on this problem.

Both the web and desktop apps are affected.

Twine version number

2.6.2.0

Does this problem occur with the web version of Twine or the desktop app?

Desktop app

What operating system does this problem occur on?

Windows

If this problem is occurring with the web version of Twine, what browser does it occur on?

None

Presubmission checklist

klembot commented 1 year ago

Huh! That is definitely an unintended consequence of how the UI options work. Another workaround is to reset Twine's preferences.