rk-roshan-kr opened a new pull request, #714:
URL: https://github.com/apache/fineract-backoffice-ui/pull/714

   ## Description
   
   When navigating to `/search` or `/search?q=query`, focus was not 
automatically placed on the search input, requiring users to explicitly click 
the input field before typing or updating their query.
   
   This change:
   1. Adds autofocus support to the search input in `GlobalSearchComponent` 
using both `[autofocus]="true"` and a `setFocus()` call in `ngAfterViewInit()` 
via `viewChild`.
   2. Listens to `route.queryParamMap` to automatically populate `query` and 
execute the search when arriving at `/search?q=...`.
   3. Adds comprehensive unit test coverage in 
`global-search.component.test.ts` verifying initial rendering, autofocus 
trigger, query parameter handling, search execution, row routing, and API error 
resilience.
   
   ## Validation
   
   - Verified unit tests in `global-search.component.test.ts`.
   - Verified linting: `npx eslint` passed with 0 errors.
   - Verified formatting: Prettier checks passed cleanly.
   
   Closes #327
   


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