fix(knowledge): fix search input flicker on clear and plan display name fallback#3810
fix(knowledge): fix search input flicker on clear and plan display name fallback#3810waleedlatif1 merged 1 commit intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Prevents the workspace header plan label from rendering as Written by Cursor Bugbot for commit e884c1a. Configure here. |
Greptile SummaryThis PR fixes two independent bugs: a search input flicker in the Knowledge page, and a stale plan display name computation in the workspace header.\n\n- Search flicker fix ( Confidence Score: 5/5This PR is safe to merge — both changes are targeted bug fixes with no side effects. No P0 or P1 issues found. The search fix correctly separates live input state from debounced filter state, and filtering still uses No files require special attention. Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Input as Search Input
participant State as searchInputValue
participant Timer as Debounce Timer
participant Filter as debouncedSearchQuery
User->>Input: Types "test"
Input->>State: setSearchInputValue("test") (immediate)
Input->>Timer: clearTimeout + setTimeout 300ms
Timer-->>Filter: setDebouncedSearchQuery("test") [after 300ms]
Note over Input,State: Input shows "test" immediately
User->>Input: Clicks Clear
Input->>State: setSearchInputValue("") (immediate)
Input->>Timer: clearTimeout + setTimeout 300ms
Note over Input,State: Input clears immediately (bug fixed)
Timer-->>Filter: setDebouncedSearchQuery("") [after 300ms]
Note over Filter: Results fully cleared after 300ms
Reviews (1): Last reviewed commit: "fix(knowledge): fix search input flicker..." | Re-trigger Greptile |
Summary
searchInputValueseparately fromdebouncedSearchQueryso SearchSection always sees the live valuehandleSearchClearAllas a stableuseCallbackinstead of an inline arrow insideuseMemoplanDisplayNamein workspace header returning"undefined Plan"whenshowPlanInfois false — default to empty stringType of Change
Testing
Tested manually
Checklist