-
Notifications
You must be signed in to change notification settings - Fork 464
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/clarify package generation process #24324
Changes from 2 commits
66aad1c
07de9cb
f82c2a4
47bccf9
d4c5b70
13735ce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,9 +56,9 @@ | |
interface IPlatformWrapperProps { | ||
enrollSecret: string; | ||
onCancel: () => void; | ||
certificate: any; | ||
isFetchingCertificate: boolean; | ||
fetchCertificateError: any; | ||
config: IConfig | null; | ||
} | ||
|
||
|
@@ -254,7 +254,7 @@ | |
<> | ||
{packageType !== "plain-osquery" && ( | ||
<span className={`${baseClass}__cta`}> | ||
Run this command with the{" "} | ||
Run this command to generate an install package with the updated{" "} | ||
<a | ||
className={`${baseClass}__command-line-tool`} | ||
href="https://fleetdm.com/learn-more-about/installing-fleetctl" | ||
|
@@ -338,6 +338,14 @@ | |
} | ||
}`, | ||
}; | ||
const getHelpTextForPackageType = (): string => { | ||
if (packageType === "deb") { | ||
return " For CentOS, Red Hat, and Fedora Linux, use --type=rpm."; | ||
} else if (packageType === "msi") { | ||
return " Windows can only generate an MSI package."; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure that this conveys information correctly, since we're talking about building an MSI package, which any OS can do (with the correct dependencies), not building from a specific OS. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I'm specifically commenting here about the copy for this line; swapping "enroll the host" to "build the installer package" makes sense. I made some updates to the guide linked here recently, hence being picky about how we word things. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @iansltx ,I think I missed the link would you mind sharing the link again?Also,I have updated the PR |
||
} | ||
return ""; | ||
}; | ||
|
||
if (packageType === "chromeos") { | ||
return ( | ||
|
@@ -545,11 +553,7 @@ | |
label={renderLabel(packageType, renderInstallerString(packageType))} | ||
type="textarea" | ||
value={renderInstallerString(packageType)} | ||
helpText={`Distribute your package to add hosts to Fleet.${ | ||
packageType === "deb" | ||
? " For CentOS, Red Hat, and Fedora Linux, use --type=rpm." | ||
: "" | ||
}`} | ||
helpText={`Distribute your package to add hosts to Fleet.${getHelpTextForPackageType()}`} | ||
/> | ||
</> | ||
); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 on explaining what running the command will do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should stick with the label/help text copy from the Figma: we settled on keeping the label short but updating the help text to include "Install this package…" to make it clearer what the command does.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rachaelshaw ,
According to the figma file linked here, the text should read :
Right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rachaelshaw Just a reminder to review this when you're back from the holiday break.