Refactor image grid empty state, enhance header styles, and update ChannelRef struct

- Changed the empty state message in ImageGrid to use a dedicated class for styling.
- Adjusted padding and border-radius for the "Guild Watcher" label in the header for better aesthetics.
- Introduced a new class for the status indicator dot and linked its visibility to the connection state.
- Updated ChannelRef struct to include optional fields for thread_id and thread_name with appropriate serialization settings.
This commit is contained in:
asepharyana
2026-07-05 03:53:56 +07:00
parent b5d4e46b79
commit e5c87a8ee6
4 changed files with 405 additions and 218 deletions
@@ -131,12 +131,16 @@ impl<'de> Deserialize<'de> for EmbedMedia {
}
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct ChannelRef {
pub channel_id: String,
#[serde(default)]
#[serde(skip_serializing_if = "Option::is_none")]
pub channel_name: Option<String>,
#[serde(default)]
#[serde(skip_serializing_if = "Option::is_none")]
pub thread_id: Option<String>,
#[serde(default)]
#[serde(skip_serializing_if = "Option::is_none")]
pub thread_name: Option<String>,
}