[FIX] website: force color to o_cc1 for search menu#5027
Open
dtda-odoo wants to merge 8 commits intomaster-split-results-dtdafrom
Open
[FIX] website: force color to o_cc1 for search menu#5027dtda-odoo wants to merge 8 commits intomaster-split-results-dtdafrom
dtda-odoo wants to merge 8 commits intomaster-split-results-dtdafrom
Conversation
*= portal_rating, test_website, website_blog, website_event,
website_event_exhibitor, website_event_track, website_forum,
website_hr_recruitment, website_sale, website_slides
This commit refactors website search templates across all entry points
(header search, snippets, per-model search) to replace the single
combined result list (max 5 items) with group-based, per-model results,
providing structured result grouping, predictable ordering, and a
cleaner foundation for model-specific templates and data handling.
This commit:
- Introduce grouped search architecture:
- Each group is self-contained with metadata, template, and data.
- Each group shows up to 6 results in quick search.
- Groups are rendered in a fixed priority order:
- Pages (website.page)
- Products & Categories (product.template, product.public.category)
- Events (event.event)
- Appointments (appointment.type)
- Blogs (blog.blog, blog.post)
- Courses (slide.channel, slide.slide)
- Jobs (hr.job)
- Knowledge Articles (knowledge.article)
- Forum (forum.forum, forum.post)
- Introduce a dedicated full search page:
- Displays up to 24 results per group.
- Supports incremental loading via Load more.
- Make search rendering model-driven and template-based, removing the
previously enforced fixed field mapping (icon, image, name,
description, details) so each model fully controls what data is sent,
how it is rendered, and can expose any number of fields with custom
mappings when field - semantics differ.
Redesign search response payload to a group-centric JSON structure:
```json
{
"results": {
"<group_key>": {
"groupName": "<string>",
"templateKey": "<qweb_template>",
"searchCount": <int>,
"data": []
}
},
"results_count": <int>,
"parts": {
"<field_name>": true
},
"fuzzy_search": <bool>
}
```
task-5264317
Co-authored-by: Divyesh Vyas <divy@odoo.com>
Issue: Arrow key navigation for search result items regressed with the new search bar layout. The previous logic in onKeydown was no longer triggered due to the updated DOM structure. Fix: Introduce a dedicated onSearchResultKeydown handler and wire it to search result items. The new method restores ArrowUp and ArrowDown focus management while keeping the existing input keydown behavior unchanged. Added a complete test case to cover arrow key navigation in search results. task-5424392 Co-authored-by: dtda-odoo <dtda@odoo.com>
*: portal, test_website,website, website_blog, website_event, website_event_exhibitor, website_event_track, website_forum, website_hr_recruitment, website_sale, website_slides The goal is to declutter the search result, showing a consistent list with only the necessary information. task-5431465
When performing a search the results takes a bit of time to render, it was necessary to provide feedback to the user that the search went through. A skeleton loader provides feedback while previewing the upcoming result. task-5431465
*: website_blogs, website_forum, website_sale, website_slides + website_slides don't show slide_slide in local search + website_sale remove categories from product search task-5431465
*: website,website_blog, website_event,website_event_exhibitor, website_event_track, website_forum, website_hr_recruitment, website_sale, website_slides - Switch search to dialog when suitable - Improve search feedback with the dynamic submit button - Simplify search input designs - Review each call of the search_input template to ensure consistency task-5431465
Drop redundant search templates and rely on a single template for all scenarios. This commit revert the keyboard nevigation stuff considering the new layout. Before this commit: The search result display all the tags of the searched element irrespective of the matched tag. If any of tag matches with the searched term, all tags are displayed. After this commit: The tags are filtered to show only display the matched tag with searched term; extra tags are not passed into result. This commit removes the not used fields from fetch_fields and mapping. This commit cleans up search_type filter so that only necessary filters are present in params when search team is found in name or search_meta_data, the description or tags fields are not displayed also added descroiption in all models Before this commit the search inside a `forum/*` pages was not working. Distribute a global result limit proportionally across groups based on their contribution to the total results task-5264317 Co-authored-by: Divyesh Vyas <divy@odoo.com> Co-authored-by: dtda-odoo <dtda@odoo.com>
|
This PR targets the un-managed branch odoo-dev/odoo:master-split-results-dtda, it needs to be retargeted before it can be merged. |
ede3af7 to
bb62eca
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.