Skip to content

fix: explain the security audit from its info icon on Template and plugin pages - #201620

Merged
Patrick-Erichsen merged 8 commits into
mainfrom
openclaw/tidy-shell
Nov 19, 2026
Merged

Patrick-Erichsen merged 8 commits into
mainfrom
openclaw/tidy-shell

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

On a Template or plugin page, the info icon beside Security audit does not explain anything. With link previews turned on, hovering it opens a preview card for the ClawHub audit link, and clicking it follows that link. With previews off it only says "View security audit", which describes the link rather than the audit.

User Impact

User impact: hovering, focusing, or clicking the info icon now explains what the audit is ("ClawHub checks each release for vulnerabilities and agentic risk."). The verdict row below it still opens the full audit on ClawHub.

Why This Change Was Made

The icon's hint was a title nested inside the audit link. A link's page preview takes over the hover from any hint inside it, so the hint was replaced as soon as previews were available. The icon is now the shared icon button with its own tooltip beside the heading, outside the link, and the link covers only the verdict row. The link keeps "Security audit" in its accessible name.

The heading, verdict row and facts keep their measured positions at 390 px and 1440 px. The icon glyph sits 2.5 px further from the heading so its 28 px target does not overlap the heading text.

Evidence

A Template detail page in the mocked Control UI with link previews on, dark theme, 1440×900, pointer resting on the info icon. Before is origin/main at 4442518e379; after is this branch. Template data comes from the E2E fixture.

Clean comparison

Before After
Before: hovering the info icon shows a clawhub.ai link preview card over the rail After: hovering the info icon shows a tooltip explaining the audit

Annotated comparison

Before After
The link preview card that replaced the hint is outlined The explanatory tooltip and its icon button are outlined
  • New browser test explains the release audit from its info control while link previews are on (light and dark) fails against the product code on main because a link preview card replaces the hint, and passes with this change. It also checks that clicking the icon keeps the hint open without leaving the page or opening the audit.
  • The existing Template, plugin overview and plugin settings browser suites pass with their audit assertions updated for the new structure, as does the plugin detail unit suite.
  • pnpm check:changed and pnpm ui:i18n:verify pass.
  • Control UI performance: the first revision added 227 B of raw CSS, which the comparison rejects because total CSS is already over its ceiling. The control now reuses the shared icon button, and pnpm ui:check-performance:base against 4442518e379 passes with total raw CSS 76 B below base and no budget changed.

Gaps: verified in Chromium only. plugins.e2e.test.ts > explains why Install is disabled while plugin inventory is loading times out waiting for the initial roster locally on both main and this branch, so it is unrelated to this change.

Patrick-Erichsen and others added 2 commits November 18, 2026 20:48
The icon's hint was a title nested in the audit link. With link previews on,
the link's page preview owned the hover and replaced the hint, so the icon
explained nothing. Give the icon its own tooltip button beside the heading
and keep the link on the verdict row.
…ugin pages

OpenClaw-Publication: 21fde8e9-4f01-8af5-a242-e9e0513d3f58
@clawsweeper

clawsweeper Bot commented Nov 19, 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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. 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:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 19, 2026
@clawsweeper

clawsweeper Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Separates the Security audit explanation button from the report link on Template and plugin pages.

Example: Hover over the Security audit info icon on a Template detail page with link previews enabled.

  • Before: A ClawHub link preview replaces the hint.
  • After: A tooltip explains the audit, while the verdict row remains linked to the full report.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused shared-owner repair with inspected visual proof, passing current-head gates, and no open findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots show the real Control UI in Chromium displaying the changed tooltip with a mocked Gateway; browser coverage additionally checks that clicking stays on the Template page and opens no report tab.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: The info icon opens or previews the audit report instead of explaining what the audit means.
Reason: A small shared correction gives both detail surfaces useful help while preserving the existing report action.

Merge readiness

✅ Ready for maintainer review

This PR is a useful, focused UI fix with no actionable findings. The earlier CSS performance blocker is resolved, and current-head CI passes.

Priority: P3
Reviewed head: 3fa08e5991a43f45489bc32a8abcdfc283528d79

Before merge

None.

Findings

None.

Agent review details

How this fits together

Template and plugin detail pages feed release metadata into one shared rail renderer, which presents the audit verdict, explanation, report link, and release facts.

flowchart TD
  A[Template detail] --> C[Shared metadata rail]
  B[Plugin detail] --> C
  C --> D[Audit explanation button]
  D --> E[Shared tooltip]
  C --> F[Verdict report link]
Loading

Technical review

Best possible solution:

Keep the explanation in the shared tooltip beside the heading and retain report navigation on the verdict row.

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

Current-main markup places the hint inside the previewable report link, and the supplied before screenshot shows the resulting link preview; no target code was executed during this review.

Is this the best way to solve the issue?

The patch fixes the interaction at the existing shared renderer, preserves localization and report access, and introduces no competing state or tooltip implementation.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Audit interaction and shared rail changes intended behavior with a stated reason (fix(ui): Template detail page is missing the plugin page's security and version rail #199845: Share security and release facts between Template and plugin pages while preserving the full audit link.)
  • Localized verdict presentation keeps the original intent (9a3ae43: Localize known audit labels while preserving unknown protocol values.)
  • Plugin rail layout keeps the original intent (d9dd17b: Use shared settings headings and organize plugin facts into a compact metadata rail.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +12, Tests +28. Total +40 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 46 34 +12
Tests 2 33 5 +28
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 79 39 +40

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 rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: This corrects a misleading help interaction without blocking installation, audit access, or normal use.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-19T05:03:55.385Z sha 3a3efd9 :: needs changes before merge. :: [P2] Reduce the added CSS to satisfy the performance gate

Reviewed November 19, 2026, 12:37 AM ET / 05:37 UTC (Revision 2).

Patrick-Erichsen and others added 6 commits November 18, 2026 21:18
Keeps total Control UI CSS from growing past its ceiling: the shared button
owns the box, glyph and states, so the rail only places it.
OpenClaw-Publication: d1bf0499-e632-8897-ab44-825a575d5b7d
…fo-tooltip

# Conflicts:
#	ui/src/pages/agents-home/templates-catalog.e2e.test.ts
OpenClaw-Publication: 7bd0c8a8-4cfe-86b4-8f31-38439dc8478d
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed 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. labels Nov 19, 2026
@Patrick-Erichsen
Patrick-Erichsen merged commit 37e7af1 into main Nov 19, 2026
99 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the openclaw/tidy-shell branch November 19, 2026 05:39
steipete added a commit that referenced this pull request Nov 19, 2026
Preserve the Template and plugin audit explanation from #201620 while using the existing native tooltip owner. Restore the 56-request first-visit bound without widening budgets or changing translations.

Co-authored-by: Patrick Erichsen <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 20, 2026
…law#201677)

Preserve the Template and plugin audit explanation from openclaw#201620 while using the existing native tooltip owner. Restore the 56-request first-visit bound without widening budgets or changing translations.

Co-authored-by: Patrick Erichsen <[email protected]>
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: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant