Skip to content

Agentic UI: Add live pages and posts search to the preview omnibox - #4373

Open
bcotrim wants to merge 27 commits into
trunkfrom
stu-2012-add-preview-site-search
Open

Agentic UI: Add live pages and posts search to the preview omnibox#4373
bcotrim wants to merge 27 commits into
trunkfrom
stu-2012-add-preview-site-search

Conversation

@bcotrim

@bcotrim bcotrim commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Related issues

How AI was used in this PR

Claude Code extracted this slice from the exploration branch and ran lint/typecheck/tests.

Proposed Changes

  • Typing words in the omnibox now shows live results from the site's pages and posts, with Searching… / No matches / Search unavailable states; clicking a result navigates the preview.
  • The zero state now shows real front-end permalinks (latest post + a page) instead of guessed paths.
  • Backed by a new authenticated site REST proxy in the main process: path-only GETs, rejects requests escaping /wp-json/ (the SSRF guard has a dedicated test).

Testing Instructions

  • Full app restart (main-process changes).
  • Open a running site's preview, type words in the address bar → live results appear; click one → preview navigates there.
  • Only published content appears (drafts don't).
  • Verify in light + dark.

Pre-merge Checklist

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

🤖 Generated with Claude Code

bcotrim added 2 commits July 28, 2026 16:32
…r-tabs' into stu-2012-add-preview-omnibox

# Conflicts:
#	apps/ui/src/components/site-preview/address-bar.tsx
bcotrim added 12 commits July 28, 2026 17:33
stu-2012-add-preview-site-search

# Conflicts:
#	apps/ui/src/components/site-preview/address-bar.test.tsx
#	apps/ui/src/components/site-preview/address-bar.tsx
#	apps/ui/src/components/site-preview/index.tsx
…-omnibox

# Conflicts:
#	apps/ui/src/components/site-preview/address-bar.module.css
#	apps/ui/src/components/site-preview/address-bar.test.tsx
#	apps/ui/src/components/site-preview/address-bar.tsx
#	apps/ui/src/components/site-preview/index.tsx
stu-2012-add-preview-site-search

# Conflicts:
#	apps/ui/src/components/site-preview/address-bar.test.tsx
#	apps/ui/src/components/site-preview/address-bar.tsx
#	apps/ui/src/components/site-preview/index.tsx
#	apps/ui/src/data/core/types.ts
Base automatically changed from stu-2012-add-preview-omnibox to trunk July 31, 2026 09:48
bcotrim added 4 commits July 31, 2026 10:53
…-site-search

# Conflicts:
#	apps/ui/src/components/site-preview/address-bar.module.css
#	apps/ui/src/components/site-preview/address-bar.test.tsx
#	apps/ui/src/components/site-preview/address-bar.tsx
@bcotrim
bcotrim requested a review from sejas July 31, 2026 10:45
@bcotrim
bcotrim requested a review from nightnei July 31, 2026 10:45
@bcotrim
bcotrim marked this pull request as ready for review July 31, 2026 10:45
@wpmobilebot

Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing c7ae680 vs trunk

app-size

Metric trunk c7ae680 Diff Change
App Size (Mac) 1367.52 MB 1367.60 MB +0.08 MB ⚪ 0.0%

site-editor

Metric trunk c7ae680 Diff Change
load 1040 ms 1067 ms +27 ms ⚪ 0.0%

site-startup

Metric trunk c7ae680 Diff Change
siteCreation 6532 ms 6499 ms 33 ms ⚪ 0.0%
siteStartup 2364 ms 2378 ms +14 ms ⚪ 0.0%

Results are median values from multiple test runs.

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

@nightnei

Copy link
Copy Markdown
Contributor

Path search feels broken:

  1. It works only when it matches fully
    Screenshot 2026-07-31 at 12 27 14
  2. But, when I fill in the full path - I see the default state - all links that are available by default:
    Screenshot 2026-07-31 at 12 27 46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants