mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 00:45:19 +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
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;
|
||||
}
|
||||
|
||||
&__disabled-usage-statistics-checkbox {
|
||||
@include disabled;
|
||||
}
|
||||
|
||||
.component__tooltip-wrapper {
|
||||
margin-bottom: $pad-xsmall;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ const baseClass = "app-config-form";
|
||||
const Statistics = ({
|
||||
appConfig,
|
||||
handleSubmit,
|
||||
isPremiumTier,
|
||||
isUpdatingSettings,
|
||||
}: IAppConfigFormProps): JSX.Element => {
|
||||
const [formData, setFormData] = useState<any>({
|
||||
@ -45,12 +46,13 @@ const Statistics = ({
|
||||
<div className={`${baseClass}__section`}>
|
||||
<h2>Usage statistics</h2>
|
||||
<p className={`${baseClass}__section-description`}>
|
||||
Help improve Fleet by sending usage statistics.
|
||||
Help us improve Fleet by sending us anonymous usage statistics.
|
||||
<br />
|
||||
<br />
|
||||
This information helps our team better understand feature adoption
|
||||
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 />
|
||||
<CustomLink
|
||||
@ -63,8 +65,13 @@ const Statistics = ({
|
||||
<Checkbox
|
||||
onChange={handleInputChange}
|
||||
name="enableUsageStatistics"
|
||||
value={enableUsageStatistics}
|
||||
value={isPremiumTier ? true : enableUsageStatistics} // Set to true for all premium customers
|
||||
parseTarget
|
||||
wrapperClassName={
|
||||
isPremiumTier
|
||||
? `${baseClass}__disabled-usage-statistics-checkbox`
|
||||
: ""
|
||||
}
|
||||
>
|
||||
Enable usage statistics
|
||||
</Checkbox>
|
||||
|
Loading…
Reference in New Issue
Block a user