Sebastian Martinez
1ef0f9dfd1
Add issue embeds
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-09-27 16:40:49 +02:00
Sebastian Martinez
bd6ba784b3
Improve binary detection
...
libgit2 optimizes around not loading the content, when there's no
content callbacks configured.
So we aren't able to get a clear answer from radicle-surf if a file in a
diff is a binary or not.
A simple way without doing additional API requests is to check if the
file type is a executable and if there are no hunks (since we don't get
any deltas in binaries), this is a strong
indicator for a binary.
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-09-26 09:04:01 +02:00
Sebastian Martinez
9b15911f83
Use lastCommit of each blob for navigation instead of patch revision
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-09-25 10:07:14 +02:00
Sebastian Martinez
ee9cb2b0d7
Clean up some unnecessary types
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-09-19 07:49:36 +02:00
Sebastian Martinez
217d8b2dd4
Add base diffChangeset schema and extend for other schemas
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-09-19 07:49:36 +02:00
Sebastian Martinez
00905afea4
Add DiffContent type to @httpd-client
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-09-19 07:49:36 +02:00
Sebastian Martinez
ca6762fc95
Refactor commit and diff types, updates outdated diff types
...
- Adds support for modified moved files see https://github.com/radicle-dev/radicle-git/pull/141
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-09-19 07:49:36 +02:00
Sebastian Martinez
a650c37383
Add alias to session payload
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-09-16 07:00:08 +02:00
Sebastian Martinez
542630a7f7
Add patch comment and state modifiers
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-08-30 17:05:25 +02:00
Sebastian Martinez
cccee12477
Add a NodeConfigurator class, to modify a config.json
...
Since Heartwood is removing some of the radicle-node options we were
relying on when starting nodes for our tests, we need to move those to
the `config.json` file.
To make it more DX friendly, I added a `NodeConfigurator` class which
reads the correspondig `config.json`, stores it and allows to configure
it before starting a node.
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-08-22 09:54:34 +02:00
Sebastian Martinez
2c81228db6
Sort node projects by HEAD commit time
...
Instead of going with project activity which is being stripped
everything that is older than one year, we should look at the current
project head time.
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-08-17 11:29:19 +02:00
Sebastian Martinez
6a1137a024
Add parents property to CommitHeader type
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-08-14 11:33:00 +02:00
Rūdolfs Ošiņš
0146ca00b5
Update the UI to work with the new COB schema
...
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org >
2023-08-08 10:53:49 +02:00
Sebastian Martinez
14ba807e55
Set the httpd port for the test suite to be 8081.
...
Also where possible use the `config.seeds.defaultHttpdPort` instead of
hardcoding it.
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-17 15:19:31 +02:00
Sebastian Martinez
d03f0ae2c0
Add missing tests to project and session routes
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-12 10:58:46 +02:00
Sebastian Martinez
4bf37b6d26
Add support functions for httpd-api tests
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-12 10:58:45 +02:00
Sebastian Martinez
0327cf21e5
Add a create method to the session.Client
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-12 10:58:45 +02:00
Sebastian Martinez
d5857952aa
Add createPatch method to the project.Client
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-12 10:58:45 +02:00
Sebastian Martinez
3d4e1bbfd9
Add httpd test fixture to vitest httpd-api tests
...
This fixture is simil to the way Playwright handles fixtures, which are
being setup and teardown for each test.
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-12 10:58:45 +02:00
Sebastian Martinez
92f19d0ca4
Bring cobsFixture back to the httpd-api tests
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-12 10:58:45 +02:00
Sebastian Martinez
00f752a990
Fix @httpd-client path resolving in httpd-api tests
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-12 10:58:45 +02:00
Sebastian Martinez
9294e23ea4
Update patch review schemas
...
To address changes to patch code review,
implemented in Heartwood in commit 45e87a6.
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-11 13:59:23 +02:00
Rūdolfs Ošiņš
cb52e96542
Use generic routing Link component everywhere
...
This way we can get rid of the project browsing specific ProjectLink
component and simplify the router types.
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org >
2023-07-09 15:05:18 +02:00
Sebastian Martinez
db94969f8a
Allow httpd API ports to be generated randomly.
...
To avoid port collisions between tests that can eventually run in
parallel, we need to be able to generate random port numbers.
This commit generates random httpd port numbers for inline tests,
while keeping the current palm seed with the default port number 8080.
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-09 14:19:47 +02:00
Sebastian Martinez
3e797a2d08
Make a globalSetup for the httpd-client tests
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-04 09:56:23 +02:00
Sebastian Martinez
f971d777f2
Add missing moved and copied file operations to Changeset
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2022-11-17 17:50:19 +01:00
Rūdolfs Ošiņš
3f7a58c489
Handle app URL translation into seed BaseUrl in one place
...
To make the code easier to reason about we handle all app URL encoding
and decoding and the related seed BaseUrl extraction in a single place.
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org >
2023-06-28 10:51:59 +02:00
Rūdolfs Ošiņš
149a5d6fb5
Fix comment schema
...
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org >
2023-06-27 18:21:21 +02:00
Sebastian Martinez
4df9810088
Rename hostnamePort to hostAndPort
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-06-14 16:19:05 +02:00
Sebastian Martinez
52cece4680
Handle custom httpd port
...
We only supported fetching the default httpd port (8080).
This commit removes navigation to `radicle.local` which represents
`0.0.0.0:8080`, and prepares the app for defining custom port.
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-06-14 16:17:21 +02:00
Sebastian Martinez
889b13303b
Extract markdown from source-browsing fixture
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-06-05 15:08:32 +02:00
Rūdolfs Ošiņš
260cd4c144
Use object instead of strictObject for httpd schema checking
...
This way we can deploy back-end API changes that are backwards
compatible without breaking the UI.
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org >
2023-06-02 15:54:50 +02:00
xphoniex
c3346575ee
Show number of nodes tracking a repo
...
Signed-off-by: xphoniex <dj.2dixx@gmail.com >
2023-06-02 13:11:27 +00:00
xphoniex
47622735c7
Use description from first revisions of Patch
...
Signed-off-by: xphoniex <dj.2dixx@gmail.com >
2023-05-29 13:02:44 +00:00
xphoniex
da361fb399
Use author from Revision as it might differ from original one
...
Signed-off-by: xphoniex <dj.2dixx@gmail.com >
2023-05-29 15:57:07 +03:30
xphoniex
a916783d6f
Add reviewers field on Patch scheme
...
Signed-off-by: xphoniex <dj.2dixx@gmail.com >
2023-05-29 12:23:56 +00:00
xphoniex
824c719313
Use the new Merge scheme for Patch
...
`merges` field has moved one level up, from `revisions` to `patch` itself
Signed-off-by: xphoniex <dj.2dixx@gmail.com >
2023-05-29 12:14:17 +00:00
xphoniex
39874d8d51
Add alias to Patch
...
Signed-off-by: xphoniex <dj.2dixx@gmail.com >
2023-05-29 12:14:17 +00:00
Sebastian Martinez
cc70c24684
Remove unnecessary type definitions from vite and tsconfig
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-05-23 09:31:36 +02:00
xphoniex
2b21390540
Add alias to PeerSelector
...
Signed-off-by: xphoniex <dj.2dixx@gmail.com >
2023-05-16 08:17:48 +02:00
xphoniex
305c9677fd
Add alias to Comment
...
Signed-off-by: xphoniex <dj.2dixx@gmail.com >
2023-05-12 14:30:27 +00:00
xphoniex
3eab5b9d62
Add alias to Issue/IssueTeaser
...
Signed-off-by: xphoniex <dj.2dixx@gmail.com >
2023-05-12 14:58:16 +02:00
xphoniex
04bae0ade6
Add alias to PatchTeaser
...
Signed-off-by: xphoniex <dj.2dixx@gmail.com >
2023-05-12 14:57:10 +02:00
Sebastian Martinez
c32b303744
Add CLI tooling to create seed fixtures on the fly
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-05-12 14:23:10 +02:00
Rūdolfs Ošiņš
b815c9004b
Fix httpd client root query
...
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org >
2023-05-11 18:15:47 +02:00
Rūdolfs Ošiņš
b997b12353
Implement data loading in router
...
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org >
2023-05-11 10:51:35 +02:00
Sebastian Martinez
d8d049518b
Improve patch timeline and add description
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-05-10 09:15:19 +02:00
Rūdolfs Ošiņš
518b821250
Fix patch review schema
...
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org >
2023-04-26 10:42:00 +02:00
Rūdolfs Ošiņš
3a4a766cfa
Fix httpd-client patch review verdict schema
...
We now also show an error message to the user instead of silently
failing.
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org >
2023-04-25 11:56:40 +02:00
Sebastian Martinez
d77b6041a6
Fetch cobs by selected or default state
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-04-20 22:29:37 +02:00