mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-11 00:08:30 +01:00
3a14b97fdd
<!-- Thanks for creating a PR! To make it easier for reviewers and everyone else to understand what your changes relate to, please add some relevant content to the headings below. Feel free to ignore or delete sections that you don't think are relevant. Thank you! ❤️ --> ## About the changes <!-- Describe the changes introduced. What are they and why are they being introduced? Feel free to also add screenshots or steps to view the changes if they're visual. --> Adds a UI that shows current status of version and feature usage collection configuration, and a presence in the configuration menu + menu bar. Configuring these features is done by setting environment variables. The version info collection is an existing feature that we're making more visible, the feature usage collection feature is a new feature that has it's own environment configuration but also depends on version info collection being active to work. When version collection is turned off and the experimental feature flag for feature usage collection is turned off: <img width="1269" alt="image" src="https://github.com/Unleash/unleash/assets/707867/435a07da-d238-4b5b-a150-07e3bd6b816f"> When version collection is turned on and the experimental feature flag is off: <img width="1249" alt="image" src="https://github.com/Unleash/unleash/assets/707867/8d1a76c5-99c9-4551-9a4f-86d477bbbf6f"> When the experimental feature flag is enabled, and version+telemetry is turned off: <img width="1239" alt="image" src="https://github.com/Unleash/unleash/assets/707867/e0bc532b-be94-4076-bee1-faef9bc48a5b"> When version collection is turned on, the experimental feature flag is enabled, and telemetry collection is turned off: <img width="1234" alt="image" src="https://github.com/Unleash/unleash/assets/707867/1bd190c1-08fe-4402-bde3-56f863a33289"> When version collection is turned on, the experimental feature flag is enabled, and telemetry collection is turned on: <img width="1229" alt="image" src="https://github.com/Unleash/unleash/assets/707867/848912cd-30bd-43cf-9b81-c58a4cbad1e4"> When version collection is turned off, the experimental feature flag is enabled, and telemetry collection is turned on: <img width="1241" alt="image" src="https://github.com/Unleash/unleash/assets/707867/d2b981f2-033f-4fae-a115-f93e0653729b"> --------- Co-authored-by: sighphyre <liquidwicked64@gmail.com> Co-authored-by: Nuno Góis <github@nunogois.com> Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
30 lines
988 B
TypeScript
30 lines
988 B
TypeScript
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
export const telemetrySettingsSchema = {
|
|
$id: '#/components/schemas/telemetrySettingsSchema',
|
|
type: 'object',
|
|
additionalProperties: false,
|
|
required: ['versionInfoCollectionEnabled', 'featureInfoCollectionEnabled'],
|
|
description:
|
|
'Contains information about which settings are configured for version info collection and feature usage collection.',
|
|
properties: {
|
|
versionInfoCollectionEnabled: {
|
|
type: 'boolean',
|
|
description:
|
|
'Whether collection of version info is enabled/active.',
|
|
example: true,
|
|
},
|
|
featureInfoCollectionEnabled: {
|
|
type: 'boolean',
|
|
description:
|
|
'Whether collection of feature usage metrics is enabled/active.',
|
|
example: true,
|
|
},
|
|
},
|
|
components: {},
|
|
} as const;
|
|
|
|
export type TelemetrySettingsSchema = FromSchema<
|
|
typeof telemetrySettingsSchema
|
|
>;
|