Master split results dtda next 4 dtda#5039
Open
dtda-odoo wants to merge 9 commits intomaster-split-results-dtdafrom
Open
Master split results dtda next 4 dtda#5039dtda-odoo wants to merge 9 commits intomaster-split-results-dtdafrom
dtda-odoo wants to merge 9 commits intomaster-split-results-dtdafrom
Conversation
|
This PR targets the un-managed branch odoo-dev/odoo:master-split-results-dtda, it needs to be retargeted before it can be merged. |
d10e0bd to
538b8a2
Compare
*= 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 6 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.
- Display max 30 results proportionally devided to each group
- Groups are rendered in a fixed priority order
- 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>
*: 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
- Consolidate redundant search templates into a single template for all scenarios. - Revert keyboard navigation changes to align with the new layout. - Filter tags in search results to display only those matching the search term (previously, all tags were shown if any matched). - Remove unused fields from fetch_fields and their corresponding mappings. - Clean up search_type filters to include only necessary parameters. - When a search term matches the name or search_meta_data, hide description and tag fields. - Fix search functionality within forum/* pages. - Distribute the global result limit proportionally across result groups based on their contribution to total matches. task-5264317 Co-authored-by: Divyesh Vyas <divy@odoo.com> Co-authored-by: dtda-odoo <dtda@odoo.com>
538b8a2 to
f1a717e
Compare
f1a717e to
cb0d795
Compare
This commit adds test case for search bar
5bfe2b8 to
1aa56c0
Compare
8b66713 to
683c168
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.