feat: ask AI hint when no search results#174
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
superwall-docs-staging | 15e99f4 | Commit Preview URL Branch Preview URL |
Apr 20 2026, 09:57 PM |
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.
This adds an Ask AI hint state to the docs search dialog when a settled search returns no results.
It smooths the hint behavior across debounce/loading transitions so the button does not flicker off and on while the user changes a query.
The shimmer is clipped inside a dedicated child layer so the existing keyboard-shortcut tooltip still renders outside the button.
Validated with
bun testandbun run build:cf.Note
Low Risk
Low risk UI-only change that adds debounced state tracking around search results; main risk is minor UX regressions (hint not appearing/clearing correctly).
Overview
When a docs search query settles with no results, the Search Dialog now activates an Ask AI hint state instead of leaving the button unchanged.
This adds debounced tracking of
searchvs results loading to prevent flicker during typing/loading, and updates the Ask AI button to exposedata-ai-hintand apply a shimmer/border highlight (with reduced-motion fallback) via new.ask-ai-button*CSS.Reviewed by Cursor Bugbot for commit 15e99f4. Bugbot is set up for automated code reviews on this repo. Configure here.