Commit Graph
22 Commits
Author SHA1 Message Date
Sebastian Martinez ece9ee1eb0 Avoid announcing changes when node is stopped
Also in the edge case that the front-end didn't update and the node just
stopped in between we fallback gracefully instead of returning an error
on the back-end.
2024-12-06 10:06:45 +01:00
Sebastian Martinez 653cf9a48d Sort repos by activity 2024-12-05 13:56:12 +01:00
Sebastian Martinez 5c8844db1c Fix radicle crate at 0.14.0
Also update `heartwood-release` to a pre-release to get the tests to
pass
2024-12-02 17:06:42 +01:00
Sebastian Martinez e093a5bc29 Let ts_rs run formatting types instead of prettier 2024-12-02 16:34:12 +01:00
Sebastian Martinez 1f779a8a1b Add tests for list_commits unit test 2024-12-02 16:34:12 +01:00
Sebastian Martinez 70ee53e859 Add unit tests for radicle-types crate 2024-12-02 16:34:12 +01:00
Sebastian Martinez b7b71ccb11 Move AppState to radicle-types 2024-12-02 16:30:54 +01:00
Sebastian Martinez f5d559158b Add list_commits tauri command
Returns all commits for a specific repo.

Takes a `parent` argument as starting point for the git history.
Uses the `head` field of the project payload if not provided.

Instead of since and until timestamps uses cursor and take params to
paginate the commit history.
2024-12-02 16:30:54 +01:00
Sebastian Martinez a2776c27a4 Remove migrate argument since not used anymore 2024-12-02 16:30:54 +01:00
Sebastian Martinez 4670370562 Use Into::into instead of a closure in radicle-types 2024-11-22 11:15:05 +01:00
Sebastian Martinez c176fb9a3d Take a &identity::Did for the Author constructor 2024-11-22 10:54:49 +01:00
Sebastian Martinez 936d8197b1 Update heartwood crates to commit 2d13591
- Add `migrate::ignore` callback to `cob::cache` calls
- Remove the `Verified` trait from the `Doc` struct
- Update `Doc` fields with read-only methods
2024-11-22 10:54:49 +01:00
Sebastian Martinez 06437656c0 Add filter for repos to list_repos command
Instead of only returning seeded repos, this repo adds 3 new filter
options to the `list_repos` command, under the `show` field

- *all* - All repos that a user has initialized or forked (own
namespace)
- *seeded* - Repos that are beeing seeded by the user
- *delegate* - Repos that the current user is a delegate of.
2024-11-22 09:35:26 +01:00
Sebastian Martinez 7cdf6544ad Fix error serialize in the test-http-api crate 2024-11-20 14:20:57 +01:00
Sebastian Martinez d52c01e26a Fix error serialize implementation 2024-11-19 10:42:37 +01:00
Sebastian Martinez 4537a003ad Refactor issue thread compute to the backend 2024-11-08 06:49:09 +01:00
Sebastian Martinez d90dc0735c Add test-http-api crate to make app work in browser
A new `invoke` function calls either the tauri backend or the
`test-http-api` function if ran in a browser.
2024-10-28 13:56:23 +01:00
Sebastian Martinez 56f55051eb Flatten Action with serde instead of ts_rs 2024-10-23 16:37:00 +02:00
Sebastian Martinez fc8613606d Fix entry_id field to camelCase 2024-10-23 12:47:52 +02:00
Sebastian Martinez 5277028e1a Add edit_patch tauri command 2024-10-23 11:58:40 +02:00
Sebastian Martinez 874605633e Refactor types
- Improves the hierarchy of types into separate folders
- Improve the types generation making more structs and less serde_json
- Adding more optional values to the tauri commands
2024-10-23 11:58:37 +02:00
Sebastian Martinez 0bdf0e7192 Extract rust types into its own crate 2024-10-22 13:10:12 +02:00