Skip to content

Conversation

@christian-byrne
Copy link
Contributor

@christian-byrne christian-byrne commented Dec 12, 2025

Summary

The survey is causing some friction. It incurs about 5-10% dropoff. Although that number is actually somewhat slow, the information has mostly served its purpose for now. We can toggle it freely once this PR is merged.

┆Issue is synchronized with this Notion page by Unito

@christian-byrne christian-byrne requested a review from a team as a code owner December 12, 2025 07:52
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Dec 12, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 12, 2025

📝 Walkthrough

Walkthrough

Adds an onboarding survey feature flag (ONBOARDING_SURVEY_ENABLED) with remoteConfig support and gates the cloud onboarding flow and survey components to conditionally skip or redirect when the flag is disabled.

Changes

Cohort / File(s) Summary
Feature flag infra
src/composables/useFeatureFlags.ts, src/platform/remoteConfig/types.ts
Adds ONBOARDING_SURVEY_ENABLED to ServerFeatureFlag; exposes onboardingSurveyEnabled getter in useFeatureFlags() that prefers remoteConfig.onboarding_survey_enabled and falls back to the server flag (default true). Adds optional onboarding_survey_enabled?: boolean to RemoteConfig.
Cloud onboarding views
src/platform/cloud/onboarding/CloudSurveyView.vue, src/platform/cloud/onboarding/UserCheckView.vue
Views now read onboardingSurveyEnabled. Both perform early redirects/guards when the flag is false; survey routing and completion redirects are conditional on the flag. Submission path in CloudSurveyView guards against disabled flag.
Routing
src/router.ts
Imports useFeatureFlags and conditions onboarding/survey routing and error handling on onboardingSurveyEnabled, skipping or redirecting the onboarding survey flow when disabled.

Sequence Diagram

sequenceDiagram
    participant Router
    participant FeatureFlags as useFeatureFlags
    participant UserCheckView
    participant CloudSurveyView
    participant User

    Router->>FeatureFlags: request onboardingSurveyEnabled
    FeatureFlags-->>Router: return flag (remoteConfig or server)

    alt Flag Disabled
        Router->>User: redirect / (skip survey)
    else Flag Enabled
        Router->>UserCheckView: route to user-check
        UserCheckView->>FeatureFlags: request onboardingSurveyEnabled
        FeatureFlags-->>UserCheckView: return flag
        alt Survey required
            UserCheckView->>CloudSurveyView: route to survey
            CloudSurveyView->>FeatureFlags: verify onboardingSurveyEnabled on mount
            FeatureFlags-->>CloudSurveyView: return flag
            CloudSurveyView->>User: render survey
            User->>CloudSurveyView: submit survey
            CloudSurveyView->>Router: redirect to cloud-user-check
        else Survey skipped
            UserCheckView->>Router: continue onboarding (skip survey)
        end
    end
Loading

Possibly related PRs

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch cloud-remove-survey

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 620c55b and 44067bb.

📒 Files selected for processing (1)
  • src/platform/cloud/onboarding/CloudSurveyView.vue (3 hunks)
🧰 Additional context used
📓 Path-based instructions (7)
src/**/*.vue

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

src/**/*.vue: Use the Vue 3 Composition API instead of the Options API when writing Vue components (exception: when overriding or extending PrimeVue components for compatibility)
Use setup() function for component logic
Utilize ref and reactive for reactive state
Implement computed properties with computed()
Use watch and watchEffect for side effects
Implement lifecycle hooks with onMounted, onUpdated, etc.
Utilize provide/inject for dependency injection
Use vue 3.5 style of default prop declaration
Use Tailwind CSS for styling
Implement proper props and emits definitions
Utilize Vue 3's Teleport component when needed
Use Suspense for async components
Follow Vue 3 style guide and naming conventions

Files:

  • src/platform/cloud/onboarding/CloudSurveyView.vue
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/cloud/onboarding/CloudSurveyView.vue
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/cloud/onboarding/CloudSurveyView.vue
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/platform/cloud/onboarding/CloudSurveyView.vue
**/*.vue

📄 CodeRabbit inference engine (AGENTS.md)

**/*.vue: Use Vue 3 SFCs (Single File Components) with Composition API only; do not use Options API
Vue components must use <script setup lang="ts"> for component logic
Use Vue 3.5 TypeScript style for default prop declaration with reactive props destructuring; do not use withDefaults or runtime props declaration
Prefer useModel to separately defining a prop and emit
Use Tailwind 4 utility classes for styling; avoid using <style> blocks in Vue components
Use semantic Tailwind values from style.css theme instead of the dark: variant; for example, use bg-node-component-surface instead of dark: prefixes
Always use cn() utility from @/utils/tailwindUtil to merge Tailwind class names; do not use :class="[]" syntax
Use ref for reactive state in Vue Composition API components
Implement computed properties with computed() from Vue; avoid using a ref with a watch if a computed would work instead
Use watch and watchEffect for side effects in Vue components
Implement lifecycle hooks using onMounted, onUpdated, and other Vue lifecycle functions
Use provide/inject for dependency injection; do not use dependency injection if a Store or shared composable would be simpler
Do not import Vue macros unnecessarily; only use when needed
Be judicious with addition of new refs or other state: prefer props, avoid redundant computed, and prefer computed over watch
Use VueUse functions for performance-enhancing styles
In Vue Components, implement proper props and emits definitions
Utilize Vue 3's Teleport component when needed
Use Suspense for async components
Implement proper error handling in Vue components
Follow Vue 3 style guide and naming conventions
Use vue-i18n in composition API for any string literals; place new translation entries in src/locales/en/main.json
Avoid new usage of PrimeVue components; prefer shadcn/vue or Reka UI instead

Files:

  • src/platform/cloud/onboarding/CloudSurveyView.vue
**/*.{ts,tsx,js,jsx,vue,json}

📄 CodeRabbit inference engine (AGENTS.md)

Code style: Use 2-space indentation, single quotes, no trailing semicolons, and 80-character line width (see .prettierrc)

Files:

  • src/platform/cloud/onboarding/CloudSurveyView.vue
**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{ts,tsx,vue}: Imports must be sorted and grouped by plugin; run pnpm format before committing
Use TypeScript for type safety; never use any type - use proper TypeScript types
Never use as any type assertions; fix the underlying type issue instead
Use es-toolkit for utility functions
Write code that is expressive and self-documenting; avoid comments unless absolutely necessary; do not add or retain redundant comments
Keep functions short and functional
Minimize nesting in code (e.g., deeply nested if or for statements); apply the Arrow Anti-Pattern principle
Avoid mutable state; prefer immutability and assignment at point of declaration
Favor pure functions, especially testable ones

Files:

  • src/platform/cloud/onboarding/CloudSurveyView.vue
🧠 Learnings (7)
📚 Learning: 2025-11-24T19:47:34.324Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:34.324Z
Learning: Applies to src/**/{components,composables}/**/*.{ts,tsx,vue} : Use vue-i18n for ALL user-facing strings by adding them to `src/locales/en/main.json`

Applied to files:

  • src/platform/cloud/onboarding/CloudSurveyView.vue
📚 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} : Use vue-i18n in composition API for any string literals. Place new translation entries in src/locales/en/main.json

Applied to files:

  • src/platform/cloud/onboarding/CloudSurveyView.vue
📚 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 vue-i18n for ALL UI strings

Applied to files:

  • src/platform/cloud/onboarding/CloudSurveyView.vue
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Use vue-i18n in composition API for any string literals; place new translation entries in `src/locales/en/main.json`

Applied to files:

  • src/platform/cloud/onboarding/CloudSurveyView.vue
📚 Learning: 2025-12-09T03:49:52.828Z
Learnt from: christian-byrne
Repo: Comfy-Org/ComfyUI_frontend PR: 6300
File: src/platform/updates/components/WhatsNewPopup.vue:5-13
Timestamp: 2025-12-09T03:49:52.828Z
Learning: In Vue files across the ComfyUI_frontend repo, when a button is needed, prefer the repo's common button components from src/components/button/ (IconButton.vue, TextButton.vue, IconTextButton.vue) over plain HTML <button> elements. These components wrap PrimeVue with the project’s design system styling. Use only the common button components for consistency and theming, and import them from src/components/button/ as needed.

Applied to files:

  • src/platform/cloud/onboarding/CloudSurveyView.vue
📚 Learning: 2025-12-09T21:40:12.361Z
Learnt from: benceruleanlu
Repo: Comfy-Org/ComfyUI_frontend PR: 7297
File: src/components/actionbar/ComfyActionbar.vue:33-43
Timestamp: 2025-12-09T21:40:12.361Z
Learning: In Vue single-file components, allow inline Tailwind CSS class strings for static classes and avoid extracting them into computed properties solely for readability. Prefer keeping static class names inline for simplicity and performance. For dynamic or conditional classes, use Vue bindings (e.g., :class) to compose classes.

Applies to all Vue files in the repository (e.g., src/**/*.vue) where Tailwind utilities are used for static styling.

Applied to files:

  • src/platform/cloud/onboarding/CloudSurveyView.vue
📚 Learning: 2025-12-11T12:25:15.470Z
Learnt from: christian-byrne
Repo: Comfy-Org/ComfyUI_frontend PR: 7358
File: src/components/dialog/content/signin/SignUpForm.vue:45-54
Timestamp: 2025-12-11T12:25:15.470Z
Learning: This repository uses CI automation to format code (pnpm format). Do not include manual formatting suggestions in code reviews for Comfy-Org/ComfyUI_frontend. If formatting issues are detected, rely on the CI formatter or re-run pnpm format. Focus reviews on correctness, readability, performance, accessibility, and maintainability rather than style formatting.

Applied to files:

  • src/platform/cloud/onboarding/CloudSurveyView.vue
⏰ 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 (2)
src/platform/cloud/onboarding/CloudSurveyView.vue (2)

242-257: Good: early mount redirect + “completed” now returns to onboarding flow.

This correctly avoids the status fetch/telemetry when the survey is disabled, and the “already completed” redirect now aligns with resuming the onboarding flow.


228-240: No issues found. The flags.onboardingSurveyEnabled getter has a two-tier fallback system that ensures it always returns a boolean value: it first tries remoteConfig.value.onboarding_survey_enabled, and if undefined, falls back to api.getServerFeature(ServerFeatureFlag.ONBOARDING_SURVEY_ENABLED, true). Additionally, loadRemoteConfig() is awaited in main.ts before the Vue app initializes, so remoteConfig is fully populated before any components mount. The computed property in CloudSurveyView.vue correctly does not use null coalescing, as the underlying getter guarantees a boolean value.


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

@github-actions
Copy link

github-actions bot commented Dec 12, 2025

🎨 Storybook Build Status

Build completed successfully!

⏰ Completed at: 12/12/2025, 08:32:12 AM UTC

🔗 Links


🎉 Your Storybook is ready for review!

@github-actions
Copy link

github-actions bot commented Dec 12, 2025

🎭 Playwright Test Results

⚠️ Tests passed with flaky tests

⏰ Completed at: 12/12/2025, 08:40:59 AM UTC

📈 Summary

  • Total Tests: 502
  • Passed: 492 ✅
  • Failed: 0
  • Flaky: 1 ⚠️
  • Skipped: 9 ⏭️

📊 Test Reports by Browser

  • chromium: View Report • ✅ 483 / ❌ 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.

@github-actions
Copy link

github-actions bot commented Dec 12, 2025

Bundle Size Report

Summary

  • Raw size: 17.1 MB baseline 17.1 MB — 🔴 +149 B
  • Gzip: 3.39 MB baseline 3.39 MB — 🔴 +368 B
  • Brotli: 2.6 MB baseline 2.6 MB — 🔴 +135 B
  • Bundles: 97 current • 97 baseline • 52 added / 52 removed

Category Glance
App Entry Points 🔴 +161 B (3.24 MB) · Vendor & Third-Party 🟢 -12 B (8.56 MB) · Other ⚪ 0 B (3.81 MB) · Graph Workspace ⚪ 0 B (983 kB) · Panels & Settings ⚪ 0 B (298 kB) · UI Components ⚪ 0 B (178 kB) · + 3 more

Per-category breakdown
App Entry Points — 3.24 MB (baseline 3.24 MB) • 🔴 +161 B

Main entry bundles and manifests

File Before After Δ Raw Δ Gzip Δ Brotli
assets/index-CgxuoHUG.js (new) 3.01 MB 🔴 +3.01 MB 🔴 +626 kB 🔴 +477 kB
assets/index-bvsXVGG2.js (removed) 3.01 MB 🟢 -3.01 MB 🟢 -626 kB 🟢 -476 kB
assets/index-By3CN5mW.js (new) 224 kB 🔴 +224 kB 🔴 +47.8 kB 🔴 +39.5 kB
assets/index-Dvw-6N5K.js (removed) 224 kB 🟢 -224 kB 🟢 -47.8 kB 🟢 -39.4 kB
assets/index-B7zOuBh9.js (new) 345 B 🔴 +345 B 🔴 +244 B 🔴 +201 B
assets/index-BkSUtymg.js (removed) 345 B 🟢 -345 B 🟢 -245 B 🟢 -235 B

Status: 3 added / 3 removed

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

Graph editor runtime, canvas, workflow orchestration

File Before After Δ Raw Δ Gzip Δ Brotli
assets/GraphView-CVhD5fZR.js (new) 983 kB 🔴 +983 kB 🔴 +190 kB 🔴 +145 kB
assets/GraphView-Dbsw2rhu.js (removed) 983 kB 🟢 -983 kB 🟢 -190 kB 🟢 -145 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-CZeTB4ls.js (removed) 6.54 kB 🟢 -6.54 kB 🟢 -2.14 kB 🟢 -1.89 kB
assets/UserSelectView-DNW1Ppp_.js (new) 6.54 kB 🔴 +6.54 kB 🔴 +2.14 kB 🔴 +1.89 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/LegacyCreditsPanel-D4TJaNzp.js (new) 21.4 kB 🔴 +21.4 kB 🔴 +5.16 kB 🔴 +4.5 kB
assets/LegacyCreditsPanel-Lev5aC5K.js (removed) 21.4 kB 🟢 -21.4 kB 🟢 -5.15 kB 🟢 -4.5 kB
assets/KeybindingPanel-BKwQxScw.js (removed) 13.6 kB 🟢 -13.6 kB 🟢 -3.42 kB 🟢 -3.01 kB
assets/KeybindingPanel-EEuKqYSG.js (new) 13.6 kB 🔴 +13.6 kB 🔴 +3.42 kB 🔴 +3.01 kB
assets/ExtensionPanel-BDHfVi0W.js (removed) 10.8 kB 🟢 -10.8 kB 🟢 -2.57 kB 🟢 -2.26 kB
assets/ExtensionPanel-BTA6nFJ0.js (new) 10.8 kB 🔴 +10.8 kB 🔴 +2.58 kB 🔴 +2.26 kB
assets/AboutPanel-BMXtJ2i_.js (new) 9.16 kB 🔴 +9.16 kB 🔴 +2.46 kB 🔴 +2.21 kB
assets/AboutPanel-DbG3Z_KH.js (removed) 9.16 kB 🟢 -9.16 kB 🟢 -2.46 kB 🟢 -2.21 kB
assets/ServerConfigPanel-P582cog3.js (removed) 6.56 kB 🟢 -6.56 kB 🟢 -1.83 kB 🟢 -1.63 kB
assets/ServerConfigPanel-WyNEkEgo.js (new) 6.56 kB 🔴 +6.56 kB 🔴 +1.83 kB 🔴 +1.63 kB
assets/UserPanel-Dg0o8MD0.js (new) 6.23 kB 🔴 +6.23 kB 🔴 +1.72 kB 🔴 +1.51 kB
assets/UserPanel-Nbjpmn8o.js (removed) 6.23 kB 🟢 -6.23 kB 🟢 -1.72 kB 🟢 -1.5 kB
assets/settings-B_sqawkt.js 27.3 kB 27.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-BhbWhsRg.js 101 B 101 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-BlDXT7wp.js 21.7 kB 21.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-Bz8HAvJu.js 21.1 kB 21.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-C2vW8UNv.js 24.2 kB 24.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-C9vsDM17.js 25.1 kB 25.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DWD49kQp.js 33.3 kB 33.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DZE27_Iz.js 25.9 kB 25.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-OXaZPcZF.js 26.6 kB 26.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-RbkKsnDG.js 25.2 kB 25.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 6 added / 6 removed

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

Reusable component library chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/Load3D.vue_vue_type_script_setup_true_lang-D4aPEApC.js (removed) 53.7 kB 🟢 -53.7 kB 🟢 -8.49 kB 🟢 -7.28 kB
assets/Load3D.vue_vue_type_script_setup_true_lang-DK6sW9_k.js (new) 53.7 kB 🔴 +53.7 kB 🔴 +8.49 kB 🔴 +7.29 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-BBGkeMqt.js (removed) 48.1 kB 🟢 -48.1 kB 🟢 -10.4 kB 🟢 -8.98 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-DRXo8GfG.js (new) 48.1 kB 🔴 +48.1 kB 🔴 +10.4 kB 🔴 +9.01 kB
assets/LazyImage.vue_vue_type_script_setup_true_lang-B-SuVtBS.js (new) 48 kB 🔴 +48 kB 🔴 +10.6 kB 🔴 +9.32 kB
assets/LazyImage.vue_vue_type_script_setup_true_lang-CUDMgzf2.js (removed) 48 kB 🟢 -48 kB 🟢 -10.6 kB 🟢 -9.32 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-Cwcrq95n.js (removed) 12.9 kB 🟢 -12.9 kB 🟢 -3.37 kB 🟢 -2.99 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-D0Oenlzu.js (new) 12.9 kB 🔴 +12.9 kB 🔴 +3.37 kB 🔴 +2.96 kB
assets/ComfyQueueButton-DBtg_8b7.js (new) 8.44 kB 🔴 +8.44 kB 🔴 +2.48 kB 🔴 +2.21 kB
assets/ComfyQueueButton-DFPsVgk0.js (removed) 8.44 kB 🟢 -8.44 kB 🟢 -2.48 kB 🟢 -2.21 kB
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-B9MdqRzQ.js (new) 2.15 kB 🔴 +2.15 kB 🔴 +898 B 🔴 +768 B
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-DDzyVIz1.js (removed) 2.15 kB 🟢 -2.15 kB 🟢 -895 B 🟢 -773 B
assets/WidgetButton-Bm2lwPFd.js (new) 2.04 kB 🔴 +2.04 kB 🔴 +927 B 🔴 +811 B
assets/WidgetButton-CMNwFzv0.js (removed) 2.04 kB 🟢 -2.04 kB 🟢 -929 B 🟢 -828 B
assets/UserAvatar.vue_vue_type_script_setup_true_lang-Bjfb_hoW.js (new) 1.34 kB 🔴 +1.34 kB 🔴 +687 B 🔴 +596 B
assets/UserAvatar.vue_vue_type_script_setup_true_lang-HWlLovsu.js (removed) 1.34 kB 🟢 -1.34 kB 🟢 -685 B 🟢 -593 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-B1xHMV-K.js (removed) 897 B 🟢 -897 B 🟢 -501 B 🟢 -471 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-CUjBDkks.js (new) 897 B 🔴 +897 B 🔴 +502 B 🔴 +435 B

Status: 9 added / 9 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-Bw1AQiCn.js (new) 7.51 kB 🔴 +7.51 kB 🔴 +1.83 kB 🔴 +1.58 kB
assets/keybindingService-C5idP_cI.js (removed) 7.51 kB 🟢 -7.51 kB 🟢 -1.83 kB 🟢 -1.58 kB
assets/serverConfigStore-bHPLOH2-.js (removed) 2.83 kB 🟢 -2.83 kB 🟢 -907 B 🟢 -789 B
assets/serverConfigStore-BP9UaJXd.js (new) 2.83 kB 🔴 +2.83 kB 🔴 +909 B 🔴 +789 B
assets/audioService-BBhemm20.js (new) 2.2 kB 🔴 +2.2 kB 🔴 +961 B 🔴 +829 B
assets/audioService-DxAw2-Vz.js (removed) 2.2 kB 🟢 -2.2 kB 🟢 -958 B 🟢 -821 B

Status: 3 added / 3 removed

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

Helpers, composables, and utility bundles

File Before After Δ Raw Δ Gzip Δ Brotli
assets/audioUtils-ByZ3wVeW.js (removed) 1.41 kB 🟢 -1.41 kB 🟢 -653 B 🟢 -543 B
assets/audioUtils-Dv1o6kgP.js (new) 1.41 kB 🔴 +1.41 kB 🔴 +650 B 🔴 +549 B
assets/mathUtil-CD4DsosH.js 1.32 kB 1.32 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) • 🟢 -12 B

External libraries and shared vendor chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/vendor-other-Deurr33o.js (removed) 3.98 MB 🟢 -3.98 MB 🟢 -843 kB 🟢 -674 kB
assets/vendor-other-BzuNIfYH.js (new) 3.98 MB 🔴 +3.98 MB 🔴 +843 kB 🔴 +673 kB
assets/vendor-primevue-CmhMHYBF.js (new) 1.96 MB 🔴 +1.96 MB 🔴 +335 kB 🔴 +202 kB
assets/vendor-primevue-DO99B366.js (removed) 1.96 MB 🟢 -1.96 MB 🟢 -335 kB 🟢 -202 kB
assets/vendor-chart-VUOgEeCi.js (removed) 452 kB 🟢 -452 kB 🟢 -99.1 kB 🟢 -81 kB
assets/vendor-chart-W_3Knk2t.js (new) 452 kB 🔴 +452 kB 🔴 +99.1 kB 🔴 +81 kB
assets/vendor-tiptap-DCLYW5rb.js (new) 232 kB 🔴 +232 kB 🔴 +45.7 kB 🔴 +37.7 kB
assets/vendor-tiptap-jlp9Zr6M.js (removed) 232 kB 🟢 -232 kB 🟢 -45.7 kB 🟢 -37.7 kB
assets/vendor-vue-C3MDzIsc.js (new) 160 kB 🔴 +160 kB 🔴 +37.3 kB 🔴 +31.6 kB
assets/vendor-vue-DQYuPKbl.js (removed) 160 kB 🟢 -160 kB 🟢 -37.3 kB 🟢 -31.6 kB
assets/vendor-three-aR6ntw5X.js 1.37 MB 1.37 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-xterm-BZLod3g9.js 407 kB 407 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 5 added / 5 removed

Other — 3.81 MB (baseline 3.81 MB) • ⚪ 0 B

Bundles that do not match a named category

File Before After Δ Raw Δ Gzip Δ Brotli
assets/WidgetRecordAudio--dgkUbDu.js (removed) 20.4 kB 🟢 -20.4 kB 🟢 -5.23 kB 🟢 -4.63 kB
assets/WidgetRecordAudio-kVtLWJMd.js (new) 20.4 kB 🔴 +20.4 kB 🔴 +5.23 kB 🔴 +4.63 kB
assets/AudioPreviewPlayer-67Mn3GHS.js (new) 13.4 kB 🔴 +13.4 kB 🔴 +3.37 kB 🔴 +3.01 kB
assets/AudioPreviewPlayer-7OiO2JyT.js (removed) 13.4 kB 🟢 -13.4 kB 🟢 -3.37 kB 🟢 -3.02 kB
assets/WidgetGalleria-BTxiA63U.js (removed) 4.1 kB 🟢 -4.1 kB 🟢 -1.44 kB 🟢 -1.31 kB
assets/WidgetGalleria-BWhVIqo1.js (new) 4.1 kB 🔴 +4.1 kB 🔴 +1.44 kB 🔴 +1.3 kB
assets/WidgetColorPicker-BaeHeOEr.js (new) 3.41 kB 🔴 +3.41 kB 🔴 +1.38 kB 🔴 +1.23 kB
assets/WidgetColorPicker-D6K3eL_L.js (removed) 3.41 kB 🟢 -3.41 kB 🟢 -1.38 kB 🟢 -1.23 kB
assets/WidgetTextarea-CNn07njD.js (new) 3.08 kB 🔴 +3.08 kB 🔴 +1.21 kB 🔴 +1.08 kB
assets/WidgetTextarea-PT7c1UEs.js (removed) 3.08 kB 🟢 -3.08 kB 🟢 -1.21 kB 🟢 -1.07 kB
assets/WidgetMarkdown-CFrGN-C_.js (new) 3.08 kB 🔴 +3.08 kB 🔴 +1.28 kB 🔴 +1.12 kB
assets/WidgetMarkdown-DTcdPfFy.js (removed) 3.08 kB 🟢 -3.08 kB 🟢 -1.28 kB 🟢 -1.12 kB
assets/WidgetAudioUI-CCqjhWb8.js (removed) 2.86 kB 🟢 -2.86 kB 🟢 -1.17 kB 🟢 -1.06 kB
assets/WidgetAudioUI-DDLd_Rex.js (new) 2.86 kB 🔴 +2.86 kB 🔴 +1.16 kB 🔴 +1.06 kB
assets/MediaVideoTop-B8jmaGRE.js (removed) 2.65 kB 🟢 -2.65 kB 🟢 -1.01 kB 🟢 -868 B
assets/MediaVideoTop-Csf8f_9c.js (new) 2.65 kB 🔴 +2.65 kB 🔴 +1.02 kB 🔴 +871 B
assets/WidgetChart-BH0eLeWx.js (removed) 2.48 kB 🟢 -2.48 kB 🟢 -931 B 🟢 -815 B
assets/WidgetChart-CWEwKtMY.js (new) 2.48 kB 🔴 +2.48 kB 🔴 +933 B 🔴 +822 B
assets/WidgetImageCompare-DSf2ZEwg.js (new) 2.21 kB 🔴 +2.21 kB 🔴 +749 B 🔴 +659 B
assets/WidgetImageCompare-mYznCAm6.js (removed) 2.21 kB 🟢 -2.21 kB 🟢 -746 B 🟢 -659 B
assets/WidgetInputText-BWMdaLrb.js (removed) 1.99 kB 🟢 -1.99 kB 🟢 -918 B 🟢 -828 B
assets/WidgetInputText-DKxMr_7Q.js (new) 1.99 kB 🔴 +1.99 kB 🔴 +918 B 🔴 +849 B
assets/WidgetToggleSwitch-B77PHyjB.js (new) 1.76 kB 🔴 +1.76 kB 🔴 +834 B 🔴 +732 B
assets/WidgetToggleSwitch-BzCAsBhz.js (removed) 1.76 kB 🟢 -1.76 kB 🟢 -835 B 🟢 -732 B
assets/MediaImageTop-B2BN_vpA.js (removed) 1.75 kB 🟢 -1.75 kB 🟢 -841 B 🟢 -714 B
assets/MediaImageTop-BoT3yC-l.js (new) 1.75 kB 🔴 +1.75 kB 🔴 +842 B 🔴 +717 B
assets/MediaImageBottom-2bpNAb9F.js (removed) 1.55 kB 🟢 -1.55 kB 🟢 -736 B 🟢 -639 B
assets/MediaImageBottom-DkJnb6GX.js (new) 1.55 kB 🔴 +1.55 kB 🔴 +736 B 🔴 +644 B
assets/MediaAudioBottom-BWos8hK9.js (new) 1.51 kB 🔴 +1.51 kB 🔴 +733 B 🔴 +654 B
assets/MediaAudioBottom-BZW50Eb1.js (removed) 1.51 kB 🟢 -1.51 kB 🟢 -735 B 🟢 -653 B
assets/Media3DBottom-BE_XhcLb.js (new) 1.5 kB 🔴 +1.5 kB 🔴 +731 B 🔴 +656 B
assets/Media3DBottom-Dw_lamcY.js (removed) 1.5 kB 🟢 -1.5 kB 🟢 -731 B 🟢 -651 B
assets/MediaVideoBottom-C_rg0sE4.js (removed) 1.5 kB 🟢 -1.5 kB 🟢 -731 B 🟢 -649 B
assets/MediaVideoBottom-CDzGwyMz.js (new) 1.5 kB 🔴 +1.5 kB 🔴 +734 B 🔴 +659 B
assets/Media3DTop-AaiYlRF7.js (removed) 1.49 kB 🟢 -1.49 kB 🟢 -762 B 🟢 -649 B
assets/Media3DTop-B9799-ld.js (new) 1.49 kB 🔴 +1.49 kB 🔴 +765 B 🔴 +655 B
assets/MediaAudioTop-D1WKsNUf.js (removed) 1.46 kB 🟢 -1.46 kB 🟢 -738 B 🟢 -620 B
assets/MediaAudioTop-taU5Yj_Q.js (new) 1.46 kB 🔴 +1.46 kB 🔴 +737 B 🔴 +614 B
assets/WidgetSelect-BUnR0MPr.js (new) 655 B 🔴 +655 B 🔴 +341 B 🔴 +287 B
assets/WidgetSelect-DfJhVGUo.js (removed) 655 B 🟢 -655 B 🟢 -340 B 🟢 -288 B
assets/WidgetInputNumber-DU-dE21F.js (removed) 595 B 🟢 -595 B 🟢 -328 B 🟢 -272 B
assets/WidgetInputNumber-F5VZxzxK.js (new) 595 B 🔴 +595 B 🔴 +329 B 🔴 +276 B
assets/Load3D-CXrx4pxw.js (removed) 424 B 🟢 -424 B 🟢 -266 B 🟢 -224 B
assets/Load3D-Diyj3vZu.js (new) 424 B 🔴 +424 B 🔴 +265 B 🔴 +223 B
assets/WidgetLegacy-BQg6wBej.js (removed) 364 B 🟢 -364 B 🟢 -234 B 🟢 -195 B
assets/WidgetLegacy-IEqbVKln.js (new) 364 B 🔴 +364 B 🔴 +236 B 🔴 +230 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-BWp4HdfU.js 101 B 101 B ⚪ 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-BMi-Aksj.js 99 kB 99 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-CqR8skJT.js 73.1 kB 73.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Cw9RZWRY.js 89 B 89 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-DcRHAFEy.js 81.7 kB 81.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-DdFdLxku.js 72.2 kB 72.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-DJAtuVu5.js 84.3 kB 84.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-DK8I9Rk3.js 114 kB 114 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-gP_ssnMb.js 83.4 kB 83.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-nxXY9vGp.js 94 kB 94 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Ycd3gqkA.js 86.5 kB 86.5 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-BC3OlaIn.js 342 kB 342 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-BsqN8-W1.js 285 kB 285 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-Bw_Jitw_.js 101 B 101 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CK2saYDx.js 307 kB 307 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-Cm5kR4Hi.js 306 kB 306 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CMrh-uxB.js 310 kB 310 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-DlUIOit1.js 369 kB 369 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-DNu_xoP2.js 282 kB 282 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-DpcvlpZe.js 303 kB 303 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-IyjOYIl-.js 317 kB 317 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/widgetPropFilter-BIbGSUAt.js 1.28 kB 1.28 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 23 added / 23 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: 1

Caution

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

⚠️ Outside diff range comments (2)
src/platform/cloud/onboarding/UserCheckView.vue (2)

33-47: Redundant ?? true / extra computed wrapper
flags.onboardingSurveyEnabled already resolves to a boolean with defaulting in useFeatureFlags(), so ?? true is unnecessary (and you may not need a computed at all unless you want a .value).

-const onboardingSurveyEnabled = computed(
-  () => flags.onboardingSurveyEnabled ?? true
-)
+const onboardingSurveyEnabled = computed(() => flags.onboardingSurveyEnabled)

56-82: Potential logic bug: flag-off redirect skips getUserCloudStatus() validation

When the survey flag is disabled, the early redirect to / bypasses the getUserCloudStatus() check, which validates user account status (not just authentication). If the intent is to skip the survey step only, the user's cloud account status should still be verified.

-    if (!onboardingSurveyEnabled.value) {
-      await router.replace({ path: '/' })
-      return
-    }
-
-    const [cloudUserStats, surveyStatus] = await Promise.all([
-      getUserCloudStatus(),
-      getSurveyCompletedStatus()
-    ])
+    const [cloudUserStats, surveyStatus] = await Promise.all([
+      getUserCloudStatus(),
+      onboardingSurveyEnabled.value
+        ? getSurveyCompletedStatus()
+        : Promise.resolve(true)
+    ])
📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e41c693 and 620c55b.

📒 Files selected for processing (5)
  • src/composables/useFeatureFlags.ts (2 hunks)
  • src/platform/cloud/onboarding/CloudSurveyView.vue (3 hunks)
  • src/platform/cloud/onboarding/UserCheckView.vue (4 hunks)
  • src/platform/remoteConfig/types.ts (1 hunks)
  • src/router.ts (3 hunks)
🧰 Additional context used
📓 Path-based instructions (12)
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/remoteConfig/types.ts
  • src/platform/cloud/onboarding/UserCheckView.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
  • src/composables/useFeatureFlags.ts
  • src/router.ts
src/**/*.ts

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

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

Minimize the surface area (exported values) of each module and composable

Files:

  • src/platform/remoteConfig/types.ts
  • src/composables/useFeatureFlags.ts
  • src/router.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/remoteConfig/types.ts
  • src/platform/cloud/onboarding/UserCheckView.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
  • src/composables/useFeatureFlags.ts
  • src/router.ts
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/platform/remoteConfig/types.ts
  • src/platform/cloud/onboarding/UserCheckView.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
  • src/composables/useFeatureFlags.ts
  • src/router.ts
**/*.{ts,tsx,js,jsx,vue,json}

📄 CodeRabbit inference engine (AGENTS.md)

Code style: Use 2-space indentation, single quotes, no trailing semicolons, and 80-character line width (see .prettierrc)

Files:

  • src/platform/remoteConfig/types.ts
  • src/platform/cloud/onboarding/UserCheckView.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
  • src/composables/useFeatureFlags.ts
  • src/router.ts
**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{ts,tsx,vue}: Imports must be sorted and grouped by plugin; run pnpm format before committing
Use TypeScript for type safety; never use any type - use proper TypeScript types
Never use as any type assertions; fix the underlying type issue instead
Use es-toolkit for utility functions
Write code that is expressive and self-documenting; avoid comments unless absolutely necessary; do not add or retain redundant comments
Keep functions short and functional
Minimize nesting in code (e.g., deeply nested if or for statements); apply the Arrow Anti-Pattern principle
Avoid mutable state; prefer immutability and assignment at point of declaration
Favor pure functions, especially testable ones

Files:

  • src/platform/remoteConfig/types.ts
  • src/platform/cloud/onboarding/UserCheckView.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
  • src/composables/useFeatureFlags.ts
  • src/router.ts
src/**/*.vue

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

src/**/*.vue: Use the Vue 3 Composition API instead of the Options API when writing Vue components (exception: when overriding or extending PrimeVue components for compatibility)
Use setup() function for component logic
Utilize ref and reactive for reactive state
Implement computed properties with computed()
Use watch and watchEffect for side effects
Implement lifecycle hooks with onMounted, onUpdated, etc.
Utilize provide/inject for dependency injection
Use vue 3.5 style of default prop declaration
Use Tailwind CSS for styling
Implement proper props and emits definitions
Utilize Vue 3's Teleport component when needed
Use Suspense for async components
Follow Vue 3 style guide and naming conventions

Files:

  • src/platform/cloud/onboarding/UserCheckView.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
**/*.vue

📄 CodeRabbit inference engine (AGENTS.md)

**/*.vue: Use Vue 3 SFCs (Single File Components) with Composition API only; do not use Options API
Vue components must use <script setup lang="ts"> for component logic
Use Vue 3.5 TypeScript style for default prop declaration with reactive props destructuring; do not use withDefaults or runtime props declaration
Prefer useModel to separately defining a prop and emit
Use Tailwind 4 utility classes for styling; avoid using <style> blocks in Vue components
Use semantic Tailwind values from style.css theme instead of the dark: variant; for example, use bg-node-component-surface instead of dark: prefixes
Always use cn() utility from @/utils/tailwindUtil to merge Tailwind class names; do not use :class="[]" syntax
Use ref for reactive state in Vue Composition API components
Implement computed properties with computed() from Vue; avoid using a ref with a watch if a computed would work instead
Use watch and watchEffect for side effects in Vue components
Implement lifecycle hooks using onMounted, onUpdated, and other Vue lifecycle functions
Use provide/inject for dependency injection; do not use dependency injection if a Store or shared composable would be simpler
Do not import Vue macros unnecessarily; only use when needed
Be judicious with addition of new refs or other state: prefer props, avoid redundant computed, and prefer computed over watch
Use VueUse functions for performance-enhancing styles
In Vue Components, implement proper props and emits definitions
Utilize Vue 3's Teleport component when needed
Use Suspense for async components
Implement proper error handling in Vue components
Follow Vue 3 style guide and naming conventions
Use vue-i18n in composition API for any string literals; place new translation entries in src/locales/en/main.json
Avoid new usage of PrimeVue components; prefer shadcn/vue or Reka UI instead

Files:

  • src/platform/cloud/onboarding/UserCheckView.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
src/**/{services,composables}/**/*.{ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

src/**/{services,composables}/**/*.{ts,tsx}: Use api.apiURL() for backend endpoints instead of constructing URLs directly
Use api.fileURL() for static file access instead of constructing URLs directly

Files:

  • src/composables/useFeatureFlags.ts
src/**/{composables,components}/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Clean up subscriptions in state management to prevent memory leaks

Files:

  • src/composables/useFeatureFlags.ts
src/**/{components,composables}/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Use vue-i18n for ALL user-facing strings by adding them to src/locales/en/main.json

Files:

  • src/composables/useFeatureFlags.ts
src/composables/**/*.ts

📄 CodeRabbit inference engine (AGENTS.md)

Composable files must follow the naming pattern useXyz.ts

Files:

  • src/composables/useFeatureFlags.ts
🧠 Learnings (12)
📚 Learning: 2025-12-09T03:39:54.501Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7169
File: src/platform/remote/comfyui/jobs/jobTypes.ts:1-107
Timestamp: 2025-12-09T03:39:54.501Z
Learning: In the ComfyUI_frontend project, Zod is on v3.x. Do not suggest Zod v4 standalone validators (z.uuid, z.ulid, z.cuid2, z.nanoid) until an upgrade to Zod 4 is performed. When reviewing TypeScript files (e.g., src/platform/remote/comfyui/jobs/jobTypes.ts) validate against Zod 3 capabilities and avoid introducing v4-specific features; flag any proposal to upgrade or incorporate v4-only validators and propose staying with compatible 3.x patterns.

Applied to files:

  • src/platform/remoteConfig/types.ts
  • src/composables/useFeatureFlags.ts
  • src/router.ts
📚 Learning: 2025-12-11T12:25:15.470Z
Learnt from: christian-byrne
Repo: Comfy-Org/ComfyUI_frontend PR: 7358
File: src/components/dialog/content/signin/SignUpForm.vue:45-54
Timestamp: 2025-12-11T12:25:15.470Z
Learning: This repository uses CI automation to format code (pnpm format). Do not include manual formatting suggestions in code reviews for Comfy-Org/ComfyUI_frontend. If formatting issues are detected, rely on the CI formatter or re-run pnpm format. Focus reviews on correctness, readability, performance, accessibility, and maintainability rather than style formatting.

Applied to files:

  • src/platform/remoteConfig/types.ts
  • src/platform/cloud/onboarding/UserCheckView.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
  • src/composables/useFeatureFlags.ts
  • src/router.ts
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Implement proper error handling in Vue components

Applied to files:

  • src/platform/cloud/onboarding/UserCheckView.vue
📚 Learning: 2025-12-09T03:49:52.828Z
Learnt from: christian-byrne
Repo: Comfy-Org/ComfyUI_frontend PR: 6300
File: src/platform/updates/components/WhatsNewPopup.vue:5-13
Timestamp: 2025-12-09T03:49:52.828Z
Learning: In Vue files across the ComfyUI_frontend repo, when a button is needed, prefer the repo's common button components from src/components/button/ (IconButton.vue, TextButton.vue, IconTextButton.vue) over plain HTML <button> elements. These components wrap PrimeVue with the project’s design system styling. Use only the common button components for consistency and theming, and import them from src/components/button/ as needed.

Applied to files:

  • src/platform/cloud/onboarding/UserCheckView.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
📚 Learning: 2025-12-09T21:40:12.361Z
Learnt from: benceruleanlu
Repo: Comfy-Org/ComfyUI_frontend PR: 7297
File: src/components/actionbar/ComfyActionbar.vue:33-43
Timestamp: 2025-12-09T21:40:12.361Z
Learning: In Vue single-file components, allow inline Tailwind CSS class strings for static classes and avoid extracting them into computed properties solely for readability. Prefer keeping static class names inline for simplicity and performance. For dynamic or conditional classes, use Vue bindings (e.g., :class) to compose classes.

Applies to all Vue files in the repository (e.g., src/**/*.vue) where Tailwind utilities are used for static styling.

Applied to files:

  • src/platform/cloud/onboarding/UserCheckView.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
📚 Learning: 2025-11-24T19:47:34.324Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:34.324Z
Learning: Applies to src/**/{components,composables}/**/*.{ts,tsx,vue} : Use vue-i18n for ALL user-facing strings by adding them to `src/locales/en/main.json`

Applied to files:

  • src/platform/cloud/onboarding/CloudSurveyView.vue
📚 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} : Use vue-i18n in composition API for any string literals. Place new translation entries in src/locales/en/main.json

Applied to files:

  • src/platform/cloud/onboarding/CloudSurveyView.vue
📚 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 vue-i18n for ALL UI strings

Applied to files:

  • src/platform/cloud/onboarding/CloudSurveyView.vue
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Use vue-i18n in composition API for any string literals; place new translation entries in `src/locales/en/main.json`

Applied to files:

  • src/platform/cloud/onboarding/CloudSurveyView.vue
📚 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 : Utilize Vue 3's Teleport component when needed

Applied to files:

  • src/router.ts
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Utilize Vue 3's Teleport component when needed

Applied to files:

  • src/router.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/router.ts
🧬 Code graph analysis (2)
src/composables/useFeatureFlags.ts (2)
src/platform/remoteConfig/remoteConfig.ts (1)
  • remoteConfig (22-22)
src/scripts/api.ts (1)
  • api (1306-1306)
src/router.ts (2)
src/composables/useFeatureFlags.ts (1)
  • useFeatureFlags (23-86)
src/platform/cloud/onboarding/auth.ts (1)
  • getSurveyCompletedStatus (89-128)
⏰ 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: setup
  • GitHub Check: lint-and-format
  • GitHub Check: test
  • GitHub Check: collect
🔇 Additional comments (6)
src/platform/remoteConfig/types.ts (1)

28-44: RemoteConfig key looks correctly named/typed; verify backend contract
Adding onboarding_survey_enabled?: boolean is consistent with the rest of the remote-config booleans; please just confirm the runtime payload uses the exact snake_case key and a real boolean (not 'true'/'false').

src/router.ts (1)

92-196: Guard behavior change: verify you’re skipping only the survey (not other onboarding gating)
if (!flags.onboardingSurveyEnabled) return next() bypasses the entire root-path onboarding check. If that branch was only enforcing the survey, this is correct; if it also acted as a catch-all onboarding/eligibility gate, this could be an unintended bypass.

src/platform/cloud/onboarding/CloudSurveyView.vue (2)

228-263: Survey gating looks consistent; watch for redirect loops when flag is off
Redirecting to cloud-user-check on mount (and when already completed) seems fine; please sanity-check navigation when onboardingSurveyEnabled=false to ensure there’s no bounce between cloud-surveycloud-user-check/.


352-388: Submit guard is correctly placed (before setting isSubmitting)
Early return before isSubmitting.value = true avoids leaving the UI in a loading state when the survey is toggled off mid-session.

src/composables/useFeatureFlags.ts (2)

9-18: Enum addition is fine; verify server-side flag name matches exactly
ONBOARDING_SURVEY_ENABLED = 'onboarding_survey_enabled' is consistent with the remote-config key; just confirm the server feature-flag system uses the same string.


61-76: Getter precedence/defaults look correct (remote config → server flag → true)
This implements the “disable via runtime config” goal cleanly without breaking existing behavior when config is absent.

@DrJKL DrJKL merged commit b5ab456 into main Dec 12, 2025
27 checks passed
@DrJKL DrJKL deleted the cloud-remove-survey branch December 12, 2025 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:cloud area:new-user-onboarding area:onboarding-views 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