Commit Graph
15 Commits
Author SHA1 Message Date
Rūdolfs Ošiņš b1c3e2c639 desktop: Keep the repo list and release counts in the cache
The repo list had its own TTL cache, a counter bumped by seeding and a
listener of its own, and release counts were fetched separately by the
sidebar and the releases page. Now they're queries like the rest, and
seeding invalidates the list like any other write. The head a loader
resolved is marked through `markLoading` too, so it needs no key of its
own.
2026-11-20 19:32:17 +01:00
Rūdolfs Ošiņš e0ccaedf35 desktop: Refresh the identity view
Proposals and votes show as they arrive. Identity COB updates now refresh
only the identity instead of the whole repository.
2026-11-20 19:32:17 +01:00
Rūdolfs Ošiņš 680a781398 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.
2026-11-20 19:32:17 +01:00
Rūdolfs Ošiņš 24eddead28 desktop: Sync the notification count
The backend now tells the frontend whenever the notifications database
changes, which covers notifications the node writes as it fetches as well
as clears by another instance of the app or the `rad` CLI, which have no
node event. The inbox reloads in place, keeping the rows in view where
they are.
2026-11-20 19:32:17 +01:00
Rūdolfs Ošiņš 748f9e9da7 desktop: Refresh the cache after the user's own writes
Reviews and writes with announcing off or the node stopped never reach the
node's events, so each write command now invalidates the data it changes,
also when it fails partway. Views that pin data join that refetch instead
of starting another.
2026-11-20 19:32:17 +01:00
Rūdolfs Ošiņš 94ac124c62 desktop: Name the refs behind local announcements
The node announces the user's own writes, and those of the `rad` CLI,
without saying which refs changed, so each one refetched the whole repo,
including a scan of every CI job. Comparing the announced signed refs
with the previous ones names them. Releases and boards get keys of their
own instead of falling back to the whole repo.
2026-11-20 19:32:17 +01:00
Rūdolfs Ošiņš cbdd3d2d86 desktop: Refresh CI status on job updates
Every status chip of a repository shares one list of its jobs, which
refreshes when a job changes, at most every few seconds, since listing
them scans every job of the repository.
2026-11-20 19:32:16 +01:00
Rūdolfs Ošiņš 8ac86d4f2c desktop: Show newer commits on the repo home
The page keeps showing the code the user is reading and offers the newer
commits when the branch moves.
2026-11-20 19:32:16 +01:00
Rūdolfs Ošiņš 0475a2cea7 desktop: Refresh the repo list when seeded repos arrive
A seeded repo appears as soon as the node has fetched it, instead of on
the next five-second poll.
2026-11-20 19:32:16 +01:00
Rūdolfs Ošiņš 9b6854ae55 desktop: Refresh views on the node's ref updates
The backend forwards the node's ref updates, and the cache refetches what
they affect while it is shown. Issues, patches, their lists, the repo's
counts and the notification count update in place, and without the node's
events they refetch on window focus. An issue's description stays as it is
until the user asks for the latest.
2026-11-20 19:32:16 +01:00
Rūdolfs Ošiņš ee80f7d6f4 Add shared core package and query cache
Core holds the keys of the data both apps read and maps a node's ref
updates to the keys they affect. The query cache wraps TanStack Query for
runes, as decided in ADRs 4 and 5.
2026-11-20 19:32:16 +01:00
Rūdolfs Ošiņš aad0d25463 Add ADR for data access and reactivity
Both apps should react to changes in their backend's data without
disturbing the user. Record how data is cached, invalidated by ref
updates and shown when newer data arrives.
2026-10-29 17:02:24 +01:00
Rūdolfs Ošiņš 99b39ca287 Add ADR for a shared core package
Both apps carry diverging copies of the same domain logic. Record where
shared logic lives, which types it uses and how it moves over.
2026-10-29 17:02:24 +01:00
Rūdolfs Ošiņš 2c44c70ff2 Document the npm workspace and shared/ui 2026-10-29 16:27:03 +01:00
Rūdolfs Ošiņš f79b23dde7 Share UI code through an npm workspace
Extracts the avatar components and the style tokens into shared/ui, which
both apps consume as a workspace package, to try out ADR 2. Nix and the
Docker setups are not updated yet.
2026-10-29 16:27:03 +01:00