x/pkgsite: rember closed/open tree or make it URL-accessible #47462
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
pkgsite/frontend
Issues related to pkgsite HTML/CSS/JavaScript and frontend development
pkgsite
Milestone
The old packages site at https://golang.org/pkg/ used to have the whole packages/subpackages tree expanded (and no way to collapse it). The new page for the same content (https://pkg.go.dev/std) defaults to the tree collapsed. While I understand the motivation for that, I am one of those (and I totally acknowledge that we may be a minority) that liked the full tree being visible by default. However, the site neither remembers the state of open/closed tree, nor does it allow me to have a bookmark that takes me to the page with the tree already in one or the other state.
On top of that, it's very easy to slightly miss the target of the small triangle to open a subtree and e.g. go to the
io
page instead of opening it to then go toioutil
. This is very frustrating, as once on theio
page, I have to navigate back, scroll&find it again, and then carefully open the subtree, then click onioutil
. With the old page, or a pre-expanded tree, this would not happen.I am aware of the "Expand All" functionality, but it is on the far-right side of the content container, and so inconvenient to use, especially on wide browser windows. My muscle memory anticipates the (old, open) tree on the left side of the page, so I'm always slightly disoriented when looking for the "Expand All" interaction.
The text was updated successfully, but these errors were encountered: