guacsec / guac-visualizer

Visualizer for GUAC
https://guac.sh/
27 stars 21 forks source link

Package dropdowns break with empty namespace #85

Open mcombuechen opened 5 months ago

mcombuechen commented 5 months ago

When dealing with packages without a namespace, the package selector dropdowns don't play nicely. For example, when dealing with package pkg:npm/acorn@7.4.1, it is impossible to ever get to the selection of the package and version since the empty namespace will keep the package name selector disabled.

Furthermore, the empty namespace will show up as a slightly smaller option due to the label being an empty string.

mcombuechen commented 5 months ago

The empty namespace renders as a UI bug in react-select:

Screenshot 2024-05-30 at 09 23 44
mcombuechen commented 5 months ago

The package name selector remains disabled when the empty namespace was selected:

Screenshot 2024-05-30 at 09 24 02