feat: add user profile with avatar, bio, and lifetime stats

- Add profile fields to HikariConfig (name, avatar path, bio)
- Create ProfilePanel component with trans-pride themed styling
- Add profile button to StatusBar for easy access
- Display lifetime stats (messages, tokens, code blocks, files, cost)
- Show achievement completion progress bar
- Support file picker for avatar image selection
- Remove global stats from StatsDisplay (now in Profile)

Co-Authored-By: Hikari <hikari@nhcarrigan.com>
This commit is contained in:
2026-01-25 20:06:03 -08:00
parent 4f02747064
commit 8a19f35922
6 changed files with 568 additions and 9 deletions
+19
View File
@@ -82,6 +82,16 @@ pub struct HikariConfig {
#[serde(default)]
pub compact_mode: bool,
// Profile fields
#[serde(default)]
pub profile_name: Option<String>,
#[serde(default)]
pub profile_avatar_path: Option<String>,
#[serde(default)]
pub profile_bio: Option<String>,
}
impl Default for HikariConfig {
@@ -105,6 +115,9 @@ impl Default for HikariConfig {
streamer_mode: false,
streamer_hide_paths: false,
compact_mode: false,
profile_name: None,
profile_avatar_path: None,
profile_bio: None,
}
}
}
@@ -162,6 +175,9 @@ mod tests {
assert!(!config.streamer_mode);
assert!(!config.streamer_hide_paths);
assert!(!config.compact_mode);
assert!(config.profile_name.is_none());
assert!(config.profile_avatar_path.is_none());
assert!(config.profile_bio.is_none());
}
#[test]
@@ -185,6 +201,9 @@ mod tests {
streamer_mode: false,
streamer_hide_paths: false,
compact_mode: false,
profile_name: Some("Test User".to_string()),
profile_avatar_path: None,
profile_bio: Some("A test bio".to_string()),
};
let json = serde_json::to_string(&config).unwrap();