Commit Graph
31 Commits
Author SHA1 Message Date
Rūdolfs Ošiņš a7c4ded104 desktop: Keep the local actor in the cache
The profile page reloaded its route after every write and only noticed
edits from other devices on navigation. Now writes and the node's
updates refetch the actor in place, like the rest of the cache.
2026-11-20 19:32:17 +01:00
Rūdolfs Ošiņš f87cbcfc94 desktop: Watch the node's COB cache for changes
Issues and patches written without announcing them, such as with
`rad issue comment --no-announce` or by another instance of the app,
never reached the open views. The cache also changes with every fetch and
write the app already heard of, and doesn't say which repo changed, so
right after those it refreshes once things are quiet instead of with each
one. The watchers now also notice a database that appears or comes back
after an error, and one locked database no longer holds up the others.
2026-11-20 19:32:17 +01:00
Rūdolfs Ošiņš 05d1a99fef desktop: Stop losing and wasting refreshes on events
An update that arrived while a route was still loading was lost, since the
loader's result then counted as fresh, so the events now invalidate through
the shared helper that marks such fetches stale. A repo arriving or renamed
without the update naming its refs left the sidebar list as it was, and
updates that changed nothing still dropped the hover caches.

A test now checks the frontend's ref update type against the generated
one.
2026-11-20 19:32:17 +01:00
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ņš 78e56dc9ac desktop: Add new commits to the commits list
When the branch moves on, its new commits are added at the top of the
list, without moving the rows in view, instead of the list going stale
until the next visit. Rewritten history offers to reload the list.
2026-11-20 19:32:17 +01:00
Rūdolfs Ošiņš 26af22703f desktop: Remove the reload button
Views now follow changes as they happen, so a reload is rarely needed and
the button takes room in the sidebar's header. Mod+R still reloads.
2026-11-20 19:32:17 +01:00
Rūdolfs Ošiņš 848a1b2b5c desktop: Drop hover caches when data changes
Hover cards, references and mention candidates keep their own short-lived
caches, which went on showing an issue's or patch's old state for up to a
minute after the views around them had updated.
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ņš e9c519068d desktop: Announce published reviews
Publishing a review was the only patch write that didn't announce, so
other instances of the app on the same node never learned of it. A
review's summary now also stays as it is while someone else edits it,
showing that a newer one is available, as an issue's description does.
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ņš 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ņš 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ņš 8a8d457c32 desktop: Stop reloading the patch on draft edits
Draft review comments are local, so editing them doesn't need the whole
patch view to load again.
2026-11-20 19:32:16 +01:00
Rūdolfs Ošiņš f9f9009aea desktop: Key timeline runs and replies by id
So that a comment arriving above them doesn't re-render the rest of the
timeline and lose its state.
2026-11-20 19:32:16 +01:00
Ioannis T.andBrandon Oxendine bc2914f06b desktop: Add an actor profile editor behind the actorRepos lab
Co-authored-by: Brandon Oxendine <brandon.oxendine@gmail.com>
2026-11-20 17:33:55 +01:00
Rūdolfs Ošiņš c5957b32f4 desktop: Add compare options to the revision picker
Right-clicking a revision in the Changes tab picker offers the same
comparisons as the activity tab's compare menu, so you don't have to
leave the Changes tab to compare revisions.
2026-11-13 10:37:41 +01:00
Ioannis T. ba6e754686 desktop: Count every commit of a revision in the revision picker
Fixes rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5/cob/xyz.radicle.issue/47d0ce74b984d8aa0a7c671e76f2af1a6b12d3fb
2026-11-13 09:37:32 +01:00
Rūdolfs Ošiņš 2a504c2b38 desktop: Show shortcut hints only when Mod is held alone
The sidebar numbers flashed on every ⌘Tab and showed up in ⌘⇧5
screenshots, then stuck until ⌘ was pressed again because the
screenshot overlay swallows the keyups. Now they wait for ⌘ to be
held on its own for a moment and hide on any sign it was let go.
2026-11-12 10:09:46 +01:00
Rūdolfs Ošiņš 0ef41cc23b desktop: Disallow attachments when editing a draft comment
Drafts are kept in local storage and publish only their bodies, so a
file attached while editing one never reached the COB and peers saw a
broken link. The draft composer already disallowed attaching; editing
didn't.
2026-11-10 16:54:20 +01:00
Rūdolfs Ošiņš 2ec2fecbdd desktop: Save embeds when editing a review summary
The summary editor allowed attaching files but never sent them, so the
link ended up in the summary while the file never reached the COB.
Verdict changes and task toggles also sent no embeds, which would drop
them again once a summary has some.
2026-11-10 16:54:20 +01:00
Brandon Oxendine ac793e1215 desktop: Keep embeds when editing a description 2026-11-10 16:54:20 +01:00
Brandon OxendineandRūdolfs Ošiņš 682a406d85 desktop: Add the board view
Every issue and patch of a repository shows on its board, in a column
derived from its state until someone moves it. Cards move by drag and
drop or from their menu, closing columns close and reopen issues for
those allowed to, and a drop that isn't allowed says why. Changes wait
2.5 seconds and are written as one op. Patches link to issues with a
keyword and a full reference. Boards stay hidden until turned on under
Settings → Labs.

Co-authored-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2026-11-06 18:21:33 +01:00
Rūdolfs Ošiņš 0bc014dded Fix e2e tests 2026-11-04 10:49:08 +01:00
Alessio Caiazza 9c790a7d1c desktop: Drop wall-clock limits from mention tests
The hostile input tests compared elapsed time against fixed limits, so
they measured the machine as well as the code. They fail on slower or
loaded builders, such as the nixpkgs x86_64-linux check phase, even
though rendering stays linear.

Compare the CPU time of an input against one four times as long
instead. Linear rendering gives about 4 and a quadratic regression
about 16. CPU time is needed because a wall-clock ratio inflates under
bursty load, when a short run fits between bursts and a long one does
not.

Rendering past the reference limit gets its own test, since the link
count cannot catch a limit that stops linking but keeps rescanning.

The bare reference test now puts a valid reference before the long
run, so giving up is visible in the result without any timing.

AI-assisted: Claude Code (claude-opus-5-5)
2026-10-31 13:59:28 +01:00
Daniel Norman b77c82151d desktop: Open releases on Delegates
- Decide in ADR 0004 to always open releases on Delegates
- Drop the fallback to Others in lists and releases
- Show the Others filter whenever it has content
- Name the scope in the empty artifacts message
- Open Others in the e2e test of an artifact by a non-delegate,
  which no longer opens there by itself
2026-10-29 18:21:09 +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
Rūdolfs Ošiņš d81d8c10b3 desktop: Sort tags by version, newest first
Same as in explorer: compare numeric parts numerically and keep tags
from the same namespace together instead of interleaving them by time.
2026-10-29 14:11:13 +01:00
Brandon OxendineandRūdolfs Ošiņš 8e5089cbdc desktop: Explain revisions with no changes
When a revision's head is already part of its base, the Changes view
showed an empty commits column and "0 files modified". In practice this
is a patch branch pushed after its work already landed, which also marks
the patch merged at that commit even when the work landed after it. Show
an empty state that says so and links to the last revision with changes.

This also fixes switching revisions leaving the previous revision's
single commit selected.

Co-authored-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2026-10-29 10:48:03 +01:00
Rūdolfs Ošiņš c873c9fc88 desktop: Fix math rendering in markdown
The sanitizer allowlist strips KaTeX's markup, and index.html never
loaded katex.min.css, so math has only ever shown up as flat text. We
now typeset math after sanitizing and load the stylesheet.
2026-10-22 16:29:46 +02:00
Rūdolfs Ošiņš 983fff9006 Move everything into desktop/
In preparation for merging radicle-desktop into radicle-gui. It's a pure rename, so git can follow every file across the move.
2026-10-12 08:41:12 +02:00