C9Glax / tranga-website

Web-Frontend for Tranga-API
GNU General Public License v3.0
17 stars 10 forks source link

Initial feature for Publication Status Indicator #27

Closed db-2001 closed 10 months ago

db-2001 commented 10 months ago

Addresses #25

Adds a small circular indicator next to the manga title indicating release status: image

Includes a tooltip on hover image image image image

db-2001 commented 10 months ago

Obviously this doesn't work on mangas already that are in the library because their metadata needs to be refetched

db-2001 commented 10 months ago

I did put an indicator in for "Status Unavailable" which shows up as grey so that could be -1 or something on the API side that is the default for everything until the official status' get fetched and matched to something that's represented.

C9Glax commented 10 months ago

Atm default is OnHiatus. I have already done some work on an UpdateMetadata Job, but I haven't done any testing yet.

https://github.com/C9Glax/tranga/commit/4843c7f05c904736aa3ab5436b90712baed899b9 https://github.com/C9Glax/tranga/commit/963ad375e8b9b036cb8b3337ab7c41dfe8da5499

db-2001 commented 10 months ago

Ok, that works, either way this is ready to be merged in whenever you feel like it, whether you want to do it now or wait until the update metadata is done. Do you want me to add a button for update metadata to link it with a job?

C9Glax commented 10 months ago

If you can add a button that triggers an API request POST /Jobs/UpdateMetadata with optional parameters to for example update a specific manga... Could also just trigger an update for all manga

db-2001 commented 10 months ago

Sure thing, what does the post syntax look like for updating all vs updating a specific one? I'm thinking update all could be a button in settings and updating a specific one could be a button in each manga's popup

C9Glax commented 10 months ago

Updating all would be POST /Jobs/UpdateMetadata Updating specific one would be POST /Jobs/UpdateMetadata?internalId=<mangaId> You can get the id from the publication that was clicked on. selectedManga is updated accordingly grafik

Design sounds good!