Skip to content

feat(ui): shared InlineAlert for inline errors, warnings and notes - #194124

Merged
vyctorbrzezowski merged 11 commits into
mainfrom
brzezowski/inline-alert-component
Nov 6, 2026
Merged

vyctorbrzezowski merged 11 commits into
mainfrom
brzezowski/inline-alert-component

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Consolidates inline errors, warnings, notes, and confirmations into InlineAlert. The shared component owns tone, optional title/actions, and dismissal; callers keep placement and recovery behavior. Filled alerts have no tinted border or icon, compact popover messages stay compact, and microphone permission guidance remains a warning.

The migration preserves retry/dismiss controls and existing live-region owners. At narrow widths, long recovery actions wrap below readable message text while the composer retains its 44 × 44 px dismiss target. Desktop actions remain trailing. Existing behavioral tests use the new selectors and roles; no new test cases or net test lines were added.

Validation:

  • Focused UI checks: 296 tests in 14.35 s; affected owner checks: 97 tests in 4.61 s. Targeted browser checks cover microphone recovery, SDP cleanup, automation and terminal errors, plugin lifecycle, and usage reconnection.
  • Responsive repair: the existing Talk consent dismiss/accept/denied scenarios and plugin inventory retry all pass (4 tests, 14.60 s). Inspected captures at 320, 390, and 1280 px plus a desktop short-action control confirm natural wrapping and preserved dismissal.
  • Latest integration retains Checkbox, Radio, MenuHeading, and InlineAlert. The actual merged result passes CI formatting with oxfmt/Bun parity across all 133 PR files, plus focused lint on the three corrected import groups and whitespace checks.
  • Prior UI typechecking, targeted lint/stylelint, and formatting passed. Test-line delta remains zero. Independent review covered all 26 migration sections and a separate focused pass covered the responsive repair; no P0–P2 findings.
  • The prior candidate's production build passed. Its route JavaScript budgets exceeded limits by 549 B gzip for chat and 151 B for New Session; these are PR-caused and require the maintainer's authorized exception. Byte totals after the responsive repair were not remeasured. No budgets were raised.

Original CI's transient-container animation measurement failure is fixed by main commit 9a5ecd3f4c7; the focused check passed before this mechanical integration. The real-Gateway duration-save case was not replayed. Fresh hosted checks for the corrected code are not claimed green.

Responsive before/after and desktop proof. The original migration captures are retained below.

Approved original visual proof

Composer before:

Composer before

Composer after:

Composer after

Popover before:

Popover before

Popover after:

Popover after

Dark theme

CRT theme

Automation desktop

Automation mobile

@vyctorbrzezowski vyctorbrzezowski self-assigned this Nov 6, 2026
@clawsweeper

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 6, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 6, 2026
@clawsweeper

clawsweeper Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR consolidates Control UI errors, warnings, notes, and confirmations into a shared InlineAlert component.

Example: Browser microphone access fails while composing a message.

  • Before: The composer shows a pink error banner while the microphone popover shows brown warning text.
  • After: Both surfaces use the shared warning tone, with a compact presentation in the popover.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful consolidation with direct visual proof, but the incomplete consumer migration causes confirmed CI failures.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after browser screenshots exercise the production composer and microphone popover after a real microphone-access failure, showing the shared warning styling; the PR declares mock Gateway data and no DOM injection.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Equivalent failures and warnings have inconsistent colors, framing, and recovery-control placement across the Control UI.
Reason: The maintainer-authored direction consolidates repeated presentation without adding configuration or changing domain ownership.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this PR open: the shared alert is useful and maintainer-directed, but the migration breaks existing behavioral tests by removing selectors without updating their consumers.

Priority: P3
Reviewed head: b0802e1ac45519b3c5dcd4ee68255f7d827cabbf

Before merge

  • [P2] Complete the alert selector migration in behavioral tests (P2) - Replacing this element drops .cron-error-banner, but existing automation conflict, inventory, run-feedback, and trigger-authoring tests still query it. Exact-head CI confirms undefined text assertions and a timeout waiting for that selector. The same incomplete cutover affects .plugins-settings-error, microphone status/message hooks, .new-session-page__alert-message, and .callout.warning consumers in Usage and plugin tests. Preserve the necessary hooks or migrate every affected test alongside the markup, keeping the existing retry, conflict, dismissal, and recovery assertions intact.

Findings

  • [P2] [P2] Complete the alert selector migration in behavioral tests — ui/src/pages/cron/view-controls.tsx:18

Tests

  • Missing end-to-end proof: The existing recovery E2E scenarios must reach their assertions again after the alert selector migration is completed.
Agent review details

How this fits together

Control UI pages pass messages, tones, and recovery callbacks to InlineAlert, which renders accessible markup using shared callout styles.

flowchart LR
  A[Gateway and browser outcomes] --> B[Page presentation owners]
  B --> C[InlineAlert]
  C --> D[Shared callout styles]
  C --> E[Accessible message and controls]
  E --> B
Loading

Technical review

Best possible solution:

Keep one shared alert renderer and complete the consumer cutover without weakening existing recovery assertions.

Do we have a high-confidence way to reproduce the issue?

The removed selectors remain in existing tests, and exact-head CI annotations confirm missing-element assertions and timeouts on those paths.

Is this the best way to solve the issue?

A small shared component using existing callout styles is a suitable solution, provided all affected behavioral-test consumers migrate together.

Full review comments:

  • [P2] [P2] Complete the alert selector migration in behavioral tests — ui/src/pages/cron/view-controls.tsx:18
    Replacing this element drops .cron-error-banner, but existing automation conflict, inventory, run-feedback, and trigger-authoring tests still query it. Exact-head CI confirms undefined text assertions and a timeout waiting for that selector. The same incomplete cutover affects .plugins-settings-error, microphone status/message hooks, .new-session-page__alert-message, and .callout.warning consumers in Usage and plugin tests. Preserve the necessary hooks or migrate every affected test alongside the markup, keeping the existing retry, conflict, dismissal, and recovery assertions intact.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against b4c2c8f9e435.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui test src/pages/cron/view.test.ts src/pages/cron/cron-page.conflict.test.ts src/pages/plugins/plugins-page.generations.test.ts src/pages/plugins/catalog-results.test.tsx src/pages/usage/usage-page.test.ts src/pages/chat/chat-composer-microphone.test.ts src/pages/chat/chat-view.test.ts src/pages/chat/chat-composer.realtime-input-notice.test.ts
  • pnpm test:ui:e2e ui/src/e2e/cron-trigger-authoring.e2e.test.ts ui/src/e2e/cron-loading.e2e.test.ts ui/src/e2e/cron-run-feedback.e2e.test.ts ui/src/pages/plugins/plugins-catalog.e2e.test.ts ui/src/e2e/browser-talk-webkit-error.e2e.test.ts ui/src/e2e/new-session-page.catalog-reconnect.e2e.test.ts ui/src/e2e/usage-reconnect.e2e.test.ts
  • pnpm tsgo:ui

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit e460144 adds ui/src/pages/chat/components/chat-voice-activity.tsx:206 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e46014433988; files: ui/src/pages/chat/components/chat-voice-activity.tsx)
  • Peter Steinberger: Raw commit d795875 adds ui/src/pages/plugins/plugin-row-message.tsx:9 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d79587573ea8; files: ui/src/pages/plugins/plugin-row-message.tsx)

PR surface

PR surface statistics unavailable: the file list is incomplete.

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: The central improvement is visual consistency and shared presentation ownership, without evidence of an urgent user-facing outage.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦞 diamond lobster and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: The central improvement is visual consistency and shared presentation ownership, without evidence of an urgent user-facing outage.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦞 diamond lobster and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 6, 2026, 8:13 AM ET / 13:13 UTC.

@vyctorbrzezowski

vyctorbrzezowski commented Nov 6, 2026 •

Copy link
Copy Markdown
Member Author

The final responsive alert keeps a readable message and places the long recovery action below it on mobile, while retaining the 44 × 44 px dismiss target. Short desktop actions remain trailing. The existing synthetic Talk consent and plugin retry flows pass; these are inspected captures from those natural flows.

Images below show the original main mobile layout, the corrected mobile alert, and the corrected desktop short-action control. They replace the earlier narrow-column screenshots.

Before: original main mobile recovery layout

After: readable mobile message, recovery action below, 44 pixel dismiss target

After: desktop retry action remains trailing

Preserve announcement ownership and mobile dismiss targets, update behavioral selectors, and resolve focused lint failures.
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: discord Channel integration: discord channel: matrix Channel integration: matrix app: ios App: ios app: macos App: macos gateway Gateway runtime extensions: copilot-proxy Extension: copilot-proxy labels Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant