Skip to content

feat(ui): complete the ClawHub plugin catalog - #137659

Merged
Patrick-Erichsen merged 7 commits into
codex/claw-717-clawhub-catalogfrom
codex/claw-718-full-catalog-ui
Sep 10, 2026
Merged

Patrick-Erichsen merged 7 commits into
codex/claw-717-clawhub-catalogfrom
codex/claw-718-full-catalog-ui

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Completes the plugin catalog experience started in the preceding stack PR. Operators can browse ClawHub discovery results without leaving the Plugins page, while still seeing how remote entries relate to locally installed plugins.

Why This Change Was Made

Uses ClawHub's discovery structure: shared Installed/Featured card anatomy, a canonical category sidebar, compact catalog rows, and remote author, official, and download metadata. Gateway-joined local state remains the source of truth for installed and enabled status; attribution is retained across filtering and pagination.

Paired taxonomy API: openclaw/clawhub#3582

User Impact

  • Featured cards now match Installed cards, with author below the title, description in the body, a blue official badge, and downloads in the footer.
  • Explore uses the full 12-category ClawHub taxonomy in a left sidebar and removes the terminal end-of-catalog message.
  • Installed cards show catalog attribution when known. The dense preview includes Telegram as an official, installed-but-disabled example.

Evidence

  • Bundled Control UI Playwright/Vitest: 6 plugin catalog scenarios passed.
  • Focused UI units: 56 tests passed.
  • check:changed passed for every touched file, including formatting, i18n, type checks, dead-code scans, lint, and stylelint.
  • Paired ClawHub local-auth Playwright: 2 HTTP scenarios passed, including the registered categories route.
  • ClawHub static and types/build checks passed.
  • Pre-publish standards and spec review completed; all actionable findings were repaired before submission.

@Patrick-Erichsen Patrick-Erichsen changed the title codex/claw 718 full catalog ui feat(ui): complete the ClawHub plugin catalog Sep 3, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 4, 2026
@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 9, 2026, 6:48 PM ET / 22:48 UTC (Revision 40).

ClawSweeper review

What this changes

Adds featured cards, category filters, search, pagination, catalog navigation, and installed-plugin attribution to the Control UI’s Plugins page.

Merge readiness

⛔ Blocked before merge - 6 items remain

This remains distinct, useful work in an open implementation stack. All four prior correctness findings remain unresolved; the latest commit changes only a test assertion. The paired ClawHub taxonomy API has merged.

Priority: P2
Reviewed head: 0c9cca580922513e1ce9c44169522aa45d4326b3

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The implementation has useful scope and supporting tests, but four concrete interaction defects still block merge.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied maintainer classification exempts this PR from the external-contributor setup gate. Reported mocked UI scenarios and paired ClawHub HTTP validation do not demonstrate destination rendering, terminal overflow, connected replacement, or actual author clicks; repository-required visual captures also remain outstanding.
Patch quality 🦐 gold shrimp (3/6) 4 actionable review findings remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied maintainer classification exempts this PR from the external-contributor setup gate. Reported mocked UI scenarios and paired ClawHub HTTP validation do not demonstrate destination rendering, terminal overflow, connected replacement, or actual author clicks; repository-required visual captures also remain outstanding.
Evidence reviewed 11 items Prior findings remain unchanged: The comparison against the previously reviewed head changes only ui/src/e2e/plugins-hub-navigation.e2e.test.ts. A targeted comparison of the plugin implementation and stylesheet is empty, confirming that all four previously reported triggers remain unchanged.
Catalog destination is not rendered: Catalog clicks navigate to /plugins/<id>, but applyRouteData resolves a detail identifier only on the settings surface. Discovery rendering always returns Installed, Featured, and Explore. The added E2E assertion verifies the pathname without checking destination content.
Terminal overflow restarts browsing: fetchAvailablePage initializes shouldFetch to true even when a continuation contains terminal overflow and no cursor. If fewer than 25 buffered items remain, it requests the first remote page again.
Findings 4 actionable findings [P1] Render the catalog destination before exposing its links
[P2] Stop fetching terminal overflow without a continuation cursor
[P2] Clear discovery attribution on connected Gateway replacement
Security None None.

How this fits together

The Plugins page combines ClawHub discovery metadata with the connected Gateway’s installed-plugin inventory. Its controller filters and paginates those results, then renders catalog cards and links alongside local plugin settings.

flowchart LR
  A[Catalog filters and search] --> B[Discovery controller]
  B --> C[Gateway catalog API]
  D[ClawHub metadata] --> C
  E[Local plugin inventory] --> C
  C --> B
  B --> F[Featured cards and catalog rows]
  F --> G[Plugin destination]
Loading

Before merge

  • Render the catalog destination before exposing its links (P1) - Featured cards and Explore rows navigate to /plugins/&lt;id>, but applyRouteData() resolves details only for the settings surface and discovery rendering always returns the catalog. Clicking or reloading these links never displays the selected plugin. Integrate the destination from codex/claw 720 plugin detail pages #137846 or defer these links, and assert destination content rather than only the pathname. This prior finding remains unresolved.
  • Stop fetching terminal overflow without a continuation cursor (P2) - When filtering installed entries makes one displayed page consume multiple remote pages, the final response can leave fewer than 25 overflow items and no next cursor. Advancing then enters this loop with shouldFetch = true and requests the first remote page again, repeating catalog entries and potentially keeping Next available indefinitely. Distinguish the initial fetch from draining terminal overflow. This prior finding remains unresolved.
  • Clear discovery attribution on connected Gateway replacement (P2) - Replacing the Gateway with another already-connected source calls invalidateRequests(false), so this reset is skipped. The replacement refresh resets pagination but does not clear entriesById; entries absent from its first results retain the previous Gateway’s plugin-ID association and can give a different local plugin an incorrect author or official badge. Invalidate discovery state on identity changes before refreshing. This prior finding remains unresolved.
  • Keep Explore author links above the navigation overlay (P2) - This rule places the identity container in a z-index 1 stacking context beneath the primary-link overlay at z-index 2. The nested author link’s z-index 3 cannot escape its parent, so pointer clicks on the author hit catalog navigation instead. Adjust the stacking or hit-testing structure and test an actual author click; checking its href does not catch this. This prior finding remains unresolved.
  • Resolve merge risk (P1) - The visual redesign has no supplied before/after captures, leaving desktop and narrow-viewport appearance unverified.
  • Complete next step (P2) - Resolve all four retained findings and provide sanitized before/after catalog captures, including a narrow viewport, before merge.

Findings

  • [P1] Render the catalog destination before exposing its links — ui/src/pages/plugins/plugins-page.ts:622-625
  • [P2] Stop fetching terminal overflow without a continuation cursor — ui/src/pages/plugins/plugin-discovery-controller.ts:177-182
  • [P2] Clear discovery attribution on connected Gateway replacement — ui/src/pages/plugins/plugins-page.ts:306-310
Agent review details

Security

None.

PR surface

Source +1174, Tests +461, Other +128. Total +1763 across 30 files.

View PR surface stats
Area Files Added Removed Net
Source 15 1419 245 +1174
Tests 13 533 72 +461
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 129 1 +128
Total 30 2081 318 +1763

Review metrics

Metric Value Why it matters
Production versus test growth Production net +1174 lines; tests and mock support net +589 lines The new catalog interaction and presentation surface explains the production growth; the remaining defects concern behavior that current coverage does not exercise.
Gateway protocol extension 1 additional browse intent: featured The additive intent uses the existing catalog method and maps to ClawHub’s supported featured filter.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Deliver a catalog with working destinations, terminal pagination, Gateway-scoped attribution, and independently clickable author links.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Deliver a catalog with working destinations, terminal pagination, Gateway-scoped attribution, and independently clickable author links.

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

Yes, source establishes concrete triggers: open a catalog entry, advance through terminal overflow, replace a connected Gateway, or click an Explore author. No runtime execution was performed in this read-only review.

Is this the best way to solve the issue?

The shared controller and existing Gateway catalog API are appropriate, but the current patch is incomplete: navigation, pagination termination, connection invalidation, and pointer targeting need repair.

Full review comments:

  • [P1] Render the catalog destination before exposing its links — ui/src/pages/plugins/plugins-page.ts:622-625
    Featured cards and Explore rows navigate to /plugins/&lt;id>, but applyRouteData() resolves details only for the settings surface and discovery rendering always returns the catalog. Clicking or reloading these links never displays the selected plugin. Integrate the destination from codex/claw 720 plugin detail pages #137846 or defer these links, and assert destination content rather than only the pathname. This prior finding remains unresolved.
    Confidence: 0.99
  • [P2] Stop fetching terminal overflow without a continuation cursor — ui/src/pages/plugins/plugin-discovery-controller.ts:177-182
    When filtering installed entries makes one displayed page consume multiple remote pages, the final response can leave fewer than 25 overflow items and no next cursor. Advancing then enters this loop with shouldFetch = true and requests the first remote page again, repeating catalog entries and potentially keeping Next available indefinitely. Distinguish the initial fetch from draining terminal overflow. This prior finding remains unresolved.
    Confidence: 0.99
  • [P2] Clear discovery attribution on connected Gateway replacement — ui/src/pages/plugins/plugins-page.ts:306-310
    Replacing the Gateway with another already-connected source calls invalidateRequests(false), so this reset is skipped. The replacement refresh resets pagination but does not clear entriesById; entries absent from its first results retain the previous Gateway’s plugin-ID association and can give a different local plugin an incorrect author or official badge. Invalidate discovery state on identity changes before refreshing. This prior finding remains unresolved.
    Confidence: 0.98
  • [P2] Keep Explore author links above the navigation overlay — ui/src/styles/plugins.css:640-642
    This rule places the identity container in a z-index 1 stacking context beneath the primary-link overlay at z-index 2. The nested author link’s z-index 3 cannot escape its parent, so pointer clicks on the author hit catalog navigation instead. Adjust the stacking or hit-testing structure and test an actual author click; checking its href does not catch this. This prior finding remains unresolved.
    Confidence: 0.99

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 40ba595167bc.

Labels

Label justifications:

  • P2: This is a bounded catalog improvement with blocking interaction defects, without evidence of an urgent existing-user outage.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The supplied maintainer classification exempts this PR from the external-contributor setup gate. Reported mocked UI scenarios and paired ClawHub HTTP validation do not demonstrate destination rendering, terminal overflow, connected replacement, or actual author clicks; repository-required visual captures also remain outstanding.

Evidence

What I checked:

  • Prior findings remain unchanged: The comparison against the previously reviewed head changes only ui/src/e2e/plugins-hub-navigation.e2e.test.ts. A targeted comparison of the plugin implementation and stylesheet is empty, confirming that all four previously reported triggers remain unchanged. (ui/src/e2e/plugins-hub-navigation.e2e.test.ts:206, 0c9cca580922)
  • Catalog destination is not rendered: Catalog clicks navigate to /plugins/<id>, but applyRouteData resolves a detail identifier only on the settings surface. Discovery rendering always returns Installed, Featured, and Explore. The added E2E assertion verifies the pathname without checking destination content. (ui/src/pages/plugins/plugins-page.ts:622, 0c9cca580922)
  • Terminal overflow restarts browsing: fetchAvailablePage initializes shouldFetch to true even when a continuation contains terminal overflow and no cursor. If fewer than 25 buffered items remain, it requests the first remote page again. (ui/src/pages/plugins/plugin-discovery-controller.ts:180, 0c9cca580922)
  • Discovery state survives connected replacement: Identity changes no longer clear discovery state directly. invalidateRequests(false) skips discovery.invalidate(), while refresh resets pagination but retains entriesById. A connected Gateway replacement can therefore retain attribution from the previous inventory. (ui/src/pages/plugins/plugins-page.ts:309, 0c9cca580922)
  • Explore author link is below its overlay: The identity container establishes a stacking context at z-index 1, below the primary link at z-index 2. Its nested author link cannot escape that context despite its own z-index 3. (ui/src/styles/plugins.css:640, 0c9cca580922)
  • Current main and release context: Fetched main still uses the existing plugins.search discovery flow rather than this full catalog controller. Both main and the supplied latest-release tree lack the new controller and catalog-results files; no merged same-repository fixing PR was established. (ui/src/pages/plugins/plugins-page.ts:164, 40ba595167bc)

Likely related people:

  • Patrick-Erichsen: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Resolve the four findings with destination-content, terminal-overflow, connected-Gateway-replacement, and actual author-click coverage.
  • Attach sanitized before/after catalog captures, including a narrow viewport.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (39 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-09T18:10:42.391Z sha 7bfa65c :: blocked before merge. :: [P1] Render the catalog destination before exposing its links | [P2] Stop fetching terminal overflow without a continuation cursor | [P2] Clear discovery attribution on connected Gateway replacement | [P2] Keep Explore author links above the navigation overlay | [P2] Validate all twelve categories returned by the fixture | [P2] Recognize catalog IDs in the shared dynamic-route matcher
  • reviewed 2026-09-09T18:28:30.360Z sha 5a6c82a :: blocked before merge. :: [P1] Render the catalog destination before exposing its links | [P2] Stop fetching terminal overflow without a continuation cursor | [P2] Clear discovery attribution on connected Gateway replacement | [P2] Keep Explore author links above the navigation overlay | [P2] Validate all twelve categories returned by the fixture | [P2] Recognize catalog IDs in the shared dynamic-route matcher
  • reviewed 2026-09-09T18:42:48.254Z sha f05a7de :: blocked before merge. :: [P1] Render the catalog destination before exposing its links | [P2] Stop fetching terminal overflow without a continuation cursor | [P2] Clear discovery attribution on connected Gateway replacement | [P2] Keep Explore author links above the navigation overlay | [P2] Validate all twelve categories returned by the fixture
  • reviewed 2026-09-09T19:10:45.667Z sha c5c9af1 :: blocked before merge. :: [P1] Render the catalog destination before exposing its links | [P2] Stop fetching terminal overflow without a continuation cursor | [P2] Clear discovery attribution on connected Gateway replacement | [P2] Keep Explore author links above the navigation overlay | [P2] Validate all twelve categories returned by the fixture
  • reviewed 2026-09-09T19:41:00.651Z sha 70620e6 :: blocked before merge. :: [P1] Render the catalog destination before exposing its links | [P2] Stop fetching terminal overflow without a continuation cursor | [P2] Clear discovery attribution on connected Gateway replacement | [P2] Keep Explore author links above the navigation overlay | [P2] Validate all twelve categories returned by the fixture
  • reviewed 2026-09-09T20:23:36.844Z sha 09766a4 :: blocked before merge. :: [P1] Render the catalog destination before exposing its links | [P2] Stop fetching terminal overflow without a continuation cursor | [P2] Clear discovery attribution on connected Gateway replacement | [P2] Keep Explore author links above the navigation overlay | [P2] Validate all twelve categories returned by the fixture
  • reviewed 2026-09-09T21:19:02.669Z sha e717c039593f92c817159cb38b9f5ba386bcf780 :: blocked before merge. :: [P1] Render the catalog destination before exposing its links | [P2] Stop fetching terminal overflow without a continuation cursor | [P2] Clear discovery attribution on connected Gateway replacement | [P2] Keep Explore author links above the navigation overlay | [P2] Validate all twelve categories returned by the fixture
  • reviewed 2026-09-09T22:16:40.817Z sha 8c48a2f :: blocked before merge. :: [P1] Render the catalog destination before exposing its links | [P2] Stop fetching terminal overflow without a continuation cursor | [P2] Clear discovery attribution on connected Gateway replacement | [P2] Keep Explore author links above the navigation overlay

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime scripts Repository scripts size: XL maintainer Maintainer-authored PR labels Sep 4, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 4, 2026
@Patrick-Erichsen
Patrick-Erichsen marked this pull request as ready for review September 4, 2026 03:49
@clawsweeper

clawsweeper Bot commented Sep 4, 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 rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 4, 2026
@openclaw-barnacle openclaw-barnacle Bot closed this Sep 4, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Sep 4, 2026
@openclaw-barnacle openclaw-barnacle Bot closed this Sep 4, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Sep 4, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 4, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Sep 5, 2026
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-718-full-catalog-ui branch from f009777 to 3a4febf Compare September 5, 2026 16:04
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-718-full-catalog-ui branch from 71d1d63 to 1de36c0 Compare September 9, 2026 14:39
@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. label Sep 9, 2026
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-718-full-catalog-ui branch from 1de36c0 to dac3ed9 Compare September 9, 2026 14:53
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-718-full-catalog-ui branch from dac3ed9 to 8861e33 Compare September 9, 2026 14:55
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-718-full-catalog-ui branch from 8861e33 to 7215cdd Compare September 9, 2026 14:57
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-718-full-catalog-ui branch from 7215cdd to db6e3e3 Compare September 9, 2026 15:49
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 maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts 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