Add tooltip explaining no Refetch button for Android hosts on Host details page
Goal
| User story |
|---|
| As an IT admin, |
| I want to understand why there's no Refetch button on an Android host's details page |
| so that I don't think something is broken or missing. |
For help creating a user story, see "Writing a good user story" in the website handbook.
Change
- [x] https://github.com/fleetdm/fleet/pull/50017
- [ ] https://github.com/fleetdm/fleet/pull/50666
Hey @Leanngove thanks for taking a crack at this!
I think we can shorten the copy a bit. I also think we want to link out to the guide that explains how to manually sync. Why? If I'm looking to refetch it's likely I think the device isn't syncing.
I opened a draft PR that shows what I'm thinking: https://github.com/fleetdm/fleet/pull/50666
Also, the tooltip styles are a bit off...
- Anytime we use the underline indicator, the tooltip should have no arrow and sit flush below the underline like this (screenshots from the design system):
- Two tooltips on one element isn't something I've seen in Fleet before. It feels a bit awkward. Instead, I think the simple solution is to show a disabled Refetch button w/ it's own tooltip (w/ the arrow style). And, we leave the timestamp alone (no change) so it only shows the date/time tooltip it has today.
What do you think? If this sounds good, can you please run w/ these changes? Please feel free to commit on top of my draft PR or open a new one.
Sounds good to me @noahtalerman ! It makes sense to have the refetch button back, just disabled.
Correct tooltip is now displayed for Android hosts
@Leanngove I can currently send a POST request to fleet/hosts/<id>/refetch and get a 200 back. Should we prevent that as well?
@AndreyKizimenko yes, good catch. I think that refetch probably shouldn't be available via the API unless it is somehow a part of this flow?
I don't think that that's related, so I opened this bug: https://github.com/fleetdm/fleet/issues/50882
Admin seeks the why tooltip clears the clouded view trust blooms in the dark