sergi0g / cup

The easiest way to check for your container updates
https://sergi0g.github.io/cup/docs
GNU Affero General Public License v3.0
112 stars 2 forks source link

[SUGGESTION] Filter Web view by "type"? #11

Closed lepicodon closed 2 days ago

lepicodon commented 1 month ago

Hello!

I just discovered this tool and really like it, thank you for creating this!

I was wondering what it would take to be able to filter the Web view, by clicking on the headers ("Updates available" for example) we would only see those images...

Also a question, I'm running Cup with the "serve" command via docker compose, do I need to restart the container for Cup to see changes (updated images)?

My compose.yml:

services:
  cup:
    image: ghcr.io/sergi0g/cup:latest
    container_name: cup
    mem_limit: 64m
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
    ports:
      - 12345:8000
    command: serve
    security_opt:
      - no-new-privileges:true
    restart: unless-stopped

Thank you for the help!

lepicodon commented 1 month ago

OK, I checked the closed issues and saw you were already working on those things.. I'm now using the nightly tag and I like what I see... the check button is great!

Any chance we can filter the view in case we have many containers and want to see only the ones with updates?

sergi0g commented 1 month ago

Hi @lepicodon! I'm happy you liked Cup! Sorry you had to discover the nightly tag yourself! Cup is a very new project and I'll eventually set up a proper docs website for it.

Filtering is something I would like to implement as well. It isn't easy to do with a static site the way Cup is now. People keep asking for interactive features and I don't know what to say anymore :joy:. I guess I'll be forced to move to a proper framework (probably React) soon, if I can find a way to keep dependency size to the minimum. I'll add this issue to the roadmap for now.

lepicodon commented 1 month ago

I also could have dug more before I ask lol

It's true that the weight of your app is really its strong point, I hope the potential framework change won't affect that. I will keep an eye for your new features!

sergi0g commented 2 days ago

Hey @lepicodon! v2.0.0 added sorting, so even though you can't filter by type, everything is grouped together, so I think there is no reason to add a separate filter option. I will close this issue now. If you think this is still something important, please reopen it.