Repository navigation
fix(ui): Template detail page is missing the plugin page's security and version rail - #199845
Conversation
…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
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesAdds the plugin page’s shared security audit and release metadata rail to Template details. Example: Open MyFitnessClaw 0.2.5 in Templates.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +124, Tests +82. Total +206 across 10 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 15, 2026, 6:46 PM ET / 23:46 UTC. |
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 unused optional
scanStatusfield on the Template detail result is replaced bysecurity. It was never populated, and the Gateway and Control UI ship together. The catalog result types moved to a sibling module only to keepclawhub-source.tswithin 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 ismainat355e5ae57e4e; after is this change atd5fe1251b806, whose tree matches the published head. The viewer avatar in the sidebar footer is masked.For comparison, the plugin detail page that the rail is shared with, from the same build as After:
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.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.tsand the Templates unit suites pass, so the plugin rail is unchanged.pnpm protocol:checkpasses.Known gap:
pnpm check:changedpasses every lane except the dead-export scan, which reports the same twelve unused exports insrc/state/*andui/src/lib/openclaw-id/member-welcome.tson355e5ae57e4ewithout this change.