Skip to content

Commit 4eaee65

Browse files
authored
Merge branch 'master' into extend-modal
2 parents 47e56ff + 84f0883 commit 4eaee65

File tree

9 files changed

+22
-11
lines changed

9 files changed

+22
-11
lines changed

apps/learneth/src/redux/models/workshop.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,10 @@ const Model: ModelType = {
184184
}
185185
}
186186
}
187-
(<any>window)._paq.push(['trackEvent', 'learneth', 'load_repo', payload.name])
187+
// we don't need to track the default repos
188+
if (payload.name !== 'ethereum/remix-workshops' && payload.name !== 'remix-project-org/remix-workshops') {
189+
(<any>window)._paq.push(['trackEvent', 'learneth', 'load_repo', payload.name])
190+
}
188191
},
189192
*resetAll({ payload }, { put }) {
190193
yield put({

apps/remix-ide-e2e/src/tests/matomo.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,7 @@ module.exports = {
325325
return (window as any)._paq
326326
}, [], (res) => {
327327
const expectedEvents = [
328-
["trackEvent", "App", "Preload", "start"],
329-
["trackEvent", "Storage", "activate", "indexedDB"],
330-
["trackEvent", "App", "load"],
328+
["trackEvent", "Storage", "activate", "indexedDB"]
331329
];
332330

333331
const actualEvents = (res as any).value;

apps/remix-ide/src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class AppComponent {
232232
'6fd22d6fe5549ad4c4d8fd3ca0b7816b.mod': 35 // remix desktop
233233
}
234234

235-
_paq.push(['trackEvent', 'App', 'load']);
235+
// _paq.push(['trackEvent', 'App', 'load']);
236236
this.matomoConfAlreadySet = Registry.getInstance().get('config').api.exists('settings/matomo-perf-analytics')
237237
this.matomoCurrentSetting = Registry.getInstance().get('config').api.get('settings/matomo-perf-analytics')
238238

apps/remix-ide/src/app/components/preload.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import './styles/preload.css'
1010
import isElectron from 'is-electron'
1111
const _paq = (window._paq = window._paq || [])
1212

13-
_paq.push(['trackEvent', 'App', 'Preload', 'start'])
13+
// _paq.push(['trackEvent', 'App', 'Preload', 'start'])
1414

1515
export const Preload = (props: any) => {
1616
const [tip, setTip] = useState<string>('')

apps/remix-ide/src/app/plugins/storage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class StoragePlugin extends Plugin {
2323
}
2424
}
2525
const _paq = (window as any)._paq = (window as any)._paq || []
26-
_paq.push(['trackEvent', 'Storage', 'used', this.formatString(storage)]);
26+
// _paq.push(['trackEvent', 'Storage', 'used', this.formatString(storage)]);
2727
return storage
2828
}
2929

libs/remix-ui/remix-ai-assistant/src/components/contextOptMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function GroupListMenu(props: GroupListMenuProps) {
1515
{props.groupList.map((item, index) => (
1616
<button
1717
key={`${item.label}-${index}`}
18-
className="btn btn-light"
18+
className={`btn btn-light border border-0`}
1919
data-id={item.dataId}
2020
onClick={() => {
2121
props.setChoice(item.stateValue)

libs/remix-ui/remix-ai-assistant/src/components/prompt.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export const PromptArea: React.FC<PromptAreaProps> = ({
118118
<div className="btn-group btn-group-sm" role="group">
119119
<button
120120
type="button"
121-
className={`btn ${aiMode === 'ask' ? 'btn-primary' : 'btn-outline-secondary'} px-2`}
121+
className={`btn btn-sm ${aiMode === 'ask' ? 'btn-primary' : 'btn-outline-secondary'} px-2`}
122122
onClick={() => {
123123
setAiMode('ask')
124124
_paq.push(['trackEvent', 'remixAI', 'ModeSwitch', 'ask'])
@@ -129,7 +129,7 @@ export const PromptArea: React.FC<PromptAreaProps> = ({
129129
</button>
130130
<button
131131
type="button"
132-
className={`btn ${aiMode === 'edit' ? 'btn-primary' : 'btn-outline-secondary'} px-2`}
132+
className={`btn btn-sm ${aiMode === 'edit' ? 'btn-primary' : 'btn-outline-secondary'} px-2`}
133133
onClick={() => {
134134
setAiMode('edit')
135135
_paq.push(['trackEvent', 'remixAI', 'ModeSwitch', 'edit'])

libs/remix-ui/remix-ai-assistant/src/components/remix-ui-remix-ai-assistant.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export const RemixUiRemixAiAssistant = React.forwardRef<
5252
const [selectedModel, setSelectedModel] = useState<string | null>(null)
5353
const [isOllamaFailureFallback, setIsOllamaFailureFallback] = useState(false)
5454
const [aiMode, setAiMode] = useState<'ask' | 'edit'>('ask')
55+
const [themeTracker, setThemeTracker] = useState(null)
5556

5657
const historyRef = useRef<HTMLDivElement | null>(null)
5758
const modelBtnRef = useRef(null)
@@ -205,6 +206,15 @@ export const RemixUiRemixAiAssistant = React.forwardRef<
205206
// fetchAssistantChoice()
206207
// }, [props.plugin])
207208

209+
useEffect(() => {
210+
props.plugin.on('theme', 'themeChanged', (theme) => {
211+
setThemeTracker(theme)
212+
})
213+
return () => {
214+
props.plugin.off('theme', 'themeChanged')
215+
}
216+
})
217+
208218
// bubble messages up to parent
209219
useEffect(() => {
210220
props.onMessagesChange?.(messages)

libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
483483
compileIcon.current.classList.remove('remixui_spinningIcon')
484484
compileIcon.current.classList.remove('remixui_bouncingIcon')
485485
if (!state.autoCompile || (state.autoCompile && state.matomoAutocompileOnce)) {
486-
_paq.push(['trackEvent', 'compiler', 'compiled', 'solCompilationFinishedTriggeredByUser'])
486+
// _paq.push(['trackEvent', 'compiler', 'compiled', 'solCompilationFinishedTriggeredByUser'])
487487
_paq.push(['trackEvent', 'compiler', 'compiled', 'with_config_file_' + state.useFileConfiguration])
488488
_paq.push(['trackEvent', 'compiler', 'compiled', 'with_version_' + _retrieveVersion()])
489489
if (state.autoCompile && state.matomoAutocompileOnce) {

0 commit comments

Comments
 (0)