Repository navigation
Add in-app plugin author pages - #2952
Conversation
| const github = pluginAuthorGithub(entry.author); | ||
| const identity = | ||
| github === null | ||
| ? `${NAME_AUTHOR_PREFIX}${entry.author.name}` |
There was a problem hiding this comment.
🚨 slopcop/review — P2: This key can merge different authors.
The fallback uses only the exact author name. Two authors in one marketplace can share a name and use different URLs. Their pages and related lists then merge. The page also shows the first record URL above both plugin sets. Use a stable author identifier. If none exists, include the canonical URL in the fallback key.
| entry: Pick<PluginCatalogSearchEntry, "author" | "marketplace">, | ||
| ): string | null { | ||
| if (entry.author === null) return null; | ||
| const github = pluginAuthorGithub(entry.author); |
There was a problem hiding this comment.
🚨 slopcop/review — P2: This code loses an explicit GitHub identity.
Marketplace data can include a GitHub login and a separate website. The server keeps only the website in the author contract. This code then uses the display name. One GitHub author can split across pages when entries use different display names. Add the normalized GitHub login to the author contract. Use that login as the primary identity.
| ): boolean { | ||
| const normalizedQuery = query.trim().toLocaleLowerCase(); | ||
| if (normalizedQuery === "") return true; | ||
| return [ |
There was a problem hiding this comment.
🚨 slopcop/review — P2: A tag-only Browse query becomes an empty author page.
The server search includes plugin tags. This local search omits them. The author link keeps the current query. I reproduced this with the agent-interaction tag. Browse showed seven plugins. The selected author page then showed no matches. Use the same search data and rules on both pages. Add a test for a tag-only query.
There was a problem hiding this comment.
🚨 SLOP COP 🚨 · review
Plain English summary
This PR lets users select a plugin author and see that author's plugins. Plugin detail pages also show up to four plugins from that author.
Findings
I found three P2 defects that should be fixed before merge.
- The name fallback can merge two different authors. The page can then show one author's link above another author's plugins.
- The catalog contract can discard an explicit GitHub login. The same author can then split across pages when display names differ.
- The author page omits tags from its search. A tag-only Browse result becomes empty after a user selects its author.
I left an inline comment for each defect.
Architecture
The author page repeats the Browse search, filter, sort, and URL state logic. This duplication caused the tag-search mismatch.
A shared browse-state and search model would remove this drift. The author page also repeats the URL label helper.
Security and performance
I found no direct XSS, SSRF, route injection, permission bypass, or unsafe state change. The author merge creates the trust issue above.
I found no material performance defect. One marketplace has a 256-entry limit, so the page cannot create thousands of cards from one author key.
Verification
- The focused Turbo run passed 54 tests in five files.
- The Turbo type check for
@bb/apppassed. - The browser passed author-page navigation and related-plugin navigation.
- The browser reproduced the tag-search defect with the
agent-interactionquery. - GitHub reports both current checks as passed.
The full app test attempt showed unrelated failures during heavy concurrent test work. I stopped that run and used the focused run above.
I posted this as a comment. I did not approve the pull request or request changes.
f0983e6 to
92f08dd
Compare
1503043 to
1f2bf32
Compare
b3f10d1 to
1347fbd
Compare
1347fbd to
1b4cdbb
Compare
Human comments
What was wrong
Browse cards and plugin details showed author data without an in-app author route. The detail panel also omitted related plugins from the same author.
What changed
This layer adds in-app author links to Browse cards and plugin details. Each link opens one author page with compatible plugins from one marketplace.
The author page keeps search, category, and sort state in the URL. It supports Featured, Recently added, and Most installed sorts.
The author header uses the same centered width as the toolbar and card grid. It stays aligned when a detail panel is open.
The header uses the most frequent author name. It uses the longest name when counts are equal.
Plugin details now show up to four other plugins from the same author. A related item keeps the current detail presentation.
Author identity uses a normalized GitHub login when available. It uses the exact author name otherwise. Marketplace identity prevents entries from different marketplaces from merging.
This PR targets
main. It contains no code from the closed PR #2945.This PR is intended for a squash merge. Intermediate commits import a file that existed only in the closed PR #2945.
This layer changes no host daemon wire data. It needs no CLI, guide, or protocol update.
The catalog response now includes the author's GitHub login. The Plugin SDK inventory records this contract change.
Visual QA
How you verified
pnpm exec turbo run typecheck --filter=@bb/app --filter=@bb/shared-uipassed.pnpm exec turbo run test --filter=@bb/app --filter=@bb/shared-ui --forcepassed.Fixes #N/A