mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Fleet UI: Add usage statistics always on for premium users to to app settings page (#14604)
This commit is contained in:
parent
4a9ef5ae07
commit
0b73f43ebd
3 changed files with 15 additions and 3 deletions
1
changes/10888-premium-usage-statistics
Normal file
1
changes/10888-premium-usage-statistics
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
- App Settings informs premium users they are sending usage statistics and cannot disable feature
|
||||||
|
|
@ -205,6 +205,10 @@
|
||||||
margin-bottom: $pad-large;
|
margin-bottom: $pad-large;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__disabled-usage-statistics-checkbox {
|
||||||
|
@include disabled;
|
||||||
|
}
|
||||||
|
|
||||||
.component__tooltip-wrapper {
|
.component__tooltip-wrapper {
|
||||||
margin-bottom: $pad-xsmall;
|
margin-bottom: $pad-xsmall;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ const baseClass = "app-config-form";
|
||||||
const Statistics = ({
|
const Statistics = ({
|
||||||
appConfig,
|
appConfig,
|
||||||
handleSubmit,
|
handleSubmit,
|
||||||
|
isPremiumTier,
|
||||||
isUpdatingSettings,
|
isUpdatingSettings,
|
||||||
}: IAppConfigFormProps): JSX.Element => {
|
}: IAppConfigFormProps): JSX.Element => {
|
||||||
const [formData, setFormData] = useState<any>({
|
const [formData, setFormData] = useState<any>({
|
||||||
|
|
@ -45,12 +46,13 @@ const Statistics = ({
|
||||||
<div className={`${baseClass}__section`}>
|
<div className={`${baseClass}__section`}>
|
||||||
<h2>Usage statistics</h2>
|
<h2>Usage statistics</h2>
|
||||||
<p className={`${baseClass}__section-description`}>
|
<p className={`${baseClass}__section-description`}>
|
||||||
Help improve Fleet by sending usage statistics.
|
Help us improve Fleet by sending us anonymous usage statistics.
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
This information helps our team better understand feature adoption
|
This information helps our team better understand feature adoption
|
||||||
and usage, and allows us to see how Fleet is adding value, so that
|
and usage, and allows us to see how Fleet is adding value, so that
|
||||||
we can make better product decisions.
|
we can make better product decisions. Fleet Premium customers always
|
||||||
|
submit usage statistics data.
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<CustomLink
|
<CustomLink
|
||||||
|
|
@ -63,8 +65,13 @@ const Statistics = ({
|
||||||
<Checkbox
|
<Checkbox
|
||||||
onChange={handleInputChange}
|
onChange={handleInputChange}
|
||||||
name="enableUsageStatistics"
|
name="enableUsageStatistics"
|
||||||
value={enableUsageStatistics}
|
value={isPremiumTier ? true : enableUsageStatistics} // Set to true for all premium customers
|
||||||
parseTarget
|
parseTarget
|
||||||
|
wrapperClassName={
|
||||||
|
isPremiumTier
|
||||||
|
? `${baseClass}__disabled-usage-statistics-checkbox`
|
||||||
|
: ""
|
||||||
|
}
|
||||||
>
|
>
|
||||||
Enable usage statistics
|
Enable usage statistics
|
||||||
</Checkbox>
|
</Checkbox>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue