Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Auto install software (Fleet UI: Updates to software details page) #21194

Merged

Conversation

RachelElysia
Copy link
Member

@RachelElysia RachelElysia commented Aug 8, 2024

Issue

Subtask #21048
Story: #19551

Description

  • Updates to software details page for auto install software
  • Had to do some updates to the host details page to clear type errors, but those changes I left notes as TODO since they're a part of Jacob's tickets <3

Screenrecording 8/8 AM (includes dummy data since API isn't built yet)

https://www.loom.com/share/489a5df0d7df4a51b26a18ff584b988f?sid=f5ed287a-e065-4f21-a0a8-0f1a2330e0ae

  • Added/updated tests
  • Manual QA for all new/changed functionality

@RachelElysia RachelElysia marked this pull request as ready for review August 9, 2024 15:47
@RachelElysia RachelElysia requested a review from a team as a code owner August 9, 2024 15:47
@jacobshandling jacobshandling force-pushed the feat-19551-software-auto-install branch from 3f71ace to e69e052 Compare August 9, 2024 16:36
const labels = softwarePackage?.labels_include_any?.length
? softwarePackage.labels_include_any.map((label) => label.name)
: softwarePackage?.labels_exclude_any.map((label) => label.name) || [];

Copy link
Member Author

@RachelElysia RachelElysia Aug 9, 2024

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Just added since I was back in the code

const tooltipLines = softwarePackage?.labels_include_any?.length
      ? ["Includes any:", ...labels]
      : ["Excludes any:", ...labels];

Copy link
Contributor

@jacobshandling jacobshandling left a comment

Choose a reason for hiding this comment

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

Looks good overall! A few small requests/questions

@@ -15,7 +17,9 @@ const INSTALL_DETAILS_STATUS_PREDICATES: Record<
string
> = {
pending: "is installing or will install",
installed: "installed",
verified: "verified", // TODO
Copy link
Contributor

Choose a reason for hiding this comment

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

are there still things TODO for these 3 lines?

@@ -286,7 +292,9 @@ export type IDeviceSoftware = IHostSoftware;

const INSTALL_STATUS_PREDICATES: Record<SoftwareInstallStatus, string> = {
failed: "failed to install",
installed: "installed",
verified: "verified?", // TODO: jacob
Copy link
Contributor

Choose a reason for hiding this comment

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

👋

@RachelElysia RachelElysia merged commit 64f06d8 into feat-19551-software-auto-install Aug 13, 2024
5 checks passed
@RachelElysia RachelElysia deleted the auto-install-details-page branch August 13, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants