Skip to content

Commit

Permalink
[ACS-5181] Introduce logical search filter (#3245)
Browse files Browse the repository at this point in the history
* [ACS-5181] Introduce logical search filter

* [ACS-5181] Correct filters order
  • Loading branch information
MichalKinas committed Jun 5, 2023
1 parent f4600b5 commit 919767e
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 1 deletion.
13 changes: 13 additions & 0 deletions app/src/app.config.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,19 @@
"TAG"
],
"categories": [
{
"id": "logic",
"name": "SEARCH.CATEGORIES.LOGIC",
"enabled": true,
"component": {
"selector": "logical-filter",
"settings": {
"allowUpdateOnChange": false,
"hideDefaultAction": true,
"field": "cm:name,cm:title,cm:description,TEXT,TAG"
}
}
},
{
"id": "queryName",
"name": "SEARCH.SEARCH_HEADER.FILTERS.NAME.TITLE",
Expand Down
13 changes: 13 additions & 0 deletions app/src/assets/plugins/app.search.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,19 @@
}
},
"categories": [
{
"id": "logic",
"name": "SEARCH.CATEGORIES.LOGIC",
"enabled": true,
"component": {
"selector": "logical-filter",
"settings": {
"allowUpdateOnChange": false,
"hideDefaultAction": true,
"field": "cm:name,cm:title,cm:description,TEXT,TAG"
}
}
},
{
"id": "createdDateRange",
"name": "SEARCH.CATEGORIES.CREATED_DATE",
Expand Down
39 changes: 39 additions & 0 deletions projects/aca-content/assets/app.extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -1485,6 +1485,19 @@
}
},
"categories": [
{
"id": "logic",
"name": "SEARCH.CATEGORIES.LOGIC",
"enabled": true,
"component": {
"selector": "logical-filter",
"settings": {
"allowUpdateOnChange": false,
"hideDefaultAction": true,
"field": "cm:name,cm:title,cm:description,TEXT,TAG"
}
}
},
{
"id": "size",
"name": "SEARCH.CATEGORIES.SIZE",
Expand Down Expand Up @@ -1641,6 +1654,19 @@
]
},
"categories": [
{
"id": "logic",
"name": "SEARCH.CATEGORIES.LOGIC",
"enabled": true,
"component": {
"selector": "logical-filter",
"settings": {
"allowUpdateOnChange": false,
"hideDefaultAction": true,
"field": "cm:name,cm:title,cm:description,TEXT,TAG"
}
}
},
{
"id": "createdDateRange",
"name": "SEARCH.CATEGORIES.CREATED_DATE",
Expand Down Expand Up @@ -1795,6 +1821,19 @@
}
},
"categories": [
{
"id": "logic",
"name": "SEARCH.CATEGORIES.LOGIC",
"enabled": true,
"component": {
"selector": "logical-filter",
"settings": {
"allowUpdateOnChange": false,
"hideDefaultAction": true,
"field": "cm:name,cm:title,cm:description,TEXT,TAG"
}
}
},
{
"id": "createdDateRange",
"name": "SEARCH.CATEGORIES.CREATED_DATE",
Expand Down
3 changes: 2 additions & 1 deletion projects/aca-content/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,8 @@
},
"CREATED_DATE": "Created date",
"EFFECTIVITY_FROM": "Effectivity from",
"EFFECTIVITY_TO": "Effectivity to"
"EFFECTIVITY_TO": "Effectivity to",
"LOGIC": "Logic"
},
"FACET_QUERIES": {
"TODAY": "Today",
Expand Down

0 comments on commit 919767e

Please sign in to comment.