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

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

Commit e248e7bd2cbe2a9045c4929a40ee4a9f8d03e693 in atlas's branch 
refs/heads/master from Prasad Pawar
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=e248e7bd2 ]

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 (#764)

Co-authored-by: Prasad Pawar <[email protected]>

> 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
>         Attachments: Screenshot 2026-09-16 at 3.14.57 PM.png, Screenshot 
> 2026-09-16 at 6.59.12 PM.png
>
>
> 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