Skip to content

chore: hide update + changelog + feedback UI#21

Merged
aletc1 merged 1 commit intodevfrom
claude/quizzical-haslett-9d68a9
Apr 18, 2026
Merged

chore: hide update + changelog + feedback UI#21
aletc1 merged 1 commit intodevfrom
claude/quizzical-haslett-9d68a9

Conversation

@aletc1
Copy link
Copy Markdown
Owner

@aletc1 aletc1 commented Apr 18, 2026

Summary

Temporarily disables all update-related and feedback UI entry points in the app. All original implementation is preserved verbatim behind UPDATES-DISABLED markers — grep for UPDATES-DISABLED across src/ to find every commented block and uncomment to reactivate.

What's hidden

  • macOS app menu → removed "Check for Updates..." / "Update to vX..." item
  • Main process → auto-updater init, IPC handlers (update:*), 5s startup check, window-focus check
  • Preload bridgecheckForUpdates, downloadUpdate, installUpdate, setUpdateChannel, getUpdateChannel, all onUpdate* event listeners
  • Update banner (bottom-left) → component returns null; useUpdateChecker() no longer called in layout
  • Settings → Beta tab → entire "Updates" section (Early Access toggle + Check Now button + version display)
  • Help popover → "What's new" changelog section + release highlights fetch (no more GET /api/changelog/desktop)
  • Sidebar → "Feedback" button

Not changed

  • Build/release pipeline (package.json publish config, scripts/generate-update-manifest.mjs) — release artifacts still publish normally
  • electron-updater dependency — kept installed; removing would break compilation of the (preserved) source
  • Update-related atoms and hooks — no longer invoked, left untouched for clean reactivation

Test plan

  • bun run dev → launch app, verify:
    • 1Code menu shows About → Settings → CLI → Services → Hide → Quit (no "Check for Updates...")
    • Settings → Beta tab shows only Rollback / Offline Mode / Automations (no Updates section)
    • Help popover (sidebar ?) shows only Discord + Shortcuts (no "What's new", no "Full changelog")
    • No bottom-left update banner on startup or window focus
    • No Feedback button at bottom of sidebar
    • DevTools → Network: no requests to cdn.21st.dev/releases/* or 21st.dev/api/changelog/desktop
  • bun run build passes clean
  • bun run package:mac → open packaged .app, confirm none of the above appear

Reactivation

rg UPDATES-DISABLED src/

Comment out all update-checking, download/install, changelog, and
Feedback UI entry points so they are invisible to users in this build.
Implementation is preserved verbatim behind UPDATES-DISABLED markers
for easy reactivation (grep UPDATES-DISABLED to find all sites).

Affected surfaces:
- macOS app menu "Check for Updates..." item
- Main-process auto-updater init, IPC handlers, focus/startup checks
- Preload bridge update:* methods + event listeners
- Update banner (bottom-left) + useUpdateChecker hook call
- Settings -> Beta tab -> Updates section (Early Access + Check Now)
- Help popover "What's new" section + changelog fetch
- Sidebar Feedback button

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@aletc1 aletc1 merged commit d120bbc into dev Apr 18, 2026
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