Add Tauri command for querying repositories
This will be used by the new design in the sidebar. We also didn’t have the notification endpoints covered in our test suite, this patch adds those.
6 files changed
+78
-0
a6af8499
→
656ddd17
modified crates/radicle-tauri/src/commands/repo.rs
@@ -23,6 +23,13 @@ pub fn list_repos(
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-tauri/src/lib.rs
@@ -58,6 +58,7 @@ pub fn run() {
|
|
|
|
|
|
| + | |
|
|
|
|
|
added crates/radicle-types/bindings/repo/RepoSummary.ts
@@ -0,0 +1,3 @@
| + | |
| + | |
| + | |
modified crates/radicle-types/src/repo.rs
@@ -13,6 +13,16 @@ use crate::error;
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-types/src/traits/repo.rs
@@ -73,6 +73,31 @@ pub trait Repo: Profile {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/test-http-api/src/api.rs
@@ -63,6 +63,11 @@ pub fn router(ctx: Context) -> Router {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -93,6 +98,9 @@ pub fn router(ctx: Context) -> Router {
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -131,6 +139,30 @@ async fn repo_count_handler(State(ctx): State<Context>) -> impl IntoResponse {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|