GaneshPatil7517 opened a new pull request, #1465:
URL: https://github.com/apache/camel-website/pull/1465

   ## Summary
   Fixes #1459 - Improves search box behavior by prioritizing core Camel 
documentation over component pages and preventing UI overflow issues.
   
   ## Changes
   - **Input length limit**: Added 200 character maximum to search input (HTML 
`maxlength` + JS validation)
   - **Core docs prioritization**: Search results now rank core documentation 
first:
     - `/manual/`
     - `/user-guide/`
     - `/architecture/`
     - `/getting-started/`
     - `/faq/`
   - **Component deprioritization**: Component pages (`/components/`) now rank 
lower in results
   - **UI overflow prevention**: Added CSS constraints (`max-width: 600px`, 
`min-width: 300px`) to search dropdown
   
   ## Technical Details
   - Fetch 20 results from Algolia, then filter/sort to top 10
   - Sorting logic: core docs → other docs → components
   - Input validation applied both via HTML attribute and JavaScript event 
listener
   
   ## Testing
   -  UI bundle builds successfully (`yarn build`)
   -  Input stops at 200 characters
   -  Search dropdown does not overflow
   - 10 results display correctly
   -  Core docs appear before component pages when searching terms like 
"endpoint", "exchange", "message"
   -  No console errors


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