2023-01-12 11:34:45 +01:00
|
|
|
import { Routes, Route } from 'react-router-dom';
|
2023-02-21 14:27:46 +01:00
|
|
|
import { ApiTokenPage } from './apiToken/ApiTokenPage/ApiTokenPage';
|
2023-01-12 11:34:45 +01:00
|
|
|
import { CreateApiToken } from './apiToken/CreateApiToken/CreateApiToken';
|
|
|
|
import { AuthSettings } from './auth/AuthSettings';
|
|
|
|
import { Billing } from './billing/Billing';
|
|
|
|
import FlaggedBillingRedirect from './billing/FlaggedBillingRedirect/FlaggedBillingRedirect';
|
|
|
|
import { CorsAdmin } from './cors';
|
|
|
|
import { GroupsAdmin } from './groups/GroupsAdmin';
|
|
|
|
import { InstanceAdmin } from './instance-admin/InstanceAdmin';
|
feat/telemetry opt out (#4035)
<!-- 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>
2023-06-30 08:43:58 +02:00
|
|
|
import { InstancePrivacy } from './instance-privacy/InstancePrivacy';
|
2023-01-12 11:34:45 +01:00
|
|
|
import { MaintenanceAdmin } from './maintenance';
|
|
|
|
import { Network } from './network/Network';
|
2023-06-14 15:40:40 +02:00
|
|
|
import { Roles } from './roles/Roles';
|
2023-01-12 11:34:45 +01:00
|
|
|
import { ServiceAccounts } from './serviceAccounts/ServiceAccounts';
|
|
|
|
import CreateUser from './users/CreateUser/CreateUser';
|
|
|
|
import { InviteLink } from './users/InviteLink/InviteLink';
|
|
|
|
import UsersAdmin from './users/UsersAdmin';
|
2023-08-10 09:28:10 +02:00
|
|
|
import NotFound from 'component/common/NotFound/NotFound';
|
|
|
|
import { AdminIndex } from './AdminIndex';
|
|
|
|
import { AdminTabsMenu } from './menu/AdminTabsMenu';
|
2023-01-12 11:34:45 +01:00
|
|
|
|
2023-08-04 11:57:36 +02:00
|
|
|
export const Admin = () => {
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<AdminTabsMenu />
|
|
|
|
<Routes>
|
2023-08-10 09:28:10 +02:00
|
|
|
<Route index element={<AdminIndex />} />
|
|
|
|
<Route path="users/*" element={<UsersAdmin />} />
|
2023-08-04 11:57:36 +02:00
|
|
|
<Route path="api" element={<ApiTokenPage />} />
|
|
|
|
<Route path="api/create-token" element={<CreateApiToken />} />
|
2023-08-10 09:28:10 +02:00
|
|
|
<Route path="service-accounts" element={<ServiceAccounts />} />
|
2023-08-04 11:57:36 +02:00
|
|
|
<Route path="create-user" element={<CreateUser />} />
|
|
|
|
<Route path="invite-link" element={<InviteLink />} />
|
2023-08-10 09:28:10 +02:00
|
|
|
<Route path="groups/*" element={<GroupsAdmin />} />
|
|
|
|
<Route path="roles/*" element={<Roles />} />
|
2023-08-04 11:57:36 +02:00
|
|
|
<Route path="instance" element={<InstanceAdmin />} />
|
|
|
|
<Route path="network/*" element={<Network />} />
|
|
|
|
<Route path="maintenance" element={<MaintenanceAdmin />} />
|
|
|
|
<Route path="cors" element={<CorsAdmin />} />
|
|
|
|
<Route path="auth" element={<AuthSettings />} />
|
|
|
|
<Route
|
|
|
|
path="admin-invoices"
|
|
|
|
element={<FlaggedBillingRedirect />}
|
|
|
|
/>
|
|
|
|
<Route path="billing" element={<Billing />} />
|
|
|
|
<Route path="instance-privacy" element={<InstancePrivacy />} />
|
2023-08-10 09:28:10 +02:00
|
|
|
<Route path="*" element={<NotFound />} />
|
2023-08-04 11:57:36 +02:00
|
|
|
</Routes>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|