LANraragi
LANraragi copied to clipboard
Request a rating system
I checked it on the discussion board, but it's too old an issue
Please describe your suggestion, and the problem it'd solve.
First of all, thank you for developing a good app. I saw a comment saying that the rating system has low priority and should be managed with tags. But it's very strange that the Content Manager app doesn't have a scoring system. I want you to know that there is a demand to distinguish whether this was good or not by horoscope because a person's memory is limited. It is very cumbersome to modify the tag you suggested before. Since the app doesn't have a tag preset, I always have to add an emoji to modify it.
Additional context I request modify the score with a click in the Archive Overview menu.
👋 I still maintain this can and should be handled thru a tag instead of spinning off yet another DB field, as it makes sorting by rating "just work" with the current design.
A rating control could be added to the edit UI to quickly add/update/remove a matching rating:
tag, I suppose.
Hey, I am new to this and would like to contribute. Do you have any pointers on how to get started with this issue?
Sure! Thanks for stepping up 🙏 I believe this can be done thru frontend only. You can use Codespaces to spin up a development version of the app, and just upload any random pdf or zip with one image in it to get an entry you can add metadata to.
You can look at https://github.com/Difegue/LANraragi/blob/dev/templates/edit.html.tt2 and https://github.com/Difegue/LANraragi/blob/dev/public/js/edit.js for the HTML/JS code used by the edit metadata page.
Tags in LRR are in a simple comma-delimited format, so implementing this should be as easy as adding a rating control that when interacted with, adds a rating:⭐⭐⭐⭐,
tag to the textfield.
If a rating tag is already present, it should update it with the matching star count.
I suppose the rating should go from 1 to 5 stars, and selecting 0 stars should remove the tag from the textfield.
Below is an example that works for me by editing the UI and using plugins
But there is still some questions
- Currently, updates are not supported.
- I also added a
Comment
tag. Since all tags in LRR are stored in the "Tag" field and separated by commas,Comment
tag cannot contain commas. I'm not sure if this approach is suitable...
As an aside, if you use this new react-based PWA client, you may like this Rating&Comment
👋 Just popping in to mention a comment field would be added by https://github.com/Difegue/LANraragi/issues/588.
In case anyone wants to work on that...