Skip to content

Fleet UI: Strip fleetctl pointer from script details timeout message - #56350

Merged
RachelElysia merged 3 commits into
mainfrom
55120-script-details-timeout-copy
Oct 23, 2026
Merged

RachelElysia merged 3 commits into
mainfrom
55120-script-details-timeout-copy

Conversation

@RachelElysia

@RachelElysia RachelElysia commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Related issue: Closes #55120

Description

  • Bug fix (copy): The Script details modal's host-timeout message surfaced RunScriptHostTimeoutErrMsg verbatim. That constant is fleetctl copy and ends with "Go to Fleet and check Host details > Activities to see script results."
  • Stripped the entire trailing pointer sentence in the UI. "Go to Fleet" is redundant everywhere (the user is already in Fleet), and "check Host details > Activities to see script results" is misleading in every call site: Fleet gives up at the server timeout (6 min) and has no result to show anywhere. If fleetd eventually comes back and reports in, the result populates on this same view, so pointing the user elsewhere is wrong.
  • Fix lives at the UI edge rather than in server/fleet/errors.go because the constant is shared with fleetctl, where "Go to Fleet" is still correct advice. The timeout branch in RunScriptDetailsModal already special-cases this message, so the strip fits the existing pattern. Modal has 4 call sites (dashboard activity feed, host details activities, host scripts flow, Controls > Scripts batch details) and the strip is correct for all of them.
  • Added a regression test covering the host-timeout branch.

Checklist for submitter

Testing

  • Added/updated automated tests
  • QA'd all new/changed functionality manually

AI

AI: Claude Code (claude-opus-4-7)

Frontend

  • Attached a screenshot or screen recording of each user-visible change. For changes to existing UI, show the before and after.
Screenshot 2026-10-22 at 3 23 08 PM

Summary by CodeRabbit

  • Bug Fixes
    • Host-timeout script results now display a cleaner status message without the Fleet navigation pointer, while preserving the notice that it’s unknown whether the script ran.

@codecov

codecov Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 77.52%. Comparing base (3d523df) to head (a73c86b).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...ts/RunScriptDetailsModal/RunScriptDetailsModal.tsx 66.66% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #56350   +/-   ##
=======================================
  Coverage   77.52%   77.52%           
=======================================
  Files        4345     4345           
  Lines      271487   271487           
  Branches    15950    15948    -2     
=======================================
+ Hits       210474   210477    +3     
+ Misses      60827    60824    -3     
  Partials      186      186           
Flag Coverage Δ
frontend 72.40% <66.66%> (+<0.01%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The scoped UI change matches the linked issue and includes regression coverage; the remaining description mismatch is non-blocking.

1 open issue
What changed in this PR

Removes fleetctl-specific navigation instructions from host-timeout messages in the Script details modal, matching #55120 while leaving shared server copy unchanged.

Changes:

  • Strips the full “Go to Fleet and check Host details…” sentence at the UI boundary.
  • Adds regression coverage confirming the instruction is removed and the timeout explanation remains.
File Description
frontend/​pages/​DashboardPage/​cards/​ActivityFeed/​components/​RunScriptDetailsModal/​RunScriptDetailsModal.tsx Removes the navigation sentence from host-timeout messages.
frontend/​pages/​DashboardPage/​cards/​ActivityFeed/​components/​RunScriptDetailsModal/​RunScriptDetailsModal.tests.tsx Tests instruction removal and preservation of the timeout explanation.

Review effort: Balanced

Comment on lines +87 to +88
/\s*Go to Fleet and check Host details > Activities to see script results\.?/,
""

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I removed all of it and updated the PR description!

@RachelElysia
RachelElysia marked this pull request as ready for review October 22, 2026 19:31
@RachelElysia
RachelElysia requested a review from a team as a code owner October 22, 2026 19:31
@coderabbitai

coderabbitai Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
📥 Commits

Reviewing files that changed from the base of the PR and between 3d523df and a73c86b.

📒 Files selected for processing: 2
  • frontend/pages/DashboardPage/cards/ActivityFeed/components/RunScriptDetailsModal/RunScriptDetailsModal.tests.tsx
  • frontend/pages/DashboardPage/cards/ActivityFeed/components/RunScriptDetailsModal/RunScriptDetailsModal.tsx

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

Walkthrough

When a script has no exit code and the host has timed out, the details modal removes the Fleet navigation pointer from the API message and trims surrounding whitespace before displaying it. When the host has not timed out, the modal continues to show the running status. A test checks that the timeout message omits the pointer and retains the uncertainty statement.

Priority: ⬇️ Low

Severity of issue fixed: Low

Merge Risk: ⚪ Minimal · up to a73c8

No actionable defect remains in the changed timeout-message behavior.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main UI change: removing the fleetctl pointer from the script details timeout message.
Description check Passed The description explains the bug, the implementation scope, the reason for the UI-level fix, the related issue, testing, manual QA, AI usage, and the user-visible change with a screenshot. It is suffi…
Linked Issues check Passed Issue #55120 requires removal of the Fleet navigation pointer from the host-timeout message in the Script details modal. The host-timeout branch removes `Go to Fleet and check Host details > Activitie…
Out of Scope Changes check Passed The changes are limited to the Script details modal and its regression test. The code preserves the shared API message and changes only its UI presentation for host timeouts. No unrelated behavior or …
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2…
Full details: Description check

Explanation

The description explains the bug, the implementation scope, the reason for the UI-level fix, the related issue, testing, manual QA, AI usage, and the user-visible change with a screenshot. It is sufficiently complete for this pull request.

Full details: Linked Issues check

Explanation

Issue #55120 requires removal of the Fleet navigation pointer from the host-timeout message in the Script details modal. The host-timeout branch removes Go to Fleet and check Host details &gt; Activities to see script results. and trims the remaining message. The added test verifies that the pointer is absent and that the host-timeout explanation remains present.

Full details: Out of Scope Changes check

Explanation

The changes are limited to the Script details modal and its regression test. The code preserves the shared API message and changes only its UI presentation for host timeouts. No unrelated behavior or files are changed.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2 files.

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@RachelElysia
RachelElysia merged commit 32f58ec into main Oct 23, 2026
36 of 37 checks passed
@RachelElysia
RachelElysia deleted the 55120-script-details-timeout-copy branch October 23, 2026 19:25

This branch was previously deployed

1 inactive deployment
Docker Hub — a73c86b5 Deployed Oct 22, 2026 by RachelElysia via publish #110440
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.

Script details: "host didn't respond" message is fleetctl copy that tells you to "Go to Fleet"

3 participants