Way to see top level groups

Having subgroups is a really exciting and wonderful feature !

We've got some top-level groups, one per activity. For each activity, we've got a lots of subgroups (one per client) Each client subgroup having one subgroup per project (ie, one or some sub-groups)

From one leaf (project) group, I can go up to the client subgroup.

But, wanting to create a new top-level group, I didn't manage (even in admin) to see the list of the top-level groups (to name it coherently with the others).

Proposal # 1

I'd like some hierarchical view of the groups. It could be done in the "Explore groups" views, by rendering a tree of the groups, with collapsible parents.

Instead of rendering :

  • Group 1 / Subgroup 1.1
  • Group 1 / Subgroup 1.2
  • Group 1 / Subgroup 1.2 / Subgroup 1.2.1

The list could be rendered like :

  • Group 1 (collapse)
    • Subgroup 1.1
    • Subgroup 1.2
      • Subgroup 1.2.1

With possibility to expand/collapse each level

It leads to deal with some specific problems :

  • how to paginate ?
  • how to render search results ? It implies showing the parent differently (since itself is not a search result)

Proposal # 2

Alternatively, there could be just an option / checkbox to the search, that would only search in the sublevels groups (for "Explore groups" in a group or subgroup) or in the top-level groups (for Explore groups from the home).