Skip to content

Order the BB Official shelf: optional plugins first, then on-by-default, each newest first - #5335

Open
brsbl wants to merge 3 commits into
mainfrom
bb/official-shelf-trending
Open

brsbl wants to merge 3 commits into
mainfrom
bb/official-shelf-trending

Conversation

@brsbl

@brsbl brsbl commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The BB Official shelf listed plugins in bundled-registry order, so its first cards never changed. Most of those cards were plugins every user already has. Production web builds also omitted publication dates because their checkout was shallow.

What changed

  • The BB Official shelf now lists plugins you can add or turn on first, newest first.
  • Plugins that are on by default come last, also newest first.
  • The bundled catalog generator computes this order once, so the app, bb plugin search and getbb.app all read the same order.
  • No runtime ranking, stats fields or wire changes.
  • Web deploys fetch full git history and use a fresh Turbo cache namespace, so getbb.app keeps publication dates.

How you verified

  • Remote CI passed on 52dc5f8d9: 45 passed and 3 skipped. A flaky Windows host-daemon timing test passed on rerun. Run
  • Generator tests cover the grouping, newest-first order and undated entries.
  • A generator test checks that the built catalog matches the rule.
  • The app (headless Chrome 155, bb Browser Automation) and a local getbb.app both show optional plugins first on head 52dc5f8d9.

BB Official shelf · bb app and getbb.app

Before: 59a1fcc (equivalent to base e9ad6b0 for these surfaces; the only change between them is under apps/web/src/guides) · After: 52dc5f8 · Captured at 2×

Screen / state Viewport Before After
App · Browse / BB Official shelf Desktop · 1440×900 Before app browse desktop After app browse desktop
App · Browse / BB Official shelf Mobile · 390×844 Before app browse mobile After app browse mobile
App · View all BB Official Desktop · 1440×900 Before app view all After app view all
getbb.app · /marketplace BB Official shelf Desktop · 1440×900 Before web desktop After web desktop
getbb.app · /marketplace BB Official shelf Mobile · 390×844 Before web mobile After web mobile

BB-Thread-ID: thr_kxipfsmu7x

AGENT GENERATED

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-10T16:35:18.522958Z 37bb19c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 37bb19cd3e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +32 to +33
trending: recent >= TRENDING_MIN_RECENT_INSTALLS,
score: recent / (ageDays + 2) ** TRENDING_GRAVITY,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Expire stale recent-install signals before ranking

When the stats sidecar stops refreshing, the server deliberately retains the stored statsJson after fetch failures, but this ranking treats its recentInstalls as current forever and never considers the sidecar's generatedAt. A plugin that once crossed the five-install threshold therefore remains in the privileged trending cohort indefinitely—even weeks after the cached window ceased being recent—and can continue outranking newly published plugins. Preserve the generation timestamp and ignore or age out recentInstalls once the snapshot is stale.

Useful? React with 👍 / 👎.

@brsbl brsbl changed the title Rank the BB Official shelf with the community trending algorithm Rank the BB Official shelf by trending installs and recency Oct 10, 2026
Optional plugins (install on request or off by default) come first and plugins on by default come last, each newest first. The order is computed once by the bundled catalog generator, which replaces runtime trending and the recentInstalls stats field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@brsbl brsbl changed the title Rank the BB Official shelf by trending installs and recency Order the BB Official shelf: optional plugins first, then on-by-default, each newest first Oct 10, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant