Skip to content

Wire up Add Site and Settings menu actions in agentic UI#4085

Open
wojtekn wants to merge 2 commits into
trunkfrom
fix-agentic-ui-add-site-settings-menu
Open

Wire up Add Site and Settings menu actions in agentic UI#4085
wojtekn wants to merge 2 commits into
trunkfrom
fix-agentic-ui-add-site-settings-menu

Conversation

@wojtekn

@wojtekn wojtekn commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Related issues

How AI was used in this PR

Used Claude Code to trace the menu → IPC → renderer flow, identify the missing subscriptions in the agentic UI connector, and implement the fix mirroring the existing toggle-sidebar / toggle-site-preview handlers. All changes were reviewed manually; typecheck, lint, and the related unit tests were run locally.

Proposed Changes

With the agentic UI beta enabled, the "Add Site…" (⌘N) and "Settings…" (⌘,) application-menu items and their keyboard shortcuts did nothing. The Electron menu emits add-site and user-settings IPC events for both UIs, but the agentic UI only listened for the sidebar/preview toggles — so these two actions were silently dropped.

The agentic UI now responds to both: "Add Site…" opens the new-site onboarding flow and "Settings…" opens the settings screen, from any route. This restores parity with the legacy UI and makes the advertised menu items and shortcuts actually work.

Testing Instructions

  1. Start the app in dev mode (npm start).
  2. Enable the agentic UI beta feature (menu → Beta Features).
  3. Trigger File → Add Site… or press ⌘N → the new-site onboarding flow opens.
  4. Trigger Settings… or press ⌘, → the settings screen opens.
  5. Confirm both work from different routes (e.g. while viewing a session).

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

The application menu sends `add-site` and `user-settings` IPC events, but
the agentic UI never subscribed to them, so the menu items and their ⌘N /
⌘, shortcuts did nothing. Subscribe to both events and navigate to the
onboarding and settings routes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@wojtekn wojtekn requested a review from a team July 6, 2026 10:08
@wpmobilebot

wpmobilebot commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing 63a3684 vs trunk

app-size

Metric trunk 63a3684 Diff Change
App Size (Mac) 1411.93 MB 1411.93 MB +0.00 MB ⚪ 0.0%

site-editor

Metric trunk 63a3684 Diff Change
load 1045 ms 787 ms 258 ms 🟢 -24.7%

site-startup

Metric trunk 63a3684 Diff Change
siteCreation 6476 ms 6569 ms +93 ms 🔴 1.4%
siteStartup 2386 ms 2389 ms +3 ms ⚪ 0.0%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff)

@wojtekn wojtekn requested a review from shaunandrews July 7, 2026 09:27
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.

2 participants