shiori icon indicating copy to clipboard operation
shiori copied to clipboard

Load tags dynamically using the API instead of on page first load

Open thelazyoxymoron opened this issue 3 years ago • 10 comments

I'm not able to select any tags from the matched list. Using the Arm64 docker image built using the latest codebase.

thelazyoxymoron avatar Feb 25 '22 07:02 thelazyoxymoron

Where do you have this problem? In the search, in the article list, in the tag list, in the "add bookmark" dialog?

fmartingr avatar Feb 26 '22 10:02 fmartingr

I'm facing this in the add new bookmark screen, as well as when I try to edit an existing bookmark. DB is Postgresql.

thelazyoxymoron avatar Feb 27 '22 00:02 thelazyoxymoron

Just to confirm, the problem is that you don't see the tags input like this:

2022-03-01_12-32-36

Which browser are you suing?

fmartingr avatar Mar 01 '22 12:03 fmartingr

Just to confirm, the problem is that you don't see the tags input like this:

I see the tags input getting suggested, but not able to select from the suggested list.

Which browser are you suing?

Firefox v97

thelazyoxymoron avatar Mar 05 '22 06:03 thelazyoxymoron

I've just tried this on Firefox 97.0.2 @ macos 12.1 and it's working:

https://user-images.githubusercontent.com/812088/156902737-53594b4c-f055-4fc4-8e8f-57195ecf2ed7.mov

I put a few letters and press enter on the suggestion.

Do you see any errors on the firefox console? Tools > Browser Tools > Developer Tools on the Console tab.

fmartingr avatar Mar 05 '22 23:03 fmartingr

After finding this bug report, I guess I finally understand how tag suggestions are supposed to work. It looks like Shiori's suggestion shows only one of the possible tags, and only when the text entered does not match the suggestion anymore, another possible tag is shown.

That's not intuitive at all. Usually, when you enter a tag the suggestions show all the tags matching the substring typed so far, with a way to select one of the (possibly multiple) suggested tags, either by navigating with the keyboard or by clicking on it.

mrex avatar Sep 30 '22 19:09 mrex

Moving this from bug to enhancement, and while agree that the current selector is not optimal I can't consider this a "bug" since it's working as expected. At least until we improve it :)

@thelazyoxymoron if you are experiencing an actual bug please report back so we can take a look at it (and proper triage a new issue for the feature request).

fmartingr avatar Oct 03 '22 08:10 fmartingr

Apologies for not providing enough information earlier. I did some more testing and looks like this is only happening with Postgres DB backend and only when I try to add a tag in the following window:

image

I did not observe this when trying to edit an existing bookmark and add tags. The auto-suggest + enter was working there. Only observing when adding tags in the "add new bookmar" screen.

This is related to #215.

thelazyoxymoron avatar Oct 04 '22 06:10 thelazyoxymoron

I've been testing this locally, and after #484 fix for PSQL it now works but there's a caveheat: the frontend loads tags on page load, so if you add a new bookmark with a new tag and then add another bookmark that new tag wont autocomplete unless the page is reloaded.

fmartingr avatar Oct 04 '22 10:10 fmartingr

I also confirm I can't click on the suggested tags (Docker, sqlite3, Firefox, Windows). It would be great to have the tags suggestion in the browser extension too (https://github.com/go-shiori/shiori-web-ext/issues/64)

v-marinkov avatar Feb 19 '24 17:02 v-marinkov