omnivore-app / omnivore

Omnivore is a complete, open source read-it-later solution for people who like reading.
https://omnivore.app
GNU Affero General Public License v3.0
13.93k stars 987 forks source link

Label search doesn't work in "Add action" pop-up #2540

Open jivesh opened 1 year ago

jivesh commented 1 year ago

https://github.com/omnivore-app/omnivore/assets/9449875/86e9bbe5-8563-4e9e-afe6-0344780d4453

When adding an AddLabel action, searching for the label doesn't seem to work. Searching with a single letter seems to change something, which is quite odd. This is on /settings/rules.

kquinsland commented 1 year ago

I am hitting this as well and did a bit of digging.

I have a rule that fires on PAGE_CREATED and the action is add_label() but the drop down for selecting labels does not appear to have all of my labels

This is the query that is sent:

    query GetLabels {      labels {        ... on LabelsSuccess {          labels {            ...LabelFields          }        }        ... on LabelsError {          errorCodes        }      }    }      fragment LabelFields on Label {    id    name    color    description    createdAt  }  

And the payload that comes back has 62 objects which is what I expect but is far more than the ~10 items that show up in the label selection drop-down.

After some messing around w/ the dev tools, I figured that the drop down responds to scrolling. As wheel up/down events are handled, the list of labels changes. After enough scrolling, all 60+ labels were eventually displayed / selected.

So as a work-around, try scrolling through the label list... eventually the label you want should be one of the ~10 suggestions that you can select.