Commit Graph
3488 Commits
Author SHA1 Message Date
Daniel Norman b6743c63fc Fix inline emphasis tags in markdown output
- Without strong, **bold** rendered as plain text since marked
  emits <strong> and DOMPurify stripped the unknown tag
- Add strong, b, i, del, s to DOMPurify allow-list
- Cover the other inline emphasis tags authors may write as raw
  HTML or that GFM strikethrough emits (<del>)
2026-04-22 17:53:23 +02:00
Rūdolfs Ošiņš c45c919826 Key Playwright browser cache on Playwright version
To avoid missing browsers in feature branches.
2026-04-22 17:48:45 +02:00
Rūdolfs Ošiņš b2f74ebd15 Upgrade all Javascript dependencies
Changes which were needed after the upgrade:

- Replace vite-plugin-virtual (vite 8 incompatible) with vite's
  built-in `define` for the buildTimeConfig injection

- tsconfig: drop deprecated `baseUrl` (TS 5+ resolves `paths`
  relative to tsconfig)

- Vitest 4: import `defineConfig` from `vitest/config` so `test`
  is valid in vite configs

- Zod 4: rename `.errors` to `.issues`, make `ZodSchema` a
  type-only import, drop the removed `SafeParseReturnType`

- Tighten/loosen generic casts in localStore to match stricter
  zod 4 inference

- ESLint 9 `no-useless-assignment`: remove redundant initializers
  and dead reassignments; disable the rule where Svelte's reactive
  blocks confuse the analyser

- Svelte/eslint `prefer-svelte-reactivity`: disable for legacy
  Svelte usages of URL / Set

- Misc naming-convention and prefer-const fixes
2026-04-22 17:48:45 +02:00
Rūdolfs Ošiņš 9ca1d7973e Fix GitHub actions warnings
Gets rid of "Node.js 20 actions are deprecated".
2026-04-22 15:25:27 +02:00
Rūdolfs Ošiņš ad75d6488c Bump playwright 1.52.0 -> 1.59.1
Playwright 1.52 hangs under Node 24 when loading test files that
transitively import modules with top-level await (tests/support/
support.ts). Node 24 enables require(esm) by default, and the old
CJS-based .ts transformer deadlocks on TLA.

Also update CLAUDE.md: playwright 1.59's --project flag is variadic
and greedily consumes trailing args, so the file path must come
before --project.
2026-04-22 14:36:52 +02:00
Rūdolfs Ošiņš a1b0723908 Bump nodejs 22.12.0 -> 24.15.0
This also drops .tool-versions to keep a single source of truth for the
node version in .nvmrc. We also point the github actions to .nvmrc now.
I'm the only dev who's using asdf to manage my tooling and I decided to
just configure it to fall back to .nvmrc via `legacy_version_file =
yes`.
2026-04-22 11:20:25 +02:00
Rūdolfs Ošiņš ecbea99f56 Show canonical branches and tags in peer selector 2026-04-22 09:45:00 +02:00
Rūdolfs OšiņšandFintan Halpenny 42bc27c1f8 httpd: Add canonical and peer refs to repo API
Co-authored-by: Fintan Halpenny <fintan.halpenny@gmail.com>
2026-04-22 09:45:00 +02:00
Rūdolfs Ošiņš a184186944 Add helper script to run unit tests against local httpd
As opposed to running it against a pre-compiled binary with a pinned
version.
2026-04-22 09:40:47 +02:00
Fintan Halpenny 114b25322e flake.nix: Update flake.nix
The `flake.nix` file used `heartwood` as its source of truth for a lot
of tooling.
The `heartwood` library was pinned to its `1.0.0` version, causing
issues when attempting run `nix develop`.

Instead, modify the inputs to grab the tooling from their source of truth.
The `heartwood` binaries can now be retrieved via the `radicle-node`
entry in the Nix packages registry.
2026-04-21 17:08:57 +01:00
Fintan Halpenny 1884084e12 .gitignore: Add target to ignore set
The `target` folder will be populated by rust-analyzer flycheck tooling.
It can be ignored by `git`.
2026-04-21 17:08:57 +01:00
Rūdolfs Ošiņš 64f91fa41d Show job cobs on repo source and patches 2026-04-21 17:29:39 +02:00
Rūdolfs Ošiņš 7cef0618ce httpd: Add API endpoint for job cobs
Serve them on /repos/{rid}/xyz.radworks.job/{sha}.
2026-04-21 11:38:15 +02:00
Brandon Oxendine 89b8e9a17b Always show discussion comment form 2026-04-15 15:49:21 +02:00
Rūdolfs Ošiņš 9f20920edc Bump rust version in release Dockerfile
We bumped the rust version for the app with the Heartwood 1.7.1 upgrade.
But we forgot to update the Dockerfile, so builds failed.
2026-04-15 15:32:45 +02:00
Rūdolfs Ošiņš b8761e8c64 Add missing contributor shout-out 2026-04-15 15:32:45 +02:00
Rūdolfs Ošiņš 82807ecee7 Fix CSP connect-src to allow all local assets
The previous entry hardcoded a Vite-generated content-hash filename
(onig-CwjCXqnP.wasm), which breaks whenever the file's hash changes
between builds. Replacing it with 'self' covers all same-origin assets
regardless of filename.
2026-04-15 15:11:05 +02:00
Brandon Oxendine c74b8e014e Truncate repo header text 2026-04-15 15:04:39 +02:00
Rūdolfs Ošiņš 78ccb93d84 Move header injection to open-graph worker
Remove og-injector middleware that ran on every request. Social crawlers are
redirected to the open-graph worker via a cloudflare rule now.
2026-04-15 14:23:04 +02:00
Rūdolfs Ošiņš b6facd02a7 Fix update checker not detecting new versions
enable() was called before invoke("version") resolved, so the first
checkNewVersion() could run while sanitizedCurrentVersion was still
undefined. Even though newVersion is a derived value, Svelte 5 may
not reliably recompute it when state changes asynchronously on a
module-level class instance.

Moving enable() inside the invoke callback ensures sanitizedCurrentVersion
is always set before any version comparison runs.
2026-04-14 09:45:51 +02:00
Brandon Oxendine 7fa9c42c2b Fix README ordered list clipping 2026-04-14 09:24:45 +02:00
Brandon Oxendine ee001e96fa Use brand styling for save actions 2026-04-14 09:08:30 +02:00
Rūdolfs Ošiņš 74e15e2535 Add open-graph card generation via Cloudflare Workers
Deploys two workers: og-injector intercepts social crawler requests and
injects Open Graph meta tags; open-graph renders 1200×630 PNG cards
using Satori with repo/user avatars ported from avatar.ts.
2026-04-13 12:45:57 +02:00
Rūdolfs Ošiņš 21dc8a6262 Simplify zod schema 2026-03-26 17:48:48 -06:00
Rūdolfs Ošiņš afb0f903ee Replace last deprecated Avatar with UserAvatar
We missed this one spot in the grand UI redesign.
2026-03-26 17:43:47 -06:00
Rūdolfs Ošiņš c167f4f804 Update arch package to v0.10.0 releases/desktop/0.10.0 2026-03-23 23:10:43 -06:00
Rūdolfs Ošiņš ee36f75d05 Release v0.10.0 2026-03-23 23:09:21 -06:00
Rūdolfs Ošiņš e1509f0a99 Change seed.radicle.garden -> iris.radicle.xyz
We were using a deprecated seed dns name.
2026-03-23 22:59:30 -06:00
Rūdolfs Ošiņš 08ff53c84e Fix app loading indicator 2026-03-23 22:53:07 -06:00
Rūdolfs Ošiņš 7b396ff72d Persist sidebar across navigations to preserve scroll position
Move AppSidebar out of per-route view components into App.svelte so it
is never unmounted on navigation. This fixes the sidebar scroll position
resetting to the top whenever the user opens a repository or navigates
between Issues, Patches and the repo home view.

Also removes the redundant invoke<Config>("config") call from each repo
route loader — the value is now taken from sidebarData.config, which
loadSidebarData() already fetches.
2026-03-23 22:51:59 -06:00
Rūdolfs Ošiņš d0763b3ab0 Bring back browser devtools in dev mode
When we switched off debug-assertions in the backend it inadvertently
also disabled browser devtools in the app. We need those in dev mode to
debug things, this brings them back.
2026-03-23 17:17:59 -06:00
Rūdolfs Ošiņš 5dc035252b Update README with GH Actions badges
We dropped the woodpecker pipeline, switching to gh actions in the
interim while radicle-ci is cooking. Also update install instructions.
2026-03-23 16:51:15 -06:00
Rūdolfs Ošiņš 8f22c1abc0 Update RELEASE.md with latest changes to the process 2026-03-23 16:44:24 -06:00
Rūdolfs Ošiņš 743cc51757 Add dev-without-assertions Cargo profile 2026-03-23 15:45:14 -06:00
Rūdolfs Ošiņš cf40e86a8e Use a dynamic port for the test-http-api to avoid conflicts
Pick a free port at config load time using a TCP probe on port 0, inject
it into the Vite dev server via VITE_TEST_HTTP_API_PORT, and have
globalSetup start the test-http-api on the same port. The frontend
reads the env var at build time instead of the previously hardcoded 8081.
2026-03-23 10:59:39 -06:00
Rūdolfs Ošiņš 293f6adb52 Fix e2e test suite compatibility with heartwood 1.7.1
- Trim trailing newline from heartwood-release file read to prevent
  invalid binary paths
- Replace repeated --label flags with a single --labels flag (new CLI)
- Add --accept verdict to rad patch review calls that lacked one (now
  required by the CLI)
2026-03-23 10:59:25 -06:00
Rūdolfs Ošiņš 81388f2101 radicle-types: Fix clippy warning after heartwood upgrade 2026-03-23 09:04:22 -06:00
Lorenz Leutgeb d9300c5cb9 radicle-types: Skip over invalid sigrefs
`radicle::storage::RepositoryInfo` now contains the result of loading
signed references, not just an `Option`. Skip over errors.
2026-03-21 18:55:31 +01:00
Lorenz Leutgeb cd9e0be8a3 radicle-types: Initialize DB from profile
The database initialization in `radicle` was changed, so that it now
requires a configuration.
2026-03-21 18:55:31 +01:00
Lorenz Leutgeb aee677886d radicle-types: Fix breakage in stream iteration
Various straightforward fixes after upstream updates.
2026-03-21 18:55:19 +01:00
Lorenz Leutgeb 8cecb87085 radicle-types: Deal with fallible policy reads
`seed_policies` now iterates over results. Keep
only `Ok` values.
2026-03-21 18:55:19 +01:00
Lorenz Leutgeb b89f4c0a8d radicle-types: Fix access to ref formatting
Upstream introduced a new `fmt` module to use.
2026-03-21 18:55:19 +01:00
Lorenz Leutgeb 4a644255f1 radicle-tauri: Fix access to ref formatting
Upstream introduced a new `fmt` module to use.
2026-03-21 18:55:19 +01:00
Lorenz Leutgeb 51430e5a9b radicle-types: Remove unused error variant 2026-03-21 18:55:19 +01:00
Lorenz Leutgeb eba37c01fa radicle-types: Fix OID conversion
The `radicle` crate switched its OID `struct`. The new `struct` does not
convert to/from the OID `struct` in `radicle-surf`. Introduce an ad-hoc
conversion.
2026-03-21 18:55:19 +01:00
Lorenz Leutgeb 34706164e5 radicle-tauri: Depend on git2
The `radicle` crate does not re-export `Config`
anymore, thus depend on `git2` directly.
2026-03-21 18:55:19 +01:00
Lorenz Leutgeb 3e5d277df8 radicle-types: Capture signer errors
`radicle` has introduced a new `SignerError` that must be captured.
2026-03-21 18:55:19 +01:00
Lorenz Leutgeb 6a9906aa0e radicle-types: Migrate to radicle_localtime 2026-03-21 18:55:19 +01:00
Lorenz Leutgeb 8271a9ded0 radicle-types: Use new type for titles
A new wrapper for titles was introduced in `radicle`. Use it instead of
strings and also add a corresponding error variant.
2026-03-21 18:54:42 +01:00
Lorenz Leutgeb d8cde006e9 fix: Use radicle::Node::announce_refs_for 2026-03-21 18:54:42 +01:00