dosubot[bot] commented on issue #37356:
URL: https://github.com/apache/superset/issues/37356#issuecomment-3783289316

   <!-- Answer -->
   The sidebar label for filters and customizations doesn't update in real time 
because both the filter name input and the sidebar state use debounced 
handlers. The input field's onChange and the modal's onValuesChange are both 
wrapped in debounce functions (using Constants.SLOW_DEBOUNCE), so updates to 
the sidebar label only happen after a delay or when you click elsewhere. This 
is controlled in the FiltersConfigForm and FiltersConfigModal components, and 
the sidebar list uses the getFilterTitle helper to display the current name 
from the debounced state. If you want real-time updates, you can reduce the 
debounce delay or remove debounce from these handlers to make the sidebar 
reflect changes as you type [see code 
reference](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigModal.tsx#L152-L778).
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/531fe804-34d3-4a4f-b67c-16647f18eb91?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/531fe804-34d3-4a4f-b67c-16647f18eb91?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/531fe804-34d3-4a4f-b67c-16647f18eb91?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/531fe804-34d3-4a4f-b67c-16647f18eb91?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/531fe804-34d3-4a4f-b67c-16647f18eb91?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/531fe804-34d3-4a4f-b67c-16647f18eb91?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/531fe804-34d3-4a4f-b67c-16647f18eb91?feedback_type=other)</sup>
   
   [![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20sidebar%20label%20for%20filters%20and%20customizations%20doesn%27t%20update%20in%20real%20time%20because%20both%20the%20filter%20name%20input%20and%20the%20sidebar%20state%20use%20debounced%20handlers.%20The%20input%20field%27s%20onChange%20and%20the%20modal%27s%20onValuesChange%20are%20both%20wrapped%20in%20debounce%20functions%20%28using%20Constants.SLOW_DEBOUNCE%29%2C%20so%20updates%20to%20the%20sidebar%20label%20only%20happen%20after%20a%20delay%20or%20when%20you%20click%20elsewhere.%20This%20is%20controlled%20in%20the%20FiltersConfigForm%20and%20FiltersConfigModal%20components%2C%20and%20the%20sidebar%20list%20uses%20the%20getFilterTitle%20helper%20to%20display%20the%20current%20name%20from%20the%20debounced%20state.%20If%20you%20want%20
 
real-time%20updates%2C%20you%20can%20reduce%20the%20debounce%20delay%20or%20remove%20debounce%20from%20these%20handlers%20to%20make%20the%20sidebar%20reflect%20changes%20as%20you%20type%C2%A0%5Bsee%20code%20reference%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigModal.tsx%23L152-L778%29.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/37356)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to