Refactor the radicle-desktop build function in the flake by splitting it into
an external file. Use file-based scoping to prevent access to global symbols
within the build function.
Add `watch_file flake.lock rust-toolchain` in .envrc, because direnv re-eval
devShell only at the change of flake.nix by default. After this patch, direnv
also re-eval when flake.lock/rust-toolchain changed.
Later playwright versions were not available to NixOS originally, so the version
was locked to `1.47`.
This change removes the external dependency in favour of the playwright that is
available in Nix packages.
To avoid publishing a release with a faulty nix flake we should make
sure that somebody with a nix installation runs the
`scripts/update-flake` script if npm dependencies changed.
This now allows setting `GIT_HEAD` "from the outside" and will
gracefully fall back to "unknown" in case there's any issue figuring out
what HEAD refers to.
When adding a comment to the side that doesn't have changes we force the
comment to be added to the opposite side. E.g. adding a comment on the
right-hand-side for a deletion will force the comment to be added to the
left-hand-side.
- by default open repos on the home view
- show a rendered README on the repo home page
- show repo metadata: visibility, canonical branch, threshold, delegates
and allow list with aliases
- make layout responsive on repo home
- add copy button to code blocks in markdown
Based on the work done in commit
`a73c5490b160435a0ef5408b54185c9f698cb73f` there are a few places that
make the app not load in case dom storage aka localStorage is disabled.
To allow some very basic hyperlinking in commit descriptions we can
replace fully specified urls with a valid scheme into
`radicle-external-link` components.
1. When `git archive` errors, do not require an exit code, but just use
the `ExitStatus` we already have. This requires less unwrapping.
Also, the previous default of 0 was misleading, since 0 is returned
upon successful termination.
2. Use "refname" instead of "refspec" as these are different concepts.
Refer to <https://git-scm.com/docs/git-check-ref-format> and in
particular
<https://git-scm.com/docs/git-check-ref-format#Documentation/git-check-ref-format.txt---refspec-pattern>.
3. Only allow appending ".tar.gz" to commit IDs, not to refnames,
because refnames may contain the suffix ".tar.gz". It might look
weird, but it is not forbidden to do `git branch foo.tar.gz`.
4. `char::is_ascii` does not help sanitize refnames to file names. In
particular we have `'/'.is_ascii() == true`. Replace forward slashes
with two underscores.