Add rebuild cache functionality to issue and patch listing

In case of an outdated cobs cache we display a banner on top of the
patch or issue listing, to allow users to rebuild the cobs cache of a
repo similar to running `rad patch cache`
After rebuilding we fetch the issues or patches from the start.

Small caveat with patches:
The banner can only be shown after a user fetched all patches from the
backend, so we are sure we tried to fetch all of them.
This commit is contained in:
Sebastian Martinez
2025-06-11 18:24:27 +02:00
committed by Rūdolfs Ošiņš
parent 1e1810b78a
commit 499a0983ea
13 changed files with 365 additions and 10 deletions
+8 -1
View File
@@ -3,7 +3,14 @@
interface Props {
children: Snippet;
variant: "primary" | "secondary" | "ghost" | "float" | "danger" | "success";
variant:
| "primary"
| "secondary"
| "ghost"
| "float"
| "danger"
| "success"
| "outline";
hoverable?: boolean;
onclick?: (e: MouseEvent) => void;
stylePosition?: string;