fleet icon indicating copy to clipboard operation
fleet copied to clipboard

Add tooltip explaining no Refetch button for Android hosts on Host details page

Open Leanngove opened this issue 4 months ago • 6 comments

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

Leanngove avatar Jul 27 '26 18:07 Leanngove

Screenshot 2026-07-27 at 3 09 16 PM

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):
Image Image
  • 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.

noahtalerman avatar Aug 06 '26 11:08 noahtalerman

Sounds good to me @noahtalerman ! It makes sense to have the refetch button back, just disabled.

Leanngove avatar Aug 06 '26 17:08 Leanngove

Correct tooltip is now displayed for Android hosts Image

@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 avatar Aug 10 '26 16:08 AndreyKizimenko

@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?

Leanngove avatar Aug 10 '26 16:08 Leanngove

I don't think that that's related, so I opened this bug: https://github.com/fleetdm/fleet/issues/50882

AndreyKizimenko avatar Aug 10 '26 16:08 AndreyKizimenko

Admin seeks the why tooltip clears the clouded view trust blooms in the dark

fleet-release avatar Sep 02 '26 22:09 fleet-release