Repository navigation
fix(plugins): show the remove button in the ask ai conversation history - #487
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run reviewed the CSS fix that unhides the Ask AI conversation-history remove (×) button, plus its regression test and changeset. Mode: standard. Verdict: READY.
- Scoped show rule in
style.css:.DocSearch-Sidepanel-RecentConversation .DocSearch-Hit-action-button { display: block; }(0,2,0) beats thedisplay:nonebase rule from@docsearch/[email protected]dist/style.css(0,1,0). I checked this against the installed package. The rule only applies inside the sidepanel row, so the dialog still shows the button only when a hit is selected.ConversationHistoryScreenin@docsearch/sidepanel-jsis the only place the sidepanel uses that class, which agrees with the PR's audit. - Regression test
style.test.ts: asserts both the upstream hide rule (it matches the minified 5.2.0 output) and the plugin's override.@docsearch/cssis a direct devDependency, so thenode_modulespath resolves under pnpm. - Changeset: patch for
@docubook/plugin-search-algoliaonly. The plugin is not in the linked set, so no other package versions.
claude-opus-5-5 | 𝕏
The Sidepanel renders each stored conversation with a remove button that reuses the search dialog's .DocSearch-Hit-action-button class. The dialog stylesheet (@docsearch/css style.css) hides that class with display:none and shows it only inside .DocSearch-Hit[aria-selected=true], and sidepanel.css never styles it. The plugin loads both stylesheets, so the button stayed hidden and a conversation could not be removed from the history. The plugin's stylesheet now shows .DocSearch-Hit-action-button inside .DocSearch-Sidepanel-RecentConversation. It is the only dialog class the Sidepanel reuses that the dialog stylesheet hides. A test checks both the upstream rule that hides the button and the plugin rule that shows it.
gitfromwildan
force-pushed
the
fix/algolia-history-remove-button
branch
from
November 6, 2026 06:21
6712bbb to
652cbc1
Compare
This was referenced Nov 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
In Ask AI's conversation history (⋮ → Conversation history), the remove (×) button next to each conversation never showed, so a stored conversation could not be removed. The button is now visible and works.
Cause
@docsearch/sidepanel-js5.2.0 renders the remove button with the search dialog's class,.DocSearch-Hit-action-button.@docsearch/css/dist/style.css) hides that class withdisplay: none. It only shows the button inside a selected search hit,.DocSearch-Hit[aria-selected=true].sidepanel.cssnever styles the class. So the button shows when the Sidepanel is used on its own, but this plugin loads both stylesheets for its two surfaces, and the dialog rule hides it.The removal logic itself works.
conversations.remove()filters the item and writes__DOCSEARCH_ASKAI_CONVERSATIONS__<appId>to localStorage. The click just never reached it.Fix
src/client/style.cssshows.DocSearch-Hit-action-buttoninside.DocSearch-Sidepanel-RecentConversation. With specificity 0,2,0 this rule outranks the dialog's 0,1,0, and it does not affect the dialog.display: nonerules. This is the only one affected.src/__tests__/style.test.tschecks both sides: the upstream rule that hides the button, so a DocSearch upgrade that changes it gets noticed, and the plugin rule that shows it. The test fails onmain.@docubook/plugin-search-algoliapatch, 0.1.2.Verification
Reproduced and fixed in headless Chromium.
main, with 3 conversations seeded in localStorage. Steps: Ask AI → ⋮ → Conversation history → click × on the first conversation.docs-oldisassets/docsearch/as published in 0.1.0.docs-newis the same build with this branch'sdist/clientcopied over it, which is what the plugin'sonEndcopies.display: none, cannot be clickeddisplay: block, 22×22 pxconv-2,conv-3storedA screenshot of the new version shows × on every row, accented on hover.
Checks. Plugin tests (37, including the new one),
tsc --noEmit,oxlint, the plugin build (the rule is indist/client/style.css), the pre-push hooks andscripts/check-release-plan.mjs(6 scenarios) pass.After merge
The release workflow adds
@docubook/plugin-search-algolia0.1.2 to the Release PR. The docs site pulls the plugin from npm (^0.1.0), so it gets the fix on the next lockfile update after 0.1.2 is published.