Commit Graph
3496 Commits
Author SHA1 Message Date
Sebastian Martinez 9b425e534b Update heartwood version 2024-03-04 16:52:46 +01:00
Sebastian Martinez 16e858bd7a Update footnote regex to handle footnotes with spaces 2024-03-04 16:35:22 +01:00
Michael Raitza 18ef797f41 Fixes scripts/update-flake
Avoid using BASE64 characters for separating substitution patterns.
2024-03-04 16:01:48 +01:00
Sebastian Martinez 4bb0e72841 Remove hash routing
Since we don't have or want any deployments on IPFS, and we don't have
much use for hash routing else, we can clean up some code and remove
some tests.
2024-03-04 14:39:36 +01:00
Thomas Scholtes 69429cb08f Re-use project-level data when browsing source code
We make source code browsing faster by re-using project-level data when
navigating between files. This comes at a cost: Project info (like the
issue counter), remotes and branches are only updated when the page is
hard-refreshed or the user navigates away from the source code view.
2024-02-28 14:15:58 +00:00
Sebastian Martinez dcced2e06d Fix visual test on preview toggle 2024-02-28 14:06:42 +00:00
Rūdolfs Ošiņš 0906593854 Don't query the /profile endpoint on every project load
We load the preferred seed config value on demand when the user clicks
the share button.
2024-02-28 14:03:15 +00:00
Thomas Scholtes 7ba9429afb Cache requests for blob and tree objects 2024-02-28 10:59:06 +01:00
Sebastian Martinezanddnlklmn eb0013ef9c Switch toggle styles
Co-authored-by: dnlklmn <pelicansinberlin@gmail.com>
2024-02-27 16:59:07 +00:00
Sebastian Martinez add8a9ad94 Display images in source browser and diffs, enable preview for svgs 2024-02-27 16:59:07 +00:00
Sebastian Martinez 481e25dca1 Enable branch selector even if no delegate is selected 2024-02-27 14:41:10 +01:00
dnlklmn 3f07650bcc Allow preview issue description if title is empty 2024-02-27 10:22:52 +01:00
dnlklmn 1ef7be3974 Fix disabled buttons in light mode 2024-02-27 10:16:00 +01:00
dnlklmn d18086d2a6 Align alias button contents 2024-02-27 10:05:59 +01:00
Sebastian Martinez 8a3864b19b Update codeLocationSchema with required Oid
We where missing an update for CodeLocation introduced in heartwood
commit 2dea54c6eeb7bf3a177fac77ae04fd4aeadd772d
2024-02-26 15:53:02 +00:00
Rūdolfs Ošiņš 4a5e67dd2b Improve authentication error modal
We tell users to check their firewall and ad blocker settings in case
they bump into authentication problems. This also separates out the
modal to be only used by the session view.
2024-02-26 13:03:44 +00:00
Rūdolfs Ošiņš 41435951c1 Refactor BaseUrl string conversion
We're only using this as a string, so no need to convert it to an URL.
2024-02-23 15:46:28 +00:00
Fintan Halpenny 02fb9397e8 radicle: implement caching for issues and patches
Implement caching for the `Issue` and `Patch` COB. This is achieved by
having the `Transaction::initial` and `Transaction::commit` methods
take a cache which can update the newly created/updated object. The
`Store::remove` method also takes the cache for removing the object
from the cache, as well as the repository.

This meant that the `*Mut` types for the respective COBs are required
to carry a cache alongside the repository store. Identities will not
be cached, and so this is always set to `NoCache` -- which performs no
caching, and always succeeds.

To perform cache reading for issues and patches, the `cache::Issues`
and `cache::Patches` traits are introduced. They capture the minimal
amount of methods that are needed for the `rad issue` and `rad patch`
CLI commands.

The implementor for each of these traits is there respective `Cache`
types, which combines their backing repository store and the SQLite
database. They both provide convenience methods:
- `create` (and `draft` for patches)
- `get_mut`
- `remove`
which can be used instead of their repository store counterparts.

All uses of the repository stores (where needed) are replaced with
`Cache` types.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2024-02-23 16:03:21 +01:00
Fintan Halpenny 67e46952b6 radicle: rename resolved to is_resolved
The standard in the codebase for boolean methods is to prefix them
with `is_`.

Change `resolved` to `is_resolved`.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2024-02-23 13:56:19 +01:00
Rūdolfs Ošiņš 8f43a57984 Remove Radworks from app
It's already on the radicle.xyz webpage, no need to repeat it in the
app.
2024-02-23 12:15:29 +00:00
Rūdolfs Ošiņš ea91dc800b Fix canonical branch popover width 2024-02-23 11:46:52 +00:00
Rūdolfs Ošiņš 3cfddf8647 Show seed policy and scope in "online" button 2024-02-23 11:37:01 +00:00
cloudhead 87077d5155 cob: Properly authorize root actions
Previously, authorization was only checked for ops after the root op.
We also avoid creating empty actions for `assign` and `label`, which
was needed for non-authorized users to be able to create issues/patches.
2024-02-23 12:31:13 +01:00
Sebastian Martinez 1471fb1709 Add edited label to patches 2024-02-23 07:53:48 -03:00
Rūdolfs Ošiņš 703fb3845f Hide git clone behind a tab in the Clone button 2024-02-22 14:00:32 +00:00
Rūdolfs Ošiņš 975d1823a2 Show only pinned projects on node view
And style them visually similar to the landing page.
2024-02-22 05:33:36 +00:00
Rūdolfs Ošiņš 693f8991a0 Fix HoverPopover positioning
The popover would not stay fixed relative to its parent when the page
was being scrolled. We wrap it in a container that is positioned
relative similar to how we do it in the Popover component. This allows
us to position it more precisely while making it retain its position
relative to its parent when scrolled.
2024-02-21 17:39:59 +00:00
Rūdolfs Ošiņš d86ff1952a Allow only delegates to add labels and assignees to new issues 2024-02-20 16:34:33 +00:00
Rūdolfs Ošiņš d4b246c72d Tweak issue/patch validation rules
Patches - title: mandatory, body: optional.
Issues - title and body: mandatory.
2024-02-20 16:34:33 +00:00
Rūdolfs Ošiņš 6ff0d52165 Fix bug where changing the issue title would reset the body 2024-02-20 14:48:33 +00:00
Sebastian Martinez dbfb56f37b Remove node config from httpdStore and poll only active tab and browser 2024-02-20 12:02:41 +00:00
dnlklmn 25b61573f3 Hide actions while editing issue or patch 2024-02-19 22:26:11 +01:00
dnlklmn 0bee4f1e03 Show absolute timestamps on edited markers 2024-02-19 22:26:11 +01:00
dnlklmn a0f22b0649 Make edited marker on an issue Inter 2024-02-19 22:26:11 +01:00
dnlklmn 865afad13d Remove icon from Raw button on source 2024-02-19 22:26:05 +01:00
Rūdolfs Ošiņš f833fc506e Improve error message when local project is unavailable 2024-02-16 16:38:18 +00:00
Michael Raitza f2be1b2601 httpd: Filter-out private-but-pinned repos
They should only be visible to localhost.
2024-02-16 15:27:08 +01:00
dnlklmn e67db70e0c Hide overflow on navigation items in the sidebar 2024-02-15 22:50:15 +01:00
Rūdolfs Ošiņš 2d57aaafd8 Show a confirmation dialog when stopping project seeding 2024-02-15 20:26:33 +00:00
Rūdolfs Ošiņš 2daa8e83a9 Refactor seed button
We move all of the seed button state inside of the component so it is in
one place.
2024-02-15 20:26:33 +00:00
Sebastian Martinez d216caec7d Improve catching of errors when loading routes
- Handle ResponseParseErros, ResponseErrors and normal errors
  differently.
- Show them all in the same `LoadError` view
- Add a subtitle to give users some more information on what could have
  gone wrong.
- Add more properties to the copyable error message to make debugging
  easier.
2024-02-15 13:26:11 -03:00
Sebastian Martinez 8450f0cd9c Remove eslint disable ts next line 2024-02-15 09:38:28 -03:00
Sebastian Martinez 389ecc95ba Fix prefferedSeeds typo 2024-02-15 09:38:28 -03:00
Sebastian Martinez 0cd667c925 Add supportWebsite config param 2024-02-15 09:38:28 -03:00
Sebastian Martinez bdd83644a6 Add CONTINUE_ON_ERRORS test flag
This allows when debugging tests to avoid that the test ends before
having an opportunity to debug what really went wrong.
2024-02-15 09:38:28 -03:00
Sebastian Martinez 364844f47f Remove unused error.ts file 2024-02-15 09:38:28 -03:00
dnlklmn d883a0f3dd Switch Seed and Clone buttons 2024-02-14 18:22:50 +00:00
dnlklmn 51efbc93d7 Improve edit buttons on issue and patch 2024-02-14 18:22:50 +00:00
Rūdolfs Ošiņš 04999a1e55 Fix text alignment in the "Authenticate" button 2024-02-14 17:53:51 +00:00
Rūdolfs Ošiņš 9e750cf90f Add "New Patch" button to patch list view 2024-02-14 17:25:29 +00:00