[ 
https://issues.apache.org/jira/browse/ATLAS-5412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18117243#comment-18117243
 ] 

ASF subversion and git services commented on ATLAS-5412:
--------------------------------------------------------

Commit 14d8b26a87a5d2399bc300d3941521f9d1075006 in atlas's branch 
refs/heads/ATLAS-5411_UI_fix from Prasad Pawar
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=14d8b26a8 ]

ATLAS-5411: ATLAS-5412: ATLAS-5369: Atlas UI: React UI Audit tab show deleted 
entity references with Classic UI styling, Search Button, Businessmetada 
options as dropdown


> Atlas UI: React UI Quick Search: disable Search button and block 
> empty/whitespace submit
> ----------------------------------------------------------------------------------------
>
>                 Key: ATLAS-5412
>                 URL: https://issues.apache.org/jira/browse/ATLAS-5412
>             Project: Atlas
>          Issue Type: Bug
>          Components: atlas-webui
>    Affects Versions: 3.0.0
>            Reporter: Prasad P. Pawar
>            Assignee: Prasad P. Pawar
>            Priority: Major
>
> Quick Search (dashboard center and header) should not allow search with an 
> empty or whitespace-only query. The Search button must stay disabled until 
> the user enters at least one non-whitespace character. Enter key and button 
> click must not navigate or submit a wildcard {{query=*}} search.
> h3. Problem
> Previously, submitting empty search could trigger navigation with a wildcard 
> query ({{{}*{}}}), returning overly broad results and poor UX.
> h3. Expected behavior
>  * Search button disabled when input is empty or whitespace-only
>  * Search button enabled when input has ≥1 non-whitespace character
>  * Click Search with empty input → no navigation
>  * Press Enter with empty input → no navigation
>  * Valid query → navigates to {{/search/searchResult?query=...}}
> h3. Scope
>  * {{QuickSearch}} component (used in dashboard center and header)
>  * Does not affect Advanced Search modal
> h3. Technical approach
>  * {{hasValidSearchQuery(value)}} → {{value.trim().length > 0}}
>  * {{disabled=\{!isSearchEnabled}}} on Search {{CustomButton}}
>  * Early return in {{handleSubmitSearch}} and Enter handler when invalid
> h3.  
> h3. Test plan
>  * Manual: dashboard home + header search bar
>  * Automated: {{QuickSearch.test.tsx}} → {{Search Button Validation}} 
> describe block
>  * Verify no {{query=*}} in URL after empty submit attempts



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to