Skip to content

[codex] Add app setting to disable Capgo updates#2270

Merged
riderx merged 1 commit into
mainfrom
codex/disable-capgo-updates
May 15, 2026
Merged

[codex] Add app setting to disable Capgo updates#2270
riderx merged 1 commit into
mainfrom
codex/disable-capgo-updates

Conversation

@riderx
Copy link
Copy Markdown
Member

@riderx riderx commented May 15, 2026

Summary (AI generated)

  • Added a Disable Capgo updates option to the App settings default download channel dialog.
  • When enabled, the setting removes all default download channels by setting every app channel to non-public.
  • Added UI copy for the disabled state and success feedback.

Motivation (AI generated)

Some apps need a simple way to stop Capgo updates entirely without deleting channels or changing each channel individually. Allowing an app to have no default download channel makes that state explicit in App settings.

Business Impact (AI generated)

This gives users safer operational control over live updates, reducing accidental deployments and support requests when teams need to pause Capgo delivery for an app.

Test Plan (AI generated)

  • Ran bun lint.
  • Ran bun typecheck.
  • Ran bun run build.
  • Started the local app with bun serve:dev --host 127.0.0.1.
  • Loaded /app/com.demo.app/info in a headless browser and confirmed the app loaded without console errors before redirecting to login.

Screenshots (AI generated)

Not included. The local browser reached the login redirect before authenticated app settings could be captured.

Checklist (AI generated)

  • My code follows the code style of this project and passes relevant lint/type checks.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • My change has adequate E2E test coverage.
  • I have tested my code manually, and I have provided steps how to reproduce my tests.

Generated with AI

Summary by CodeRabbit

  • New Features

    • Users can now disable Capgo updates from the application settings dashboard. A new toggle option allows you to prevent automatic update downloads and maintain complete control over when updates are applied.
  • Localization

    • Added new translation strings and status labels to support the disable updates functionality.

Review Change Stack

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 15, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a34262a1-82b8-4a7c-b98c-cc5b9d97358a

📥 Commits

Reviewing files that changed from the base of the PR and between 908aa39 and dbbd2cb.

📒 Files selected for processing (2)
  • messages/en.json
  • src/components/dashboard/AppSetting.vue

📝 Walkthrough

Walkthrough

This PR adds a "disable Capgo updates" feature to the default download channel dialog. It introduces translations, a reactive flag, dialog state initialization logic, persistence of the disable state to the database, and conditional UI rendering that hides channel selection when updates are disabled.

Changes

Disable Capgo Updates Feature

Layer / File(s) Summary
Translation entries for disable feature
messages/en.json
Adds four i18n message keys: capgo-updates-disabled, disable-capgo-updates, disable-capgo-updates-desc, and disabled-capgo-updates to support the new disable UI and status labels.
State management and dialog initialization
src/components/dashboard/AppSetting.vue
Introduces disableDownloadUpdates reactive flag, updates default channel label to show capgo-updates-disabled when no defaults exist, validates initial dialog state with no-channels-available error, and initializes the disable flag based on configured defaults.
Disable confirmation and persistence
src/components/dashboard/AppSetting.vue
When user confirms with disable flag enabled, updates all app channels to public: false in Supabase, syncs local channels state, reloads channel list, bumps refresh state, and skips the usual unified/split selection flow.
Dialog UI with disable toggle and conditional rendering
src/components/dashboard/AppSetting.vue
Adds a toggle card for disabling updates and conditionally renders the unified/split channel selection controls only when updates are enabled; includes fallback message for disabled state.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • Cap-go/capgo#2069: Modifies the same default download-channel dialog logic and channel persistence patterns, including updates to the channels table public flag.

Poem

🐰 A toggle so fine to disable the flow,
Updates can pause—let the apps rest below.
In channels we mark them, then render with care,
The dialog decides: update, or don't, if you dare. ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The PR title clearly and concisely summarizes the main change: adding a setting to disable Capgo updates in the app configuration.
Description check ✅ Passed The PR description includes Summary, Motivation, Business Impact, Test Plan, Screenshots, and Checklist sections matching the template structure with substantive content provided.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/disable-capgo-updates

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

@codspeed-hq
Copy link
Copy Markdown
Contributor

codspeed-hq Bot commented May 15, 2026

Merging this PR will not alter performance

✅ 43 untouched benchmarks
⏩ 2 skipped benchmarks1


Comparing codex/disable-capgo-updates (dbbd2cb) with main (908aa39)

Open in CodSpeed

Footnotes

  1. 2 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@riderx riderx force-pushed the codex/disable-capgo-updates branch from 5fb43b0 to dbbd2cb Compare May 15, 2026 08:19
@sonarqubecloud
Copy link
Copy Markdown

@riderx riderx marked this pull request as ready for review May 15, 2026 08:46
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@riderx riderx merged commit d20057f into main May 15, 2026
52 of 53 checks passed
@riderx riderx deleted the codex/disable-capgo-updates branch May 15, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant