Skip to content

Add Installed plugin search and facets - #2945

Closed
SawyerHood wants to merge 3 commits into
mainfrom
installed-facets
Closed

SawyerHood wants to merge 3 commits into
mainfrom
installed-facets

Conversation

@SawyerHood

@SawyerHood SawyerHood commented Sep 2, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The Installed page used one publisher filter because normalized plugin records omitted source and category catalog data. Its search and filter state also stayed outside the URL.

What changed

This layer adds State, Source, and Category facets with item counts. Selections use OR inside each facet and AND across facets and search. Search covers the plugin name, identifier, description, version, and displayed source. The URL stores the query and repeated facet values without delaying input.

Browse and Installed now use the same uncategorized value and category option builder. The State and Source counts are part of each option name.

The Git facet includes direct HTTP and HTTPS sources. Saved built-in categories use their standard labels.

The empty state now clears all active filters. Existing update, enable, disable, details, uninstall, local-source, and uncategorized behavior remains available.

The prerequisite layer is #2941. This layer changes no host daemon wire data. It needs no CLI, guide, or protocol update.

Screenshots

State Before After
Facets open Installed page before the new facets Installed page with the State facet and counts
Filtered results Installed page with one search result before this layer Installed page with five disabled plugins
Empty state Installed page empty state before this layer Installed page empty state with the clear action

How you verified

  • pnpm exec turbo run test --filter=@bb/app passed 3,774 tests. Four tests were skipped.
  • pnpm exec turbo run test --filter=@bb/shared-ui passed its available task.
  • pnpm exec turbo run typecheck --filter=@bb/app passed.
  • pnpm exec turbo run typecheck --filter=@bb/shared-ui passed.
  • Doobie verified the three Installed states at 1440 by 900 pixels.
  • Doobie entered codex quickly and found the complete text in the input and URL.
  • The focused Installed and Browse suites passed 51 tests.
  • One SlopCop review found four problems. This layer fixes all four problems.

Fixes #N/A

AGENT GENERATED

@SawyerHood
SawyerHood marked this pull request as ready for review September 2, 2026 18:09
@bb-slop-cop

bb-slop-cop Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🚨 SLOP COP 🚨 · review

I am the Slop Cop. I am reviewing this pull request for security, code quality, performance, architecture, and end-to-end behavior.

@bb-slop-cop bb-slop-cop Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚨 SLOP COP 🚨 · review

Plain English summary: This pull request adds search and State, Source, and Category filters to the Installed plugins page. It saves filters in the URL, shows item counts, and adds a clear action.

I found three behavior problems.

  • Fast typing loses search characters. A real browser typed codex, but common input speeds produced partial values such as cdex and odex.
  • Search no longer matches plugin versions or displayed sources. The prior Installed search matched both fields.
  • The Git facet excludes supported plugins installed from direct HTTP or HTTPS Git URLs.

I also found a category-label defect. A saved known category can show its raw identifier when it has no installed matches.

The category option builder repeats the Browse category builder. This duplication already caused the label rules to differ.

The three new normalized list fields are optional, although the converter always supplies explicit null values. They should be required and nullable.

The security review found no security issue. The performance review found no material performance issue.

The local browser test opened the Installed page and checked all three filter controls. It verified State counts of 16 enabled and five disabled plugins.

It also verified combined URL state, an empty result, and the Clear filters action. Those paths worked.

The focused tests passed all 34 tests. The @bb/app Turbo type check passed. git diff --check passed.

I would fix the search input, restore the removed search fields, and correct Git source classification before merge.

@SawyerHood
SawyerHood force-pushed the browse-category-shelves branch 2 times, most recently from cb2d31a to c3ab175 Compare September 2, 2026 19:01
@SawyerHood
SawyerHood force-pushed the browse-category-shelves branch from c3ab175 to abe1f46 Compare September 2, 2026 19:09
Base automatically changed from browse-category-shelves to main September 2, 2026 19:37
Use one category sentinel and option builder across Browse and Installed. Expose facet counts to assistive technology and simplify URL search state.
@SawyerHood

Copy link
Copy Markdown
Collaborator Author

Closing by owner decision: the Installed tab keeps its current list without search and facets. Nothing else in the chain depends on this layer.

AGENT GENERATED

@SawyerHood SawyerHood closed this Sep 2, 2026
SawyerHood added a commit that referenced this pull request Sep 3, 2026
## 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

| State | Before | After |
| --- | --- | --- |
| Author page | ![Browse had author text without an author
page](https://github.com/user-attachments/assets/b484f819-406d-44d9-8258-3a9efca19207)
| ![The BB author page shows 26
plugins](https://github.com/user-attachments/assets/7684220c-1af5-4b8a-a4d5-ea808d27ff0d)
|
| Plugin detail | ![The plugin detail ended after
Details](https://github.com/user-attachments/assets/b59e7940-e603-4351-97b6-4f7a1c0b644d)
| ![The plugin detail shows four plugins from this
author](https://github.com/user-attachments/assets/5cea2209-3eac-4b04-b2de-dd8fd3266c45)
|

## How you verified

- `pnpm exec turbo run typecheck --filter=@bb/app
--filter=@bb/shared-ui` passed.
- `pnpm exec turbo run test --filter=@bb/app --filter=@bb/shared-ui
--force` passed.
- The app suite passed 3,800 tests. Four tests remained skipped.
- Shared UI has no test script. Turbo included it in the requested
scope.
- The server catalog test passed 44 tests.
- The Plugin API map suite passed 76 tests.
- New tests cover header alignment, author name selection, filters,
sorts, URL history, focus return, related limits, and full-page
navigation.
- Doobie verified the author page and related-plugin detail at 1440 by
900 pixels.
- Doobie verified that a tag-only search returns plugins from the
selected author.
- The browser console showed no errors during the final checks.

Fixes #N/A

> AGENT GENERATED
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