Aias00 opened a new issue, #4354:
URL: https://github.com/apache/rocketmq-dashboard/issues/4354

   ## Problem
   
   On the Studio Proxy page, the Cluster ID input is initialized from  and 
defaults to . When an operator clears the input,  updates React state to an 
empty string but does not remove or overwrite the persisted value. A page 
reload then restores the stale cluster id, so the cleared filter is not durable.
   
   ## Current behavior
   
   1. Enter a custom Cluster ID on the Proxy page.
   2. Clear the Cluster ID input.
   3. Reload the page.
   4. The previously persisted Cluster ID is restored from localStorage.
   
   ## Expected behavior
   
   Clearing the Cluster ID input should clear the persisted value too. After 
reload, the page should fall back to the default value instead of resurrecting 
the stale custom value.
   
   ## Design / implementation plan
   
   - Keep the existing state behavior: the input may be temporarily empty while 
the operator edits it.
   - When  receives a non-empty value, continue writing it to localStorage.
   - When it receives an empty value, remove the  localStorage entry instead of 
leaving the previous value behind.
   - Add a focused frontend regression test around the Proxy page 
initialization and clear behavior.
   
   ## Scope
   
   Frontend-only fix in the Proxy page/localStorage helper usage. No backend 
contract change.


-- 
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]

Reply via email to