From 33e1db94f5f39432ae769434e05f40a5157f1ca2 Mon Sep 17 00:00:00 2001 From: lucalise Date: Tue, 20 Jan 2026 19:35:24 -0800 Subject: [PATCH] feat: implement description --- api/Cargo.lock | 40 ++++++++++++----- api/Cargo.toml | 1 + api/src/endpoints/get_repos.rs | 1 + src/lib/Repos.svelte | 79 +++++++++++++++++++++++++++++++--- src/routes/layout.css | 8 ++++ 5 files changed, 111 insertions(+), 18 deletions(-) diff --git a/api/Cargo.lock b/api/Cargo.lock index f7b3cbb..82e7260 100644 --- a/api/Cargo.lock +++ b/api/Cargo.lock @@ -29,7 +29,7 @@ dependencies = [ "actix-rt", "actix-service", "actix-utils", - "base64", + "base64 0.22.1", "bitflags", "brotli", "bytes", @@ -252,6 +252,7 @@ dependencies = [ "reqwest 0.13.1", "sentry", "serde", + "serde_dynamo", "sqlx", "thiserror 2.0.17", "tokio", @@ -685,6 +686,12 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" +[[package]] +name = "base64" +version = "0.21.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" + [[package]] name = "base64" version = "0.22.1" @@ -1737,7 +1744,7 @@ version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "727805d60e7938b76b826a6ef209eb70eaa1812794f9424d4a4e2d740662df5f" dependencies = [ - "base64", + "base64 0.22.1", "bytes", "futures-channel", "futures-core", @@ -1969,7 +1976,7 @@ version = "10.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c76e1c7d7df3e34443b3621b459b066a7b79644f059fc8b2db7070c825fd417e" dependencies = [ - "base64", + "base64 0.22.1", "ed25519-dalek", "getrandom 0.2.17", "hmac", @@ -2558,7 +2565,7 @@ version = "3.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d30c53c26bc5b31a98cd02d20f25a7c8567146caf63ed593a9d87b2775291be" dependencies = [ - "base64", + "base64 0.22.1", "serde_core", ] @@ -2867,7 +2874,7 @@ version = "0.12.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147" dependencies = [ - "base64", + "base64 0.22.1", "bytes", "futures-channel", "futures-core", @@ -2905,7 +2912,7 @@ version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "04e9018c9d814e5f30cc16a0f03271aeab3571e609612d9fe78c1aa8d11c2f62" dependencies = [ - "base64", + "base64 0.22.1", "bytes", "encoding_rs", "futures-core", @@ -3368,6 +3375,17 @@ dependencies = [ "syn", ] +[[package]] +name = "serde_dynamo" +version = "4.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "873a97c3f7a67dd042bceb47d056d288424b82d4c66b0a25e1a3b34675620951" +dependencies = [ + "base64 0.21.7", + "serde", + "serde_core", +] + [[package]] name = "serde_json" version = "1.0.149" @@ -3541,7 +3559,7 @@ version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ee6798b1838b6a0f69c007c133b8df5866302197e404e8b6ee8ed3e3a5e68dc6" dependencies = [ - "base64", + "base64 0.22.1", "bytes", "crc", "crossbeam-queue", @@ -3615,7 +3633,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aa003f0038df784eb8fecbbac13affe3da23b45194bd57dba231c8f48199c526" dependencies = [ "atoi", - "base64", + "base64 0.22.1", "bitflags", "byteorder", "bytes", @@ -3657,7 +3675,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "db58fcd5a53cf07c184b154801ff91347e4c30d17a3562a635ff028ad5deda46" dependencies = [ "atoi", - "base64", + "base64 0.22.1", "bitflags", "byteorder", "crc", @@ -4172,7 +4190,7 @@ version = "3.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d39cb1dbab692d82a977c0392ffac19e188bd9186a9f32806f0aaa859d75585a" dependencies = [ - "base64", + "base64 0.22.1", "der", "log", "native-tls", @@ -4189,7 +4207,7 @@ version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d81f9efa9df032be5934a46a068815a10a042b494b6a58cb0a1a97bb5467ed6f" dependencies = [ - "base64", + "base64 0.22.1", "http 1.4.0", "httparse", "log", diff --git a/api/Cargo.toml b/api/Cargo.toml index d811c5e..b7ba705 100644 --- a/api/Cargo.toml +++ b/api/Cargo.toml @@ -13,6 +13,7 @@ mime_guess = "2.0.5" reqwest = { version = "0.13.1", features = ["json", "query"] } sentry = { version = "0.46.1", features = ["actix", "tracing"] } serde = "1.0.228" +serde_dynamo = "4.3.0" sqlx = { version = "0.8.6", features = ["postgres", "runtime-tokio", "tls-native-tls"] } thiserror = "2.0.17" tokio = "1.49.0" diff --git a/api/src/endpoints/get_repos.rs b/api/src/endpoints/get_repos.rs index 1bb3c7f..79baec5 100644 --- a/api/src/endpoints/get_repos.rs +++ b/api/src/endpoints/get_repos.rs @@ -42,6 +42,7 @@ pub async fn get_repos( .into_iter() .map(|r| r.id) .collect::>(); + println!("{added_ids:?}"); let data = response .json::>() .await? diff --git a/src/lib/Repos.svelte b/src/lib/Repos.svelte index dcc18c2..b909fae 100644 --- a/src/lib/Repos.svelte +++ b/src/lib/Repos.svelte @@ -1,5 +1,5 @@