Skip to content

Commit f08b560

Browse files
Add documentation links for UI telemetry components (#2428)
* Add documentation links for UI telemetry in EnableUiTelemetry and UiTelemetryToggle components * Add Privacy Policy link to telemetry description in EnableUiTelemetry component
1 parent 664fc3b commit f08b560

3 files changed

Lines changed: 19 additions & 45 deletions

File tree

packages/admin-ui/src/components/welcome/features/EnableUiTelemetry.tsx

Lines changed: 11 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { useState } from "react";
22
import BottomButtons from "../BottomButtons";
33
import SwitchBig from "components/SwitchBig";
44
import { api } from "api";
5+
import { docsUrl, externalUrlProps } from "params";
56

67
export default function EnableUiTelemetry({ onBack, onNext }: { onBack?: () => void; onNext: () => void }) {
78
const [telemetryOn, setTelemetryOn] = useState(true);
@@ -19,53 +20,21 @@ export default function EnableUiTelemetry({ onBack, onNext }: { onBack?: () => v
1920
<div className="title">Help improve Dappnode</div>
2021
<div className="description">
2122
<p>
22-
You can optionally enable telemetry to help us improve Dappnode.
23-
When enabled, we collect usage data such as UI interactions,
24-
performance metrics, and error reports.
23+
Help us improve Dappnode by enabling telemetry. We collect usage data, performance metrics, and error
24+
reports. You can disable this at any time in System &gt; Advanced.{" "}
25+
<a href={docsUrl.uiTelemetry} {...externalUrlProps}>
26+
Learn more
27+
</a>
28+
{" · "}
29+
<a href="https://dappnode.com/pages/privacy-policy" {...externalUrlProps}>
30+
Privacy Policy
31+
</a>
2532
</p>
26-
27-
<p>
28-
By enabling this option, you consent to the collection and processing of this telemetry data.
29-
You can disable telemetry at any time in System &gt; Advanced.
30-
</p>
31-
32-
<details style={{ textAlign: "left", marginTop: "0.5rem" }}>
33-
<summary style={{ cursor: "pointer", fontWeight: 500 }}>What data is collected and why?</summary>
34-
35-
<ul style={{ paddingLeft: "1.5rem", marginTop: "0.5rem" }}>
36-
<li>
37-
<strong>Improve Dappnode:</strong> Your usage data helps us understand how features are used and where
38-
issues occur, so we can build a better product.
39-
</li>
40-
<li>
41-
<strong>Better support:</strong> Telemetry helps the Dappnode team diagnose and resolve issues faster
42-
when you reach out for support.
43-
</li>
44-
</ul>
45-
46-
<p>
47-
This data includes your IP address and a pseudonymous persistent session identifier to understand usage over time.
48-
Telemetry is proxied through Dappnode infrastructure and processed using third-party services such as Grafana Cloud.
49-
</p>
50-
51-
<p style={{ fontSize: "0.85rem", opacity: 0.8 }}>
52-
Learn more in our{" "}
53-
<a href="https://dappnode.com/pages/privacy-policy" target="_blank" rel="noopener noreferrer">
54-
Privacy Policy
55-
</a>
56-
.
57-
</p>
58-
</details>
5933
</div>
6034
</div>
6135

6236
<div className="auto-updates-switch">
63-
<SwitchBig
64-
checked={telemetryOn}
65-
onChange={setTelemetryOn}
66-
label="Enable anonymous telemetry"
67-
id="enable-ui-telemetry"
68-
/>
37+
<SwitchBig checked={telemetryOn} onChange={setTelemetryOn} label="Enable telemetry" id="enable-ui-telemetry" />
6938
</div>
7039

7140
<BottomButtons onBack={onBack} onNext={onSubmit} />

packages/admin-ui/src/pages/system/components/Advanced/UiTelemetryToggle.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from "react";
22
import { api, useApi } from "api";
33
import { withToast } from "components/toast/Toast";
44
import Switch from "components/Switch";
5+
import { docsUrl, externalUrlProps } from "params";
56
import "./uiTelemetryToggle.scss";
67

78
export function UiTelemetryToggle() {
@@ -19,8 +20,11 @@ export function UiTelemetryToggle() {
1920
return (
2021
<div className="ui-telemetry-wrapper">
2122
<div>
22-
Send usage data, errors, and performance metrics to help improve Dappnode and allow the team to better
23-
support you if you run into any issue.
23+
Send usage data, errors, and performance metrics to help improve Dappnode and allow the team to better support
24+
you if you run into any issue.{" "}
25+
<a href={docsUrl.uiTelemetry} {...externalUrlProps}>
26+
Learn more
27+
</a>
2428
</div>
2529
<Switch
2630
checked={enabled}

packages/admin-ui/src/params.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ export const docsUrl = {
113113
premiumOverview: `${docsBaseUrl}/docs/user/dappnode-premium/overview`,
114114
premiumBackupNode: `${docsBaseUrl}/docs/user/dappnode-premium/premium-services#backup-node-for-validators`,
115115
premiumBackupValidatorsLimit: `${docsBaseUrl}/docs/user/dappnode-premium/premium-services#validators-limit`,
116-
starknetDocs: `${docsBaseUrl}/docs/user/staking/starknet/solo`
116+
starknetDocs: `${docsBaseUrl}/docs/user/staking/starknet/solo`,
117+
uiTelemetry: `${docsBaseUrl}/docs/user/ui-telemetry`
117118
};
118119

119120
export const forumUrl = {

0 commit comments

Comments
 (0)