From 2cdead2dcec887f5398cacb6791080c03bb37575 Mon Sep 17 00:00:00 2001 From: Jahziel Villasana-Espinoza Date: Mon, 2 Dec 2024 17:30:18 -0500 Subject: [PATCH] fix: use the correct copy for a macos host (#24292) > Related issue: #23621 # Checklist for submitter If some of the following don't apply, delete the relevant line. - [x] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files) for more information. - [x] Manual QA for all new/changed functionality --- changes/23621-unlock-text | 1 + .../UnlockedHostActivityItem/UnlockedHostActivityItem.tsx | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 changes/23621-unlock-text diff --git a/changes/23621-unlock-text b/changes/23621-unlock-text new file mode 100644 index 0000000000..6715062fdf --- /dev/null +++ b/changes/23621-unlock-text @@ -0,0 +1 @@ +- Fixes an issue with the copy for the activity generated by viewing a locked macOS host's PIN. \ No newline at end of file diff --git a/frontend/pages/hosts/details/cards/Activity/ActivityItems/UnlockedHostActivityItem/UnlockedHostActivityItem.tsx b/frontend/pages/hosts/details/cards/Activity/ActivityItems/UnlockedHostActivityItem/UnlockedHostActivityItem.tsx index 079f4463b7..6fa7cd0550 100644 --- a/frontend/pages/hosts/details/cards/Activity/ActivityItems/UnlockedHostActivityItem/UnlockedHostActivityItem.tsx +++ b/frontend/pages/hosts/details/cards/Activity/ActivityItems/UnlockedHostActivityItem/UnlockedHostActivityItem.tsx @@ -8,9 +8,13 @@ const baseClass = "unlocked-host-activity-item"; const UnlockedHostActivityItem = ({ activity, }: IHostActivityItemComponentProps) => { + let desc = "unlocked this host."; + if (activity.details?.host_platform === "darwin") { + desc = "viewed the six-digit unlock PIN for this host."; + } return ( - {activity.actor_full_name} unlocked this host. + {activity.actor_full_name} {desc} ); };