Skip to content

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

Merged
bcotrim merged 28 commits into
trunkfrom
stu-2012-add-preview-site-search
Aug 3, 2026
Merged

Agentic UI: Add live pages and posts search to the preview omnibox#4373
bcotrim merged 28 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

wpmobilebot commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing 2e5d6a5 vs trunk

app-size

Metric trunk 2e5d6a5 Diff Change
App Size (Mac) 1372.96 MB 1367.58 MB 5.38 MB 🟢 -0.4%

site-editor

Metric trunk 2e5d6a5 Diff Change
load 1078 ms 1044 ms 34 ms ⚪ 0.0%

site-startup

Metric trunk 2e5d6a5 Diff Change
siteCreation 6543 ms 6551 ms +8 ms ⚪ 0.0%
siteStartup 2367 ms 2373 ms +6 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

@bcotrim

bcotrim commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

@nightnei I pushed some changes to address the search issues, can you take another look please?

@nightnei nightnei left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bcotrim thanks, I tested all possible edge cases and it works perfectly 👍

@bcotrim
bcotrim merged commit d38358f into trunk Aug 3, 2026
13 checks passed
@bcotrim
bcotrim deleted the stu-2012-add-preview-site-search branch August 3, 2026 18:16
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.

3 participants