Repository navigation
Add Installed plugin search and facets - #2945
SawyerHood wants to merge 3 commits into
Conversation
|
🚨 SLOP COP 🚨 · I am the Slop Cop. I am reviewing this pull request for security, code quality, performance, architecture, and end-to-end behavior. |
There was a problem hiding this comment.
🚨 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 ascdexandodex. - 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.
cb2d31a to
c3ab175
Compare
987987a to
22f22a5
Compare
c3ab175 to
abe1f46
Compare
22f22a5 to
048a893
Compare
048a893 to
f0983e6
Compare
Use one category sentinel and option builder across Browse and Installed. Expose facet counts to assistive technology and simplify URL search state.
f0983e6 to
92f08dd
Compare
|
Closing by owner decision: the Installed tab keeps its current list without search and facets. Nothing else in the chain depends on this layer.
|
## 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 |  |  | | Plugin detail |  |  | ## 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
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
How you verified
pnpm exec turbo run test --filter=@bb/apppassed 3,774 tests. Four tests were skipped.pnpm exec turbo run test --filter=@bb/shared-uipassed its available task.pnpm exec turbo run typecheck --filter=@bb/apppassed.pnpm exec turbo run typecheck --filter=@bb/shared-uipassed.codexquickly and found the complete text in the input and URL.Fixes #N/A