Skip to content

Commit 659669f

Browse files
committed
matomo options
1 parent ebab45a commit 659669f

File tree

2 files changed

+54
-5
lines changed

2 files changed

+54
-5
lines changed

apps/remix-ide/src/app/tabs/locales/en/remixApp.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,12 @@
1919

2020
"remixApp.mpOp1Title": "RemixAI",
2121
"remixApp.mpOp1Details": "RemixAI helps by offering code suggestions and improvements",
22-
"remixApp.mpOp1Link": "<a>Learn more about RemixAI Copilot</a>"
22+
"remixApp.mpOp1Link": "<a>Learn more about RemixAI Copilot</a>",
23+
24+
"remixApp.mpOp2Title": "Matomo Anonymous Analytics",
25+
"remixApp.mpOp2Details": "Our use of anonymous analytics data helps us improve your experience by identifying bug and important UX improvements. This data can also be used in overall statistics on Remix use in the wider Web3 ecosystem",
26+
"remixApp.mpOp2Link": "<a>Learn more about analytics</a>",
27+
28+
"remixApp.mpOp3Title": "Matomo Performance Analytics",
29+
"remixApp.mpOp3Details": "Remix believes your privacy is of primary importance. Your help in making Remix the best possible open source public good toolset is also very important. Approval of performance analytics tracking greatly helps us refine and improve the toolset. Rest assured, we will never share this data with any third parties."
2330
}

libs/remix-ui/app/src/lib/remix-app/components/modals/managePreferences.tsx

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ const ManagePreferencesDialog = (props: ManagePreferencesDialogProps) => {
2020
const message = () => {
2121
return (
2222
<>
23-
<div data-id="remixAI" className='justify-content-between align-items-center d-flex'>
24-
<div>
23+
<div data-id="remixAI" className='justify-content-between d-flex'>
24+
<div className='mt-2'>
2525
<h6><FormattedMessage id="remixApp.mpOp1Title" /></h6>
2626
<p className='form-check-label'><FormattedMessage id="remixApp.mpOp1Details" /></p>
2727
<p className='mt-1'><FormattedMessage
@@ -37,15 +37,57 @@ const ManagePreferencesDialog = (props: ManagePreferencesDialogProps) => {
3737
</div>
3838
<div>
3939
<button
40-
data-id="remixAIswitch"
41-
id='remixAIswitch'
40+
data-id="remixAISwitch"
41+
id='remixAISwitch'
4242
className="btn text-ai"
4343
onClick={() => {}}
4444
>
4545
<i className="fas fa-toggle-on fa-2xl"></i>
4646
</button>
4747
</div>
4848
</div>
49+
<div data-id="matomoAnonAnalytics" className='justify-content-between d-flex'>
50+
<div className='mt-2'>
51+
<h6><FormattedMessage id="remixApp.mpOp2Title" /></h6>
52+
<p className='form-check-label'><FormattedMessage id="remixApp.mpOp2Details" /></p>
53+
<p className='mt-1'><FormattedMessage
54+
id="remixApp.mpOp2Link"
55+
values={{
56+
a: (chunks) => (
57+
<a className="text-primary" href="https://matomo.org" target="_blank" rel="noreferrer">
58+
{chunks}
59+
</a>
60+
),
61+
}}
62+
/></p>
63+
</div>
64+
<div>
65+
<button
66+
data-id="matomoAnonAnalyticsSwitch"
67+
id='matomoAnonAnalyticsSwitch'
68+
className="btn text-ai"
69+
onClick={() => {}}
70+
>
71+
<i className="fas fa-toggle-off fa-2xl"></i>
72+
</button>
73+
</div>
74+
</div>
75+
<div data-id="matomoPerfAnalytics" className='justify-content-between d-flex'>
76+
<div className='mt-2'>
77+
<h6 className='text-secondary'><FormattedMessage id="remixApp.mpOp3Title" /></h6>
78+
<p className='form-check-label text-secondary'><FormattedMessage id="remixApp.mpOp3Details" /></p>
79+
</div>
80+
<div>
81+
<button
82+
data-id="matomoPerfAnalyticsSwitch"
83+
id='matomoPerfAnalyticsSwitch'
84+
className="btn text-secondary"
85+
onClick={() => {}}
86+
>
87+
<i className="fas fa-toggle-off fa-2xl"></i>
88+
</button>
89+
</div>
90+
</div>
4991
</>
5092
)
5193
}

0 commit comments

Comments
 (0)