-
Notifications
You must be signed in to change notification settings - Fork 149
Mount Description #105
base: master
Are you sure you want to change the base?
Mount Description #105
Conversation
Hey @djenriquez, I'd rather avoid putting the responsibility of discovering information about backends onto the specific backend UI code. I've pushed some changes so the description of a backend is displayed by the navigation menu, which is more natural since that's where |
In addition I've added a text field in the backend mount dialog so the description can be entered at creation. But you're right, once the backend is mounted, seems like there's no way to update the description |
@msessa I had thought about putting it in the menu, but it threw things off a bit when I had a long description, which, I'm not sure what users would have for theirs. You're right that its un-natural to "re-retrieve" the mount description through another call to |
Can we/should we have the menu item grow with the description? That may be a valid compromise? |
I just think having to update every backend with code to make that call, filter the result and display the description is just too much for such a small UI improvement. What if we improved the UX on the menu around displaying overflowing text? |
Yea, I think thats a nice compromise, though I think the old school hover tooltip might actually be a better alternative. https://jsfiddle.net/tb68dwqr/29/ can be difficult to read since it just jumps to the end and goes through the middle quickly. |
@djenriquez From Release 2.2.0 it appears that this made it into the release but I am not seeing the ability to actually add descriptions to any mounts |
@fia5000, you're right, that was left in unintentionally. I'll update the release notes to reflect whats really out. As far as this feature is concerned, we're stuck in a debate on how this should be implemented. Do you have any feedback on which implementation above ^ you prefer? |
@djenriquez @msessa Honestly, I don't like the idea of a large tooltip, or a lot of text under the backend link. I think the right way to go is having the description at the top once you have loaded the backend like in @djenriquez's mockup above. If the description was wrapped up as a component I don't think it'd be too much for contributors to include. |
Reference: #102
This PR adds a description field to the generic secret mount display. Currently, Vault does not have the ability to update the description of a mount (hashicorp/vault#2645), but the logic for it is stubbed in here for when that feature does exist. I realized after doing the work that you can't "re-post" a mount to update, lame.