Files
ubicloud/views/github/tabbar.erb
Enes Cakir f209d1e8a0 Add cache entry list to UI
I added the list of cache entries as a subpage to the GitHub runners
page. It shows data sizes and timestamps in humanized format. To
accomplish this, I wrote two simple helper functions.

GitHub Actions cache has similar page
(https://github.com/ubicloud/ubicloud/actions/caches). There are several
use cases for this UI:
  - We give 10GB of free cache storage and purge any caches that haven't
    been accessed for 7 days or that exceed the storage limit. This new
    UI allows users to monitor their cache storage usage and see future
    needs. They can choose to clear some caches to free up space and
    prevent cache eviction.
  - Sometimes, users might need to delete certain caches to force their
    regeneration, especially if the caches are corrupted.
2024-10-01 14:55:49 +03:00

11 lines
261 B
Plaintext

<%== render(
"components/tabbar",
locals: {
tabs: [
["Active Runners", "#{@project_data[:path]}/github/runner"],
["Caches", "#{@project_data[:path]}/github/cache"],
["Settings", "#{@project_data[:path]}/github/setting"]
]
}
) %>