Conversation
This reverts commit c079914.
|
Preview: https://2385--pr-cinny.netlify.app |
|
That is indeed not intentional. The best behaviour would probably be to create the room header if the space contains either a normal room or a space. My bad! Edit: My question now is: How important is it to not show empty spaces even if they exist? |
|
I think this should be ready for review now. |
…ing mangled spaces
|
So with Discord having a moment, and the resulting jump in Cinny's popularity I decided to revive this PR. Preview link, since it got a bit buried: |

Description
Improving the handling of sub-subspaces has been requested in #1855 and #2056. This PR aims to properly display sub-subspaces (and deeper) in a more intuitive tree structure, which better conveys relationships between spaces, as well as improves their organization and navigation.
Currently sub-subspaces and lower are simply flattened to the end of the subspaces, with no regard for their parent subspace. This can be confusing and difficult to navigate, especially in large organizations or bridges.
This PR:
This PR is limited in scope, possible future improvements could be:
Additional Notes
There is some possible de-duplication that probably should be done, as the
getInClosedCategoriesandgetAllAncestorsCollapsedfunctions are very similar inLobby.tsxandSpace.tsx, do say if I should move them to a separate file, and if so where that file should be located. Related to this, mergingmakeLobbyCategoryId,makeNavCategoryId(and their new respectivegetXXXXCategoryIdParts) into a singlemakeCategoryIdwould simplify things quite a bit, as this is now also used inuseSpaceHierarchy.tsx.Example image:
Fixes #1855 , Fixes #2056
Type of change
Checklist: