Skip to content

Show 'Fleet will try again.' in host activity feed for NotNow MDM commands#44532

Draft
kilo-code-bot[bot] wants to merge 1 commit intomainfrom
kilo/add-retry-text-notnow-activity-feed
Draft

Show 'Fleet will try again.' in host activity feed for NotNow MDM commands#44532
kilo-code-bot[bot] wants to merge 1 commit intomainfrom
kilo/add-retry-text-notnow-activity-feed

Conversation

@kilo-code-bot
Copy link
Copy Markdown
Contributor

@kilo-code-bot kilo-code-bot Bot commented Apr 30, 2026

Summary

  • Adds "Fleet will try again." text to the host-level activity feed for MDM commands with a "NotNow" status, matching the existing behavior in the CommandDetailsModal.
  • Previously, users had to open the modal to see this retry information; now it's visible directly in the activity feed.

Changes

  • frontend/pages/hosts/details/cards/Activity/CommandItem/CommandItem.tsx: When a command's status is "NotNow", append " Fleet will try again." to the activity text displayed in the feed.

QA

  1. Navigate to a host details page with MDM commands enabled.
  2. Trigger or find a command with "NotNow" status (host locked or running on battery in Power Nap).
  3. Verify the activity feed item shows "The {command} command is deferred. Fleet will try again."
  4. Verify the CommandDetailsModal still shows the full deferred message with "Fleet will try again."

Built for Mel Pike by Kilo for Slack

…mands

When a command has a NotNow status (host was locked or running on battery
in Power Nap), the CommandDetailsModal already shows 'Fleet will try again.'
This adds the same message to the host-level activity feed so users can see
it without opening the modal.
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.79%. Comparing base (f70a02a) to head (3609f7d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #44532   +/-   ##
=======================================
  Coverage   66.79%   66.79%           
=======================================
  Files        2637     2637           
  Lines      212132   212133    +1     
  Branches     9437     9438    +1     
=======================================
+ Hits       141688   141689    +1     
  Misses      57578    57578           
  Partials    12866    12866           
Flag Coverage Δ
frontend 54.78% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants