Skip to content

fix(ui): Template detail page is missing the plugin page's security and version rail - #199845

Merged
Patrick-Erichsen merged 3 commits into
mainfrom
openclaw/wild-langoustine
Nov 15, 2026
Merged

Patrick-Erichsen merged 3 commits into
mainfrom
openclaw/wild-langoustine

Conversation

@Patrick-Erichsen

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

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: the Template detail page in the Control UI has no right-hand rail, so a Template shows no security audit, version, dates, downloads or categories, while the plugin detail page shows all of them.

User Impact

User impact: before adding a Template, people can see its ClawHub security audit (linked to the full report), the release version, when it was updated and published, its download count and its categories, in the same rail and position as on a plugin page. On narrow windows the rail moves below the contents, as it does for plugins.

Why This Change Was Made

The Template page already used the plugin page's detail shell but never supplied its sidebar, and the Template detail read did not carry the facts the rail needs.

  • The Template detail read now returns the exact release's audit (verdict and audit link), the package's publication date and its categories. The audit is optional context for the page: if that read fails, or the report describes another package or release, the detail still loads and the rail shows no audit rather than a guessed one. Add continues to enforce trust through its own check.
  • The rail renderer is shared between the plugin and Template pages, so the two cannot drift apart. The plugin rail's markup and output are unchanged.
  • While the release loads, the rail shows the version, updated date and downloads already known from the catalog entry, and placeholders for the rest, so the layout does not shift when the detail arrives.

The unused optional scanStatus field on the Template detail result is replaced by security. It was never populated, and the Gateway and Control UI ship together. The catalog result types moved to a sibling module only to keep clawhub-source.ts within its line cap.

Evidence

Screenshots are from two isolated Gateways on loopback with separate state directories, each serving its own built Control UI and reading the live [email protected] release from ClawHub. Nothing is mocked. Before is main at 355e5ae57e4e; after is this change at d5fe1251b806, whose tree matches the published head. The viewer avatar in the sidebar footer is masked.

Before After
Desktop, 1280 px Before, desktop: Template detail page without a rail After, desktop: Template detail page with the security and version rail
Phone, 390 px Before, phone: no release facts below the contents After, phone: rail below the contents

For comparison, the plugin detail page that the rail is shared with, from the same build as After:

Reference: plugin detail page rail

Rail contents read from the After page: Security audit Clean, Version 0.2.5, Updated Nov 14, 2026, Published Nov 9, 2026, Downloads 15, Categories Health and Personal. The audit links to https://clawhub.ai/plugins/myfitnessclaw/security-audit?version=0.2.5. The Before page has no rail element.

Tests, run at d5fe1251b806:

  • node scripts/run-vitest.mjs run src/templates/clawhub-source.test.ts: 52 passed. New cases cover the audit, publication date and categories, and the two cases where no audit is shown (a report for another release, a failed audit read).
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/pages/agents-home/templates-catalog.e2e.test.ts: 25 passed. The new case checks the rail's audit link, bars, facts and categories, that it sits beside the contents at 1440 px and below them at 390 px, and that the page does not overflow.
  • The same new test bytes fail on 355e5ae57e4e: the unit case fails because no audit is read, and both browser cases time out waiting for the rail.
  • ui/src/pages/plugins/catalog-detail.test.tsx, ui/src/pages/plugins/plugin-overview.e2e.test.ts and the Templates unit suites pass, so the plugin rail is unchanged.
  • pnpm protocol:check passes.

Known gap: pnpm check:changed passes every lane except the dead-export scan, which reports the same twelve unused exports in src/state/* and ui/src/lib/openclaw-id/member-welcome.ts on 355e5ae57e4e without this change.

Before, desktop: Template detail page without a rail

After, desktop: Template detail page with the security and version rail

Before, phone: no release facts below the contents

After, phone: rail below the contents

Reference: plugin detail page rail

Patrick-Erichsen and others added 3 commits November 15, 2026 15:05
…g detail

The Template detail read now returns the exact release's ClawHub audit,
the package's publication date and its categories, so the Control UI can
show the same facts beside a Template as beside a plugin. The audit is
optional context: a failed read or a report for another release leaves
the detail available without one. It replaces the never-populated
scanStatus field.

Catalog result shapes move to a sibling module to keep clawhub-source
within its line cap.
Render the plugin page's right-hand rail on the Template detail page:
security audit, version, updated and published dates, downloads and
categories. The rail renderer is now shared, so both pages stay
identical; the catalog entry fills the facts it knows while the release
loads.
…nd version rail

OpenClaw-Publication: 01103bdf-8b6b-8fe2-af89-e930a8f36b71
@clawsweeper

clawsweeper Bot commented Nov 15, 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.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime size: XL labels Nov 15, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 15, 2026
@clawsweeper

clawsweeper Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Adds the plugin page’s shared security audit and release metadata rail to Template details.

Example: Open MyFitnessClaw 0.2.5 in Templates.

  • Before: The detail page shows workspace contents without an audit or release facts.
  • After: It shows Clean, version 0.2.5, publication and update dates, 15 downloads, and Health and Personal categories beside desktop contents or below mobile contents.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, useful change with real visual proof, relevant regression coverage, and no identified defect; broad CI is still completing.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected desktop and phone screenshots from isolated built Gateways reading live MyFitnessClaw 0.2.5 show the missing rail before and the audit, release facts, and categories afterward; the proof revision’s tree matches the reviewed head.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: People inspecting a Template cannot see the security audit and release facts available on plugin detail pages.
Reason: The direction is supplied by the maintainer-authored item, improves pre-Add inspection, and reuses the existing marketplace presentation.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR supplies useful Template release information that current main still omits, with convincing visual proof and no actionable correctness findings.

Priority: P2
Reviewed head: 7dd10e34fc331f0b18b50b54bed52dccf1031c0f

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Gateway projects ClawHub package and exact-release metadata into the Template catalog response, which the Control UI renders through the existing plugin detail shell and shared metadata renderer.

flowchart LR
  A[ClawHub package listing] --> C[Gateway Template detail owner]
  B[ClawHub exact release and audit] --> C
  C --> D[Template catalog response]
  D --> E[Control UI Template details]
  E --> F[Shared package metadata rail]
  G[Plugin details] --> F
Loading

Technical review

Best possible solution:

Use the existing shared metadata renderer with exact-release audit context while preserving independent Add trust enforcement.

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

Current-main source omits the sidebar, and supplied before screenshots show the same missing information; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The change uses the existing detail shell, metadata renderer, and ClawHub client without adding competing state or trust policy; the type-only extraction accommodates the source module’s line limit.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Plugin marketplace metadata rail keeps the original intent (d9dd17b: improve(ui): tighten the plugin page and organize its facts #191311 organized plugin facts and audit information into the existing marketplace rail.)
  • Template exact-release detail loading keeps the original intent (11c8f23: fix: Template details take too long to load #193124 parallelized independent registry reads while preserving identity, artifact integrity, and download cleanup.)
  • Unused Template scanStatus response field changes intended behavior with a stated reason (db0d3d0: The catalog contract declared optional scanStatus, but inspected source and history show no detail-result producer; the PR explains replacing it with populated exact-release security metadata.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Current main still lacks the rail: Fetched main supplies the Template shell’s contents panel without a sidebar; the PR introduces the missing sidebar and its metadata projection. (ui/src/pages/agents-home/templates-detail-view.tsx:338, a237e95ceb3f)
  • Pinned introduction and shared owner: The introduced diff extracts the existing plugin metadata markup for reuse, preserves plugin-specific repository and documentation links, and keeps Add’s trust enforcement separate from optional audit presentation. (ui/src/pages/plugins/overview.tsx:179, 7dd10e34fc33)
  • Inspected visual proof matches the reviewed tree: The downloaded desktop and phone before/after screenshots show the new audit and facts in the intended positions; the documented proof revision and reviewed head have identical tree 508c6b11cbeb53634ad66279f6d5d7c307c2820a. (7dd10e34fc33)
  • Exact-release projection and failure behavior: Audit presentation requires matching package name and release version; rejected audit reads yield no audit, while archive identity and integrity checks remain in place. (src/templates/clawhub-source.ts:324, 7dd10e34fc33)
  • Regression coverage and compatibility: Added tests cover metadata projection, mismatched or failed audits, and desktop/mobile rail placement; the body reports red-on-base and green-on-head results. The removed scanStatus response field had no producer, and the changed response fields do not rewrite persisted state. (src/templates/clawhub-source.test.ts:443, 7dd10e34fc33)
  • Verified dependency contract: The PR newly consumes ClawHub’s version-specific security endpoint, making its response contract relevant; that endpoint returns package identity, release version, verdict, and a server-generated audit URL carrying the selected version. (convex/httpApiV1/packagesV1.ts:591, bc308cd2ee8f)

Likely related people:

  • Patrick Erichsen: Raw commit db428c5 adds ui/src/pages/agents-home/templates-detail-view.tsx:281 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: db428c525d65; files: ui/src/pages/agents-home/templates-detail-view.tsx)
  • Vyctor H. Brzezowski: Raw commit d9dd17b adds ui/src/pages/plugins/overview.tsx:47 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d9dd17bad29e; files: ui/src/pages/plugins/overview.tsx)
  • Peter Steinberger: Raw commit ff3855a adds ui/src/pages/agents-home/claws-detail-view.tsx:236 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ff3855ada490; files: ui/src/pages/agents-home/claws-detail-view.tsx)

PR surface

Source +124, Tests +82. Total +206 across 10 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 8 1167 1043 +124
Tests 2 82 0 +82
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 1249 1043 +206

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 P2: Missing release and audit information affects informed Template selection, with limited blast radius and no demonstrated installation or authorization failure.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Missing release and audit information affects informed Template selection, with limited blast radius and no demonstrated installation or authorization failure.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • 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.

Reviewed November 15, 2026, 6:46 PM ET / 23:46 UTC.

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 gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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