Because of this if there’s a story with too many chapters and you hit collapse all, it doesn’t actually work the way you would think and it takes a couple of tries to get it so it lists every single top chapter from top to bottom.
Currently, it isn't possible to load the story map in one go as the file would be too big. In the beginning, it was done like that but made it impossible to open the story map of the big stories.
Another problem might be that the story map data is loaded vertically and not horizontally. That means that it takes the first 500 (or 1,000) chapters from the top as you see them. I'm not sure how to easily get all chapters to the depth of n while limiting the number of results.
So what I’m saying is to have an option for it to start already collapsed and then expanding only the ones you want.
Starting collapsed might be useful. When I load a very big map to find a certain chapter, I already notice performance problems.
The other part is that while it does highlight the chapter you’re on, it doesn’t automatically bring you to it which means scrolling if your chapter is lower down the list. It’s not the end of the world but it is a pain to go through.
If it is started collapsed, it would be useful to have a search field that allows you to find a certain chapter. I could also imagine a "go to current" button or sth.
BUT the problem really is existing published stories cannot be re-organized.
I think the ideal solution would be allowing story owners (and perhaps editors) to reorganise chapters when they deem it necessary.
Currently, there is no way for the user to reorganize stories.
But there is a suggestion about it in the Suggestions forum and I think it might be implemented in the future.
but given they can already simply delete the entire story whenever they feel like it, it wouldn't be any worse overall.
Story owners can delete their story but the original author of the chapters can still ask to get their chapter content back.
but I point out that it’s THEIR story at the end of the day no matter what you contribute.
If an author adds to a story, their contribution is not a gift to the story owner.
The chapter authors still have the copyright over the content they've created and are even free to remove it, similar to the right of the story owner to delete their story.
It would also need to work in a logical manner that minimises side effects - for example, when you move a chapter, all of its children should move with it, staying in the same position relative to the moved chapter.
There is a database field that determines the parent chapter of a chapter.
That information is basically enough to completely recalculate the story map.
(I think this is the current way when reorganizing chapters.)
Another, more elegant way might be to modify the "cached" structure.
Basically, every chapter has two numbers.
If you add a child chapter, the first number stays the same and the second gets raised by 2.
The child chapter gets the two numbers in between.
If you add another child chapter to the first one, the same happens to the parent chapter again. The numbers of the first child chapter stay the same and the new child chapter gets the number above the first child chapter.
If you add another child chapter before the first one, the same happens to the parent chapter again. The numbers of the other child chapters get raised by 2.
Reorganizing chapters should work very similar as you basically do the same.
If you want to move the third child chapter to the first position, you subtract twice the number of chapters in between from the numbers of the moved chapter. At the same time, you add twice the number of moved chapters to the first two chapters.