boostorg / website-v2

New Boost website
https://boost.io
Boost Software License 1.0
8 stars 13 forks source link

investigating requirements of standardized versioning dropdown #1500

Open rbbeeston opened 5 days ago

rbbeeston commented 5 days ago

The goal would be to have a single dropdown that could manage state based on the version for both releases and library detail pages to convey correct information based on the selected version. Goal is to investigate and implement those changes. more tickets may be built off this parent.

library detail page: we can make it so they won't be able to go to a version that doesn't have the library, blocking the redirect based on disabled attr on the select option

libraries pages: they shouldn't be able to get to that state, not through any link we provide them at least. If they put it into the URL then that's on them.

Assume that a user may think they are very clever, and simply modify a URL to go someplace, or that the state could get wonky and the cookie (or wherever the selected version is stored) could get out of sync and take you to an incorrect page, so we should have a potential response like "this library does not exist in this version"

GregKaleka commented 5 days ago

A few implementation thoughts that come to mind: