aboutsummaryrefslogtreecommitdiff
path: root/src/ui/mobile.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-05-26 17:10:28 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-05-26 17:10:28 +0300
commit3750e0bae21c54da3947d337584f180a21d0bc67 (patch)
tree4542d8af76b4fee0c428ca5e9378a06946ef62ca /src/ui/mobile.rs
parent1b980eaa9d4cbc050b6b81525e4b6b72ae853be5 (diff)
feat: add pane metadata reporting
refs #36
Diffstat (limited to 'src/ui/mobile.rs')
-rw-r--r--src/ui/mobile.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/ui/mobile.rs b/src/ui/mobile.rs
index 89557642..2de79d23 100644
--- a/src/ui/mobile.rs
+++ b/src/ui/mobile.rs
@@ -622,7 +622,15 @@ fn mobile_agent_detail(entry: &AgentPanelEntry) -> String {
if let Some(tab_label) = entry.primary_tab_label.as_deref() {
parts.push(tab_label.to_string());
}
- parts.push(super::status::state_label(entry.state, entry.seen).to_string());
+ let status = entry
+ .state_labels
+ .get(super::sidebar::agent_panel_status_key(
+ entry.state,
+ entry.seen,
+ ))
+ .cloned()
+ .unwrap_or_else(|| super::status::state_label(entry.state, entry.seen).to_string());
+ parts.push(status);
if let Some(agent_label) = entry.agent_label.as_deref() {
parts.push(agent_label.to_string());
}
@@ -940,6 +948,7 @@ mod tests {
state: AgentState::Idle,
seen: true,
custom_status: None,
+ state_labels: std::collections::HashMap::new(),
}
}