Skip to content

Conversation

@christian-byrne
Copy link
Contributor

@christian-byrne christian-byrne commented Nov 26, 2025

Summary

Adds ability to toggle events on/off by name from dynamic feature flags. Also makes some events disabled by default (not being used for any analysis and taking too much of event quota currently).

Note: telemetry is only enabled on cloud - this doesn't affect local users in any way.

┆Issue is synchronized with this Notion page by Unito

@christian-byrne christian-byrne requested a review from a team as a code owner November 26, 2025 01:15
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Nov 26, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 26, 2025

📝 Walkthrough

Walkthrough

Adds remote-config-driven suppression of telemetry events: RemoteConfig gains an optional telemetry_disabled_events list, and MixpanelTelemetryProvider loads/validates that list, maintains a disabled-events set (reconfiguring on remote-config changes), and skips tracking events present in that set.

Changes

Cohort / File(s) Change Summary
Remote Config Type Updates
src/platform/remoteConfig/types.ts
Adds TelemetryEventName import and extends RemoteConfig with optional telemetry_disabled_events?: TelemetryEventName[].
Telemetry Provider Event Filtering
src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts
Adds dynamic event-disabling: DEFAULT_DISABLED_EVENTS, TELEMETRY_EVENT_SET validator, a private disabledEvents set, configureDisabledEvents and buildEventSet helpers, initialization/config watch to load/update disabled events, and gate in trackEvent to skip disabled events.

Sequence Diagram(s)

sequenceDiagram
    participant RC as Remote Config
    participant MTP as MixpanelTelemetryProvider
    participant MP as Mixpanel

    rect rgb(240,248,255)
    Note over MTP,RC: Initialization / subscription
    MTP->>RC: read telemetry_disabled_events
    MTP->>MTP: buildEventSet(...) → disabledEvents
    RC-->>MTP: subscribe/watch for updates
    end

    rect rgb(245,255,240)
    Note over MTP,MP: Event flow
    MTP->>MTP: trackEvent(event)
    alt event ∈ disabledEvents
        MTP-->>MTP: skip tracking
    else
        MTP->>MP: queue/track event
    end
    end

    rect rgb(255,248,240)
    Note over RC,MTP: Remote config update
    RC->>MTP: notify change
    MTP->>RC: read updated telemetry_disabled_events
    MTP->>MTP: rebuild disabledEvents
    end
Loading
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch cloud/lower-telemetry

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 794d498 and 40cba7b.

📒 Files selected for processing (2)
  • src/platform/remoteConfig/types.ts (2 hunks)
  • src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts (5 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/platform/remoteConfig/types.ts
  • src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: lint-and-format
  • GitHub Check: setup
  • GitHub Check: test
  • GitHub Check: collect

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

github-actions bot commented Nov 26, 2025

🎨 Storybook Build Status

Build completed successfully!

⏰ Completed at: 11/26/2025, 09:06:35 PM UTC

🔗 Links


🎉 Your Storybook is ready for review!

@github-actions
Copy link

github-actions bot commented Nov 26, 2025

🎭 Playwright Test Results

⚠️ Tests passed with flaky tests

⏰ Completed at: 11/26/2025, 09:14:33 PM UTC

📈 Summary

  • Total Tests: 497
  • Passed: 487 ✅
  • Failed: 0
  • Flaky: 1 ⚠️
  • Skipped: 9 ⏭️

📊 Test Reports by Browser

  • chromium: View Report • ✅ 478 / ❌ 0 / ⚠️ 1 / ⏭️ 9
  • chromium-2x: View Report • ✅ 2 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • chromium-0.5x: View Report • ✅ 1 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • mobile-chrome: View Report • ✅ 6 / ❌ 0 / ⚠️ 0 / ⏭️ 0

🎉 Click on the links above to view detailed test results for each browser configuration.

@christian-byrne christian-byrne added needs-backport Fix/change that needs to be cherry-picked to the current feature freeze branch cloud/1.32 labels Nov 26, 2025
@github-actions
Copy link

github-actions bot commented Nov 26, 2025

Bundle Size Report

Summary

  • Raw size: 17 MB baseline 17 MB — 🔴 +2.36 kB
  • Gzip: 3.37 MB baseline 3.36 MB — 🔴 +924 B
  • Brotli: 2.58 MB baseline 2.58 MB — 🔴 +636 B
  • Bundles: 93 current • 93 baseline • 36 added / 36 removed

Category Glance
App Entry Points 🔴 +2.36 kB (3.18 MB) · Vendor & Third-Party ⚪ 0 B (8.56 MB) · Other ⚪ 0 B (3.84 MB) · Graph Workspace ⚪ 0 B (944 kB) · Panels & Settings ⚪ 0 B (298 kB) · UI Components ⚪ 0 B (138 kB) · + 3 more

Per-category breakdown
App Entry Points — 3.18 MB (baseline 3.18 MB) • 🔴 +2.36 kB

Main entry bundles and manifests

File Before After Δ Raw Δ Gzip Δ Brotli
assets/index-CM3wRx8R.js (new) 2.95 MB 🔴 +2.95 MB 🔴 +615 kB 🔴 +467 kB
assets/index-DJ2FXT7z.js (removed) 2.95 MB 🟢 -2.95 MB 🟢 -614 kB 🟢 -467 kB
assets/index-DdltX7c-.js (removed) 227 kB 🟢 -227 kB 🟢 -48.6 kB 🟢 -40 kB
assets/index-J6vsBKQ5.js (new) 227 kB 🔴 +227 kB 🔴 +48.6 kB 🔴 +40 kB
assets/index-CrnSgeIi.js (new) 345 B 🔴 +345 B 🔴 +243 B 🔴 +221 B
assets/index-D_swSi6F.js (removed) 345 B 🟢 -345 B 🟢 -246 B 🟢 -208 B

Status: 3 added / 3 removed

Graph Workspace — 944 kB (baseline 944 kB) • ⚪ 0 B

Graph editor runtime, canvas, workflow orchestration

File Before After Δ Raw Δ Gzip Δ Brotli
assets/GraphView-DkL6ca5A.js (new) 944 kB 🔴 +944 kB 🔴 +183 kB 🔴 +140 kB
assets/GraphView-UEylouU0.js (removed) 944 kB 🟢 -944 kB 🟢 -183 kB 🟢 -140 kB

Status: 1 added / 1 removed

Views & Navigation — 6.54 kB (baseline 6.54 kB) • ⚪ 0 B

Top-level views, pages, and routed surfaces

File Before After Δ Raw Δ Gzip Δ Brotli
assets/UserSelectView-BAaGOpct.js (removed) 6.54 kB 🟢 -6.54 kB 🟢 -2.14 kB 🟢 -1.9 kB
assets/UserSelectView-U64ogSAu.js (new) 6.54 kB 🔴 +6.54 kB 🔴 +2.14 kB 🔴 +1.9 kB

Status: 1 added / 1 removed

Panels & Settings — 298 kB (baseline 298 kB) • ⚪ 0 B

Configuration panels, inspectors, and settings screens

File Before After Δ Raw Δ Gzip Δ Brotli
assets/CreditsPanel-BGjmaYft.js (new) 21.4 kB 🔴 +21.4 kB 🔴 +5.15 kB 🔴 +4.5 kB
assets/CreditsPanel-BN9tRddO.js (removed) 21.4 kB 🟢 -21.4 kB 🟢 -5.15 kB 🟢 -4.5 kB
assets/KeybindingPanel-C5z17hHr.js (new) 13.6 kB 🔴 +13.6 kB 🔴 +3.42 kB 🔴 +3.01 kB
assets/KeybindingPanel-Dt-SH10B.js (removed) 13.6 kB 🟢 -13.6 kB 🟢 -3.42 kB 🟢 -3.01 kB
assets/ExtensionPanel-1dRINK1N.js (removed) 10.4 kB 🟢 -10.4 kB 🟢 -2.48 kB 🟢 -2.17 kB
assets/ExtensionPanel-CG67aVES.js (new) 10.4 kB 🔴 +10.4 kB 🔴 +2.48 kB 🔴 +2.16 kB
assets/AboutPanel-ARlzB3nZ.js (removed) 9.16 kB 🟢 -9.16 kB 🟢 -2.46 kB 🟢 -2.21 kB
assets/AboutPanel-BitHWgN7.js (new) 9.16 kB 🔴 +9.16 kB 🔴 +2.46 kB 🔴 +2.21 kB
assets/ServerConfigPanel-BGnjagu2.js (new) 6.56 kB 🔴 +6.56 kB 🔴 +1.83 kB 🔴 +1.62 kB
assets/ServerConfigPanel-D2kAJgP9.js (removed) 6.56 kB 🟢 -6.56 kB 🟢 -1.83 kB 🟢 -1.62 kB
assets/UserPanel-DO9z_UGS.js (removed) 6.23 kB 🟢 -6.23 kB 🟢 -1.72 kB 🟢 -1.51 kB
assets/UserPanel-fVMFMLKQ.js (new) 6.23 kB 🔴 +6.23 kB 🔴 +1.72 kB 🔴 +1.5 kB
assets/settings-BXTtSH4O.js 33.3 kB 33.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-C9Pzn-NG.js 25.2 kB 25.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-CCy2fA_h.js 27.3 kB 27.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-CQpqEFfl.js 26.6 kB 26.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DHcnxypw.js 21.7 kB 21.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DhFTK9fY.js 25.1 kB 25.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DlT4t_ui.js 25.9 kB 25.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DRgSrIdD.js 24.2 kB 24.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-tjkeqiZq.js 21.1 kB 21.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 6 added / 6 removed

UI Components — 138 kB (baseline 138 kB) • ⚪ 0 B

Reusable component library chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/Load3D.vue_vue_type_script_setup_true_lang-CLCSZwHY.js (new) 53.9 kB 🔴 +53.9 kB 🔴 +8.52 kB 🔴 +7.32 kB
assets/Load3D.vue_vue_type_script_setup_true_lang-t_Rtd4eH.js (removed) 53.9 kB 🟢 -53.9 kB 🟢 -8.52 kB 🟢 -7.31 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-_TotIMTM.js (new) 46.9 kB 🔴 +46.9 kB 🔴 +10.1 kB 🔴 +8.76 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-CD0JvkPh.js (removed) 46.9 kB 🟢 -46.9 kB 🟢 -10.1 kB 🟢 -8.77 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-C2iS5a8x.js (new) 12.8 kB 🔴 +12.8 kB 🔴 +3.35 kB 🔴 +2.96 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-CzaWTqpd.js (removed) 12.8 kB 🟢 -12.8 kB 🟢 -3.36 kB 🟢 -2.97 kB
assets/ComfyQueueButton-CUDA53S9.js (new) 7.73 kB 🔴 +7.73 kB 🔴 +2.2 kB 🔴 +1.95 kB
assets/ComfyQueueButton-DLrGkYNz.js (removed) 7.73 kB 🟢 -7.73 kB 🟢 -2.2 kB 🟢 -1.96 kB
assets/MediaTitle.vue_vue_type_script_setup_true_lang-D2bKwiYb.js (new) 897 B 🔴 +897 B 🔴 +505 B 🔴 +435 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-DrMFsX7y.js (removed) 897 B 🟢 -897 B 🟢 -505 B 🟢 -436 B
assets/LazyImage.vue_vue_type_script_setup_true_lang-DfYZUWfZ.js 10.8 kB 10.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/UserAvatar.vue_vue_type_script_setup_true_lang-lBvEY_Sb.js 1.34 kB 1.34 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetButton-D0RxLHdl.js 2.04 kB 2.04 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-BdcB0N2p.js 2 kB 2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 5 added / 5 removed

Data & Services — 12.5 kB (baseline 12.5 kB) • ⚪ 0 B

Stores, services, APIs, and repositories

File Before After Δ Raw Δ Gzip Δ Brotli
assets/keybindingService--t8bGR6H.js (removed) 7.51 kB 🟢 -7.51 kB 🟢 -1.84 kB 🟢 -1.58 kB
assets/keybindingService-iviyKE5-.js (new) 7.51 kB 🔴 +7.51 kB 🔴 +1.84 kB 🔴 +1.58 kB
assets/audioService-B-200UHc.js (new) 2.2 kB 🔴 +2.2 kB 🔴 +962 B 🔴 +823 B
assets/audioService-BORco6_a.js (removed) 2.2 kB 🟢 -2.2 kB 🟢 -962 B 🟢 -823 B
assets/serverConfigStore-BHFq9bew.js 2.83 kB 2.83 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 2 added / 2 removed

Utilities & Hooks — 2.94 kB (baseline 2.94 kB) • ⚪ 0 B

Helpers, composables, and utility bundles

File Before After Δ Raw Δ Gzip Δ Brotli
assets/audioUtils-BYLEjmY_.js (new) 1.41 kB 🔴 +1.41 kB 🔴 +652 B 🔴 +543 B
assets/audioUtils-coiD4OGN.js (removed) 1.41 kB 🟢 -1.41 kB 🟢 -652 B 🟢 -549 B
assets/mathUtil-CTARWQ-l.js 1.07 kB 1.07 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeFilterUtil-CXKCRJ-m.js 460 B 460 B ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 1 added / 1 removed

Vendor & Third-Party — 8.56 MB (baseline 8.56 MB) • ⚪ 0 B

External libraries and shared vendor chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/vendor-chart--ViqMbDH.js 452 kB 452 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-other-D3dKDPA9.js 3.98 MB 3.98 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-primevue-oJ2MsX9s.js 1.96 MB 1.96 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-three-aR6ntw5X.js 1.37 MB 1.37 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-tiptap-DkSGWC41.js 232 kB 232 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-vue-Dcaw_-2x.js 160 kB 160 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-xterm-BZLod3g9.js 407 kB 407 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
Other — 3.84 MB (baseline 3.84 MB) • ⚪ 0 B

Bundles that do not match a named category

File Before After Δ Raw Δ Gzip Δ Brotli
assets/WidgetRecordAudio-CGsWYl39.js (removed) 20.4 kB 🟢 -20.4 kB 🟢 -5.24 kB 🟢 -4.62 kB
assets/WidgetRecordAudio-CHnrLOvr.js (new) 20.4 kB 🔴 +20.4 kB 🔴 +5.24 kB 🔴 +4.63 kB
assets/AudioPreviewPlayer-CrJbSc-N.js (new) 13.5 kB 🔴 +13.5 kB 🔴 +3.4 kB 🔴 +3.04 kB
assets/AudioPreviewPlayer-DYm1YVgi.js (removed) 13.5 kB 🟢 -13.5 kB 🟢 -3.4 kB 🟢 -3.04 kB
assets/WidgetGalleria-Dl06Ky57.js (removed) 4.1 kB 🟢 -4.1 kB 🟢 -1.45 kB 🟢 -1.3 kB
assets/WidgetGalleria-oHFNenAj.js (new) 4.1 kB 🔴 +4.1 kB 🔴 +1.45 kB 🔴 +1.31 kB
assets/WidgetColorPicker-BR4WjOWP.js (removed) 3.41 kB 🟢 -3.41 kB 🟢 -1.38 kB 🟢 -1.22 kB
assets/WidgetColorPicker-DuqwU0eC.js (new) 3.41 kB 🔴 +3.41 kB 🔴 +1.38 kB 🔴 +1.22 kB
assets/WidgetMarkdown-C5H0bcpb.js (new) 3.1 kB 🔴 +3.1 kB 🔴 +1.29 kB 🔴 +1.13 kB
assets/WidgetMarkdown-DKXjHCZQ.js (removed) 3.1 kB 🟢 -3.1 kB 🟢 -1.29 kB 🟢 -1.13 kB
assets/WidgetAudioUI-CjLdJGes.js (removed) 2.82 kB 🟢 -2.82 kB 🟢 -1.12 kB 🟢 -1.01 kB
assets/WidgetAudioUI-k78Iqydc.js (new) 2.82 kB 🔴 +2.82 kB 🔴 +1.12 kB 🔴 +1.01 kB
assets/WidgetTextarea-B6Lp_mZj.js (new) 2.48 kB 🔴 +2.48 kB 🔴 +1.01 kB 🔴 +888 B
assets/WidgetTextarea-C_89YxlH.js (removed) 2.48 kB 🟢 -2.48 kB 🟢 -1.01 kB 🟢 -889 B
assets/WidgetInputText-BWSmCpjc.js (new) 1.99 kB 🔴 +1.99 kB 🔴 +916 B 🔴 +851 B
assets/WidgetInputText-CHvPbCQ9.js (removed) 1.99 kB 🟢 -1.99 kB 🟢 -916 B 🟢 -843 B
assets/MediaImageBottom--f740vVl.js (new) 1.57 kB 🔴 +1.57 kB 🔴 +737 B 🔴 +649 B
assets/MediaImageBottom-D1XKz7Kb.js (removed) 1.57 kB 🟢 -1.57 kB 🟢 -740 B 🟢 -649 B
assets/MediaAudioBottom-BHE3dID6.js (removed) 1.52 kB 🟢 -1.52 kB 🟢 -741 B 🟢 -655 B
assets/MediaAudioBottom-DfzEzZ81.js (new) 1.52 kB 🔴 +1.52 kB 🔴 +740 B 🔴 +656 B
assets/MediaVideoBottom-B0L_gsnF.js (new) 1.52 kB 🔴 +1.52 kB 🔴 +739 B 🔴 +653 B
assets/MediaVideoBottom-jrNGAz48.js (removed) 1.52 kB 🟢 -1.52 kB 🟢 -740 B 🟢 -654 B
assets/Media3DBottom-B1nNud0M.js (new) 1.5 kB 🔴 +1.5 kB 🔴 +731 B 🔴 +652 B
assets/Media3DBottom-DjeOFP6U.js (removed) 1.5 kB 🟢 -1.5 kB 🟢 -732 B 🟢 -650 B
assets/Media3DTop-BYdNL2Ip.js (new) 1.49 kB 🔴 +1.49 kB 🔴 +765 B 🔴 +653 B
assets/Media3DTop-DYWFsgkY.js (removed) 1.49 kB 🟢 -1.49 kB 🟢 -766 B 🟢 -653 B
assets/WidgetSelect-CADI8HK5.js (new) 655 B 🔴 +655 B 🔴 +342 B 🔴 +289 B
assets/WidgetSelect-Cc3qFNHs.js (removed) 655 B 🟢 -655 B 🟢 -343 B 🟢 -289 B
assets/WidgetInputNumber-CNM7KUHA.js (new) 595 B 🔴 +595 B 🔴 +331 B 🔴 +278 B
assets/WidgetInputNumber-Qb0R9Gmh.js (removed) 595 B 🟢 -595 B 🟢 -331 B 🟢 -277 B
assets/Load3D-BkzeEXGl.js (new) 424 B 🔴 +424 B 🔴 +267 B 🔴 +223 B
assets/Load3D-w64bzSjj.js (removed) 424 B 🟢 -424 B 🟢 -267 B 🟢 -226 B
assets/WidgetLegacy-CiNZPDEg.js (removed) 364 B 🟢 -364 B 🟢 -238 B 🟢 -192 B
assets/WidgetLegacy-DsepKb5m.js (new) 364 B 🔴 +364 B 🔴 +236 B 🔴 +192 B
assets/commands-_s-RvhJR.js 13.6 kB 13.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-BuUILW6P.js 13 kB 13 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-BV4R6fLx.js 14.9 kB 14.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CLwPdnT6.js 14.2 kB 14.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CWMchBmd.js 15.9 kB 15.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DazTQhtc.js 12.9 kB 12.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DmWrOe93.js 13.7 kB 13.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DwiH7Kr6.js 13.8 kB 13.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-mS3LCNPn.js 14.5 kB 14.5 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-5lOBdqcC.js 84.5 kB 84.5 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-BOCuaVpE.js 73.4 kB 73.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-ClrEFGUz.js 72.4 kB 72.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-CyNU0iQX.js 99.3 kB 99.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-D7gwLxft.js 114 kB 114 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-DC8o4BCt.js 86.8 kB 86.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-DKiesCV4.js 94.3 kB 94.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Hq2q-OtB.js 83.6 kB 83.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-USAlAlnj.js 82 kB 82 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaAudioTop-DqRKCSyG.js 1.46 kB 1.46 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaImageTop-B_ZBEjC1.js 1.75 kB 1.75 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaVideoTop-BFDrQq-5.js 2.76 kB 2.76 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-_Px5dSNW.js 306 kB 306 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-7z21KPoS.js 285 kB 285 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-BWKZzBPK.js 346 kB 346 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CGbgH4Yl.js 320 kB 320 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CjjjdWkV.js 313 kB 313 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CVrNtxvj.js 288 kB 288 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-DLRSA0IK.js 309 kB 309 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-DQV2gnwA.js 372 kB 372 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-ofqLG5vz.js 310 kB 310 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetChart-B2-gppzM.js 2.48 kB 2.48 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetImageCompare-BOXn8KLW.js 2.21 kB 2.21 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/widgetPropFilter-BIbGSUAt.js 1.28 kB 1.28 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetToggleSwitch-C_oC_TUM.js 1.58 kB 1.58 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 17 added / 17 removed

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts (1)

140-152: Queued events bypass the disabled check.

Events queued before Mixpanel initializes (or before remote config loads) will be tracked in flushEventQueue without checking disabledEvents. If an event becomes disabled via remote config after being queued but before flush, it will still be sent.

Consider filtering disabled events during flush:

 private flushEventQueue(): void {
   if (!this.isInitialized || !this.mixpanel) {
     return
   }

   while (this.eventQueue.length > 0) {
     const event = this.eventQueue.shift()!
+    if (this.disabledEvents.has(event.eventName)) {
+      continue
+    }
     try {
       this.mixpanel.track(event.eventName, event.properties || {})
     } catch (error) {
       console.error('Failed to track queued event:', error)
     }
   }
 }
🧹 Nitpick comments (2)
src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts (2)

189-197: Consider a more idiomatic implementation.

The buildEventSet method can be simplified using filter for better readability.

 private buildEventSet(values: TelemetryEventName[]): Set<TelemetryEventName> {
-  const normalized = new Set<TelemetryEventName>()
-  values.forEach((value) => {
-    if (TELEMETRY_EVENT_SET.has(value)) {
-      normalized.add(value)
-    }
-  })
-  return normalized
+  return new Set(values.filter((value) => TELEMETRY_EVENT_SET.has(value)))
 }

182-187: Silent filtering of invalid event names may complicate debugging.

When buildEventSet filters out invalid event names from remote config, there's no logging to indicate that an unrecognized event name was provided. This could make misconfiguration harder to diagnose.

Consider adding a dev-only warning:

 private buildEventSet(values: TelemetryEventName[]): Set<TelemetryEventName> {
-  const normalized = new Set<TelemetryEventName>()
-  values.forEach((value) => {
-    if (TELEMETRY_EVENT_SET.has(value)) {
-      normalized.add(value)
+  return new Set(
+    values.filter((value) => {
+      const isValid = TELEMETRY_EVENT_SET.has(value)
+      if (!isValid && import.meta.env.DEV) {
+        console.warn(`Unknown telemetry event name in disabled list: ${value}`)
+      }
+      return isValid
+    })
+  )
-    }
-  })
-  return normalized
 }
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5ff3a0e and 794d498.

📒 Files selected for processing (2)
  • src/platform/remoteConfig/types.ts (2 hunks)
  • src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts (5 hunks)
🧰 Additional context used
📓 Path-based instructions (11)
**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (.cursorrules)

**/*.{vue,ts,tsx}: Leverage VueUse functions for performance-enhancing utilities
Use vue-i18n in Composition API for any string literals and place new translation entries in src/locales/en/main.json

Files:

  • src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts
  • src/platform/remoteConfig/types.ts
**/*.{ts,tsx,js}

📄 CodeRabbit inference engine (.cursorrules)

Use es-toolkit for utility functions

Files:

  • src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts
  • src/platform/remoteConfig/types.ts
**/*.{ts,tsx}

📄 CodeRabbit inference engine (.cursorrules)

Use TypeScript for type safety

**/*.{ts,tsx}: Never use any type - use proper TypeScript types
Never use as any type assertions - fix the underlying type issue

Files:

  • src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts
  • src/platform/remoteConfig/types.ts
**/*.{ts,tsx,js,vue}

📄 CodeRabbit inference engine (.cursorrules)

Implement proper error handling in components and services

**/*.{ts,tsx,js,vue}: Use 2-space indentation, single quotes, no semicolons, and maintain 80-character line width as configured in .prettierrc
Organize imports by sorting and grouping by plugin, and run pnpm format before committing

Files:

  • src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts
  • src/platform/remoteConfig/types.ts
src/**/*.{vue,ts}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/**/*.{vue,ts}: Leverage VueUse functions for performance-enhancing styles
Implement proper error handling
Use vue-i18n in composition API for any string literals. Place new translation entries in src/locales/en/main.json

Files:

  • src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts
  • src/platform/remoteConfig/types.ts
src/**/*.ts

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/**/*.ts: Use es-toolkit for utility functions
Use TypeScript for type safety

Files:

  • src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts
  • src/platform/remoteConfig/types.ts
**/*.{ts,tsx,js,jsx,vue}

📄 CodeRabbit inference engine (CLAUDE.md)

Use camelCase for variable and setting names in TypeScript/Vue files

Files:

  • src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts
  • src/platform/remoteConfig/types.ts
**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx,vue}: Use const settingStore = useSettingStore() and settingStore.get('Comfy.SomeSetting') to retrieve settings in TypeScript/Vue files
Use await settingStore.set('Comfy.SomeSetting', newValue) to update settings in TypeScript/Vue files
Check server capabilities using api.serverSupportsFeature('feature_name') before using enhanced features
Use api.getServerFeature('config_name', defaultValue) to retrieve server feature configuration

Enforce ESLint rules for Vue + TypeScript including: no floating promises, no unused imports, and i18n raw text restrictions in templates

Files:

  • src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts
  • src/platform/remoteConfig/types.ts
**/*.ts

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.ts: Define dynamic setting defaults using runtime context with functions in settings configuration
Use defaultsByInstallVersion property for gradual feature rollout based on version in settings configuration

Files:

  • src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts
  • src/platform/remoteConfig/types.ts
src/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

src/**/*.{ts,tsx,vue}: Sanitize HTML with DOMPurify to prevent XSS attacks
Avoid using @ts-expect-error; use proper TypeScript types instead
Use es-toolkit for utility functions instead of other utility libraries
Implement proper TypeScript types throughout the codebase

Files:

  • src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts
  • src/platform/remoteConfig/types.ts
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts
  • src/platform/remoteConfig/types.ts
🧠 Learnings (6)
📚 Learning: 2025-11-24T19:46:52.279Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .cursorrules:0-0
Timestamp: 2025-11-24T19:46:52.279Z
Learning: Applies to **/*.vue : Use watch and watchEffect for side effects in Vue 3

Applied to files:

  • src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts
📚 Learning: 2025-11-24T19:46:52.279Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .cursorrules:0-0
Timestamp: 2025-11-24T19:46:52.279Z
Learning: Applies to **/*.{vue,ts,tsx} : Leverage VueUse functions for performance-enhancing utilities

Applied to files:

  • src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts
📚 Learning: 2025-11-24T19:47:02.860Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T19:47:02.860Z
Learning: Applies to src/**/*.vue : Use watch and watchEffect for side effects

Applied to files:

  • src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.{vue,ts,js} : Use useIntersectionObserver for visibility detection instead of custom scroll handlers

Applied to files:

  • src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.{vue,ts,js} : Use existing VueUse composables (such as useElementHover) instead of manually managing event listeners

Applied to files:

  • src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts
📚 Learning: 2025-11-24T19:47:02.860Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T19:47:02.860Z
Learning: Applies to src/**/*.{vue,ts} : Leverage VueUse functions for performance-enhancing styles

Applied to files:

  • src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts
🧬 Code graph analysis (1)
src/platform/remoteConfig/types.ts (1)
src/platform/telemetry/types.ts (1)
  • TelemetryEventName (404-405)
🪛 ESLint
src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts

[error] 2-2: Unable to resolve path to module 'vue'.

(import-x/no-unresolved)


[error] 45-45: Unable to resolve path to module '@/platform/remoteConfig/remoteConfig'.

(import-x/no-unresolved)


[error] 47-47: Unable to resolve path to module '../../types'.

(import-x/no-unresolved)


[error] 48-48: Unable to resolve path to module '../../utils/surveyNormalization'.

(import-x/no-unresolved)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: deploy-and-comment
  • GitHub Check: test
  • GitHub Check: setup
  • GitHub Check: lint-and-format
  • GitHub Check: collect
🔇 Additional comments (3)
src/platform/remoteConfig/types.ts (1)

36-36: LGTM!

The new optional property correctly types the disabled events list using TelemetryEventName[], enabling type-safe configuration of disabled telemetry events.

src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts (2)

50-67: LGTM!

Good approach defining defaults and a validation set. The TELEMETRY_EVENT_SET enables O(1) validation of event names from remote config, preventing invalid event names from being added to the disabled set.


163-165: LGTM!

Clean early return pattern for disabled events. This prevents both immediate tracking and queuing of disabled events.

DrJKL
DrJKL previously approved these changes Nov 26, 2025
@christian-byrne christian-byrne merged commit 8b2c1fc into main Nov 26, 2025
27 checks passed
@christian-byrne christian-byrne deleted the cloud/lower-telemetry branch November 26, 2025 21:20
github-actions bot pushed a commit that referenced this pull request Nov 26, 2025
## Summary

Adds ability to toggle events on/off by name from dynamic feature flags.
Also makes some events disabled by default (not being used for any
analysis and taking too much of event quota currently).

Note: telemetry is only enabled on cloud - this doesn't affect local
users in any way.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-6946-allow-telemetry-events-to-be-disabled-by-name-in-feature-flags-2b76d73d365081ea8676cfbb8217e640)
by [Unito](https://www.unito.io)
@comfy-pr-bot
Copy link
Member

@christian-byrne Successfully backported to #6964

@github-actions github-actions bot removed the needs-backport Fix/change that needs to be cherry-picked to the current feature freeze branch label Nov 26, 2025
christian-byrne added a commit that referenced this pull request Nov 26, 2025
…n feature flags (#6964)

Backport of #6946 to `cloud/1.32`

Automatically created by backport workflow.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-6964-backport-cloud-1-32-allow-telemetry-events-to-be-disabled-by-name-in-feature-flags-2b76d73d36508116b888ecbf19a8a52c)
by [Unito](https://www.unito.io)

Co-authored-by: Christian Byrne <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:cloud size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants