Resolve "Tags v2 completion" NOCHANGELOG

Closes Tags v2 completion (#2448 - closed)

Closes Implement new Pills component into TagsSelector... (#2390 - closed)

Next: !2938 (closed) Previous: develop

@ArneBo @yala Please check out this branch and give me feedback.

See #2448 (closed) for a discussion of the design, functionality and implementation of the tag selector UI component and the loading of applied (preset) tags.

Outlook

Caching tags

In the legacy funkwhale app, each TagSelector would request the list of tags from the API. In my implementation, we have a store with all tags. Requests are limited to one per second. I am also using this store to load albums in order to fix an unrelated issue: When navigating back from the Album editor, the stale version of the album was kept until reloading the page. Using a global store for albums allowed me to re-fetch the edited Album after each successful mutation. We can use this pattern to radically simplify all axios calls. The corresponding issues are:

dx(front): decouple interaction with the backen... (#2438)

Replace axios with openapi-fetch (#2398)

Priorising user tags

I feel like some users might appreciate if the suggestions priorize tags they previously applied, instead of treating all tags from all users the same.

Another thing I'm worried about is synonymous tags.

Better tag suggestion sources

As Pablo suggested, there are good remote services for tags suggestions. They might replace or complement the naive current approach of simply suggesting any tag that is currently in use the same pod (or the federation?).


Food for thought for v2+ :-)

Edited by Flupsi (they)

Merge request reports

Loading