Skip to content

Manage automations changes for Policies page - #45919

Merged
nulmete merged 3 commits into
policy-automations-continuous-retriesfrom
45145-list-page-automations
May 22, 2026
Merged

Manage automations changes for Policies page#45919
nulmete merged 3 commits into
policy-automations-continuous-retriesfrom
45145-list-page-automations

Conversation

@nulmete

@nulmete nulmete commented May 20, 2026

Copy link
Copy Markdown
Member

Related issue: Resolves #45145 (will do a follow-up PR for the changes in the Details page).

Checklist for submitter

  • Changes file added for user-visible changes in changes/, orbit/changes/ or ee/fleetd-chrome/changes.
    See Changes files for more information.

Will add a single file in the feature branch (policy-automations-continuous-retries) once done with all the changes.

Testing

  • Added/updated automated tests
  • QA'd all new/changed functionality manually
Screen.Recording.2026-05-20.at.3.57.29.PM.mov

@nulmete
nulmete requested a review from a team as a code owner May 20, 2026 19:02

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

border-collapse: collapse;

.data-table__wrapper {
overflow-x: auto;

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.

table was not horizontally scrollable so I added this unrelated change

),
script: ({ name }) => (
<Graphic
name={name.endsWith(".sh") ? "file-sh" : "file-ps1"}

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.

might need to revisit this condition

Comment on lines -72 to -84
import CalendarEventsModal from "./components/CalendarEventsModal";
import { ICalendarEventsFormData } from "./components/CalendarEventsModal/CalendarEventsModal";
import InstallSoftwareModal from "./components/InstallSoftwareModal";
import { IInstallSoftwareFormData } from "./components/InstallSoftwareModal/InstallSoftwareModal";
import PolicyRunScriptModal from "./components/PolicyRunScriptModal";
import { IPolicyRunScriptFormData } from "./components/PolicyRunScriptModal/PolicyRunScriptModal";
import {
getInstallSoftwareErrorMessage,
getRunScriptErrorMessage,
} from "./helpers";
import { OtherAutomationType } from "./helpers";
import { DEFAULT_POLICY } from "../constants";
import ConditionalAccessModal from "./components/ConditionalAccessModal";
import { IConditionalAccessFormData } from "./components/ConditionalAccessModal/ConditionalAccessModal";

@nulmete nulmete May 20, 2026

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.

In this file I removed all the imports and callbacks passed to these modals that we'll no longer use but I kept the actual files.
All the code from each of the modals will be wired up in a follow-up PR that implements the "Automations modal" (https://www.figma.com/design/QeOcex5LtuDYG9XrGnMFLZ/-42651-Easier-to-manage-policy-automations-with-continuous-retry-option-for-software-scripts?node-id=5345-6017&t=vaLDU8QQXQ7vUq1k-0) and the "Manage automations" modal (https://www.figma.com/design/QeOcex5LtuDYG9XrGnMFLZ/-42651-Easier-to-manage-policy-automations-with-continuous-retry-option-for-software-scripts?node-id=5373-9851&t=CqyECBX4tXJI5J4h-0)

@codecov

codecov Bot commented May 20, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 43.03797% with 45 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.88%. Comparing base (6f927bf) to head (6aa418c).

Files with missing lines Patch % Lines
...policies/ManagePoliciesPage/ManagePoliciesPage.tsx 0.00% 23 Missing ⚠️
...e/components/PoliciesTable/PoliciesTableConfig.tsx 42.42% 19 Missing ⚠️
.../ManageAutomationsModal/ManageAutomationsModal.tsx 50.00% 2 Missing ⚠️
...e/components/AutomationsModal/AutomationsModal.tsx 66.66% 1 Missing ⚠️
Additional details and impacted files
@@                            Coverage Diff                            @@
##           policy-automations-continuous-retries   #45919      +/-   ##
=========================================================================
+ Coverage                                  66.77%   66.88%   +0.10%     
=========================================================================
  Files                                       2751     2749       -2     
  Lines                                     219881   219531     -350     
  Branches                                   10880    10755     -125     
=========================================================================
  Hits                                      146834   146834              
+ Misses                                     59774    59424     -350     
  Partials                                   13273    13273              
Flag Coverage Δ
frontend 56.28% <43.03%> (+0.65%) ⬆️

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.

@nulmete
nulmete merged commit cfd8d61 into policy-automations-continuous-retries May 22, 2026
16 checks passed
@nulmete
nulmete deleted the 45145-list-page-automations branch May 22, 2026 21:16
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.

2 participants