"Listable" tools don't work if they're not in the "list-menu"
- Dominant language
- JavaScript
- Stars
- 17
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
Take for example the following setup:
```json
{
"tools": [
{
"order": "4",
"within": false,
"command": {
"within": true,
"select": true
},
"type": "query",
"instance": "5333--childcare-by-name",
"enabled": true,
"title": "Search By Facility Name",
"position": "shortcut",
"showTitle": true,
"icon": "travel_explore"
}
],
"layer": {
"queryies": [
{
"id": "childcare-by-name",
"title": "Search By Facility Name",
"description": "Find a child care facility by name",
"parameters": [
{
"id": "facility-name",
"title": "Query",
"type": "input"
}
],
"predicate": {
"operator": "and",
"arguments": [
{
"operator": "contains",
"arguments": [
{
"operand": "attribute",
"name": "OCCUPANT_NAME"
},
{
"operand": "parameter",
"id": "facility-name"
}
]
}
]
}
}
]
}
}
```
Let's pretend that I don't want this query in the list-menu, but I want it to be able to list features. The resulting query can get results, but the interface claims there are no features. If I change the position to `list-menu`, the results appear.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the supplied tool configuration with position set to "shortcut" and then to "list-menu". Trace the interface's listable-feature handling and compare both cases; done means the query returns and displays features without requiring the tool to be in the list-menu. No source file or test is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100