Skip to content

Agentic UI: Add multi-note annotation sessions - #4521

Merged
bcotrim merged 6 commits into
trunkfrom
improve-annotation-sessions
Aug 13, 2026
Merged

Agentic UI: Add multi-note annotation sessions#4521
bcotrim merged 6 commits into
trunkfrom
improve-annotation-sessions

Conversation

@shaunandrews

@shaunandrews shaunandrews commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Related issues

How AI was used in this PR

Codex extracted this focused change from the larger annotation workflow exploration. The interaction model was directed and reviewed manually.

Proposed Changes

image image
  • Keeps annotation mode active after saving so users can add several notes on the current page.
  • Separates saving a note from sending the full batch to chat.
  • Replaces the active Annotate control with clear Cancel and Send to chat actions.
  • Uses Return to save a note and Cmd/Ctrl+Return to insert a newline.
  • Ends annotation mode after a page load instead of trapping the user in selection mode.

⚠️ Visual change: needs human review in light + dark mode.

Testing Instructions

  1. Open a running site and enter annotation mode.
  2. Save multiple notes on the current page and confirm annotation mode remains active.
  3. Confirm Return saves and Cmd/Ctrl+Return inserts a newline.
  4. Confirm Cancel clears the batch and Send to chat submits it.
  5. Run:
    • npm run typecheck
    • npm test -- apps/ui/src/components/site-preview/inspector-script.test.ts apps/ui/src/components/site-preview/index.test.tsx

Pre-merge Checklist

  • Focused tests pass
  • Typecheck passes
  • Human visual review in light and dark mode
  • Full CI passes

@shaunandrews shaunandrews changed the title Preview: Add multi-note annotation sessions Agentic UI: Add multi-note annotation sessions Aug 12, 2026
@shaunandrews
shaunandrews marked this pull request as ready for review August 12, 2026 18:45
@shaunandrews
shaunandrews requested review from a team and bcotrim August 12, 2026 18:45
@wpmobilebot

wpmobilebot commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing 69184e7 vs trunk

app-size

Metric trunk 69184e7 Diff Change
App Size (Mac) 1406.69 MB 1406.63 MB 0.06 MB ⚪ 0.0%

site-editor

Metric trunk 69184e7 Diff Change
load 1021 ms 1035 ms +14 ms ⚪ 0.0%

site-startup

Metric trunk 69184e7 Diff Change
siteCreation 7572 ms 7540 ms 32 ms ⚪ 0.0%
siteStartup 2860 ms 2873 ms +13 ms ⚪ 0.0%

Results are median values from multiple test runs.

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

@bcotrim bcotrim 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.

I pushed some changes to adjust the layout for smaller screens.

Image Image

@shaunandrews can you give a look, please?
Going to merge in order to have this available for the release

@bcotrim
bcotrim merged commit 568d182 into trunk Aug 13, 2026
13 checks passed
@bcotrim
bcotrim deleted the improve-annotation-sessions branch August 13, 2026 12:28
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