desktop: Refresh releases on updates

Releases were the one COB with keys of their own that nothing listened
on: the release list, a release and the sidebar count now refresh when a
release changes, and the user's own release writes refresh them too.
This commit is contained in:
Rūdolfs Ošiņš
2026-11-20 19:32:17 +01:00
parent e9c519068d
commit 680a781398
7 changed files with 89 additions and 17 deletions
+5
View File
@@ -37,6 +37,11 @@ export const keys = {
patch: (rid: string, id: string) => ["repo", rid, "patch", id] as const,
patchDetails: (rid: string) => ["repo", rid, "patch"] as const,
releases: (rid: string) => ["repo", rid, "releases"] as const,
releaseList: (rid: string, scope: string) =>
["repo", rid, "releases", "list", scope] as const,
release: (rid: string, id: string) =>
["repo", rid, "releases", "release", id] as const,
releaseCount: (rid: string) => ["repo", rid, "releases", "count"] as const,
boards: (rid: string) => ["repo", rid, "boards"] as const,
jobs: (rid: string) => ["repo", rid, "jobs"] as const,
repos: () => ["repos"] as const,