C9Glax / tranga-website

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

Latest Chapter Downloaded/Available Indicator #24

Closed db-2001 closed 7 months ago

db-2001 commented 10 months ago

Adds a feature that shows the latest chapter downloaded, in the default library view, or the latest chapter available, from the search menu. The latest chapter downloaded shows up as white text on a green background and the latest available chapter from a connector shows up as white text on a blue background.

image image

Currently, the display style has been set to none so that the feature is hidden until the API is ready for it, but the JS script code makes an important assumption: image

This was the only way I could get the one common JS function to return the correct value/color combo without having to add an indication of where the function was called from. If there's a better way to implement the logic for this then I'm all ears.

C9Glax commented 10 months ago

Looks good!

Currently, the display style has been set to none so that the feature is hidden until the API is ready for it

You mean until the api reports what is on disk? (e.g. which files actually exist)

db-2001 commented 10 months ago

Yeah that's what I meant

db-2001 commented 10 months ago

And what's available on the connector

db-2001 commented 7 months ago

@C9Glax any updates on finishing the implementation on the API side? i was thinking that the publication status indicator could be rolled into this as well, just by changing the background color of the chapter number, I don't know why I insisted on having the search chapter number be a different color. Right now it makes more sense for both the library view and the manga search to have the same chapter number coloring corresponding to publication status but let me know what you think

C9Glax commented 7 months ago

Haven't worked on Tranga in a minute apart from some bug fixes... Exams hitting :)

db-2001 commented 7 months ago

Totally understand, no worries!

On Wed, Jan 31, 2024, 5:39 AM Glax @.***> wrote:

Haven't worked on Tranga in a minute apart from some bug fixes... Exams hitting :)

— Reply to this email directly, view it on GitHub https://github.com/C9Glax/tranga-website/pull/24#issuecomment-1918840117, or unsubscribe https://github.com/notifications/unsubscribe-auth/A577UVJBZKO5NHP4I2EJRH3YRINMRAVCNFSM6AAAAAA6WQTIDCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJYHA2DAMJRG4 . You are receiving this because you authored the thread.Message ID: @.***>

db-2001 commented 7 months ago

Branch is too out-of-date for current and planned changes, will re-implement better with the publication status indicator rolled in at some later date.