From a831e18a72107abfbf11d2ba3c12f8467a345009 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Wed, 17 Jul 2024 14:00:07 +0200 Subject: [PATCH] node: Change node web config metadata fields - Remove the `name` field as it is not required in the new design. - Rename `imageUrl` to `bannerUrl` to hint users that it's going to be used as a header image. - Add a new field `avatarUrl` so node operators can customize their node further. --- radicle/src/web.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/radicle/src/web.rs b/radicle/src/web.rs index 213939b7..990cca12 100644 --- a/radicle/src/web.rs +++ b/radicle/src/web.rs @@ -10,12 +10,12 @@ use crate::prelude::RepoId; pub struct Config { /// Pinned content. pub pinned: Pinned, - /// URL pointing to an image for the node. + /// URL pointing to an image used in the header of a node page. #[serde(default, skip_serializing_if = "Option::is_none")] - pub image_url: Option, - /// Node name. + pub banner_url: Option, + /// URL pointing to an image used as the node avatar. #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + pub avatar_url: Option, /// Node description. #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option,