Skip to content

apps/cli: polish "Selected site" announcement in AI chat#3195

Merged
youknowriad merged 1 commit intotrunkfrom
claude/crazy-chandrasekhar-4d9d6e
Apr 22, 2026
Merged

apps/cli: polish "Selected site" announcement in AI chat#3195
youknowriad merged 1 commit intotrunkfrom
claude/crazy-chandrasekhar-4d9d6e

Conversation

@youknowriad
Copy link
Copy Markdown
Contributor

Related issues

  • Related to #

How AI was used in this PR

Written with Claude Code. Small visual polish on the existing announcement rendered by the AI chat TUI in apps/cli/ai/ui.ts.

Proposed Changes

  • Add a blank line before the Selected site: … message so it no longer hugs the previous output.
  • Drop the glyph from the label.
  • Switch the label color from the muted blue #5b8db8 to the purple #8839ef already used for the active-site name in the prompt border, for better legibility and a more cohesive look.

Testing Instructions

  1. npm run cli:build && node apps/cli/dist/cli/main.mjs (or the usual CLI entry).
  2. Enter the AI chat and pick a site from the site picker.
  3. Confirm the announcement reads Selected site: <name> (no ), appears with one blank line above it, and is rendered in the same purple as the site name shown in the prompt's top border.
  4. Repeat with a WordPress.com site to verify the (WordPress.com) variant renders the same way.

Pre-merge Checklist

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

Add a blank line before the message, drop the ✻ glyph, and switch
the color from muted blue to the purple used by the active-site
label in the prompt border for better legibility and consistency.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@wpmobilebot
Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing b8146ee vs trunk

app-size

Metric trunk b8146ee Diff Change
App Size (Mac) 1491.75 MB 1491.75 MB +0.00 MB ⚪ 0.0%

site-editor

Metric trunk b8146ee Diff Change
load 1873 ms 1862 ms 11 ms ⚪ 0.0%

site-startup

Metric trunk b8146ee Diff Change
siteCreation 8150 ms 8141 ms 9 ms ⚪ 0.0%
siteStartup 4961 ms 4956 ms 5 ms ⚪ 0.0%

Results are median values from multiple test runs.

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

@youknowriad youknowriad self-assigned this Apr 22, 2026
@youknowriad youknowriad merged commit 4e62afe into trunk Apr 22, 2026
10 checks passed
@youknowriad youknowriad deleted the claude/crazy-chandrasekhar-4d9d6e branch April 22, 2026 18: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