[feat](trx-client): support rig display names in frontend layer

Add display_name field to RemoteRigEntry and propagate from GetRigs
response. Update http-json frontend to include display_name in rig
entries.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-26 23:46:08 +01:00
parent 283c9b049e
commit f716e7ec47
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -20,6 +20,7 @@ use trx_core::{DynResult, RigRequest, RigState};
#[derive(Clone, Debug)]
pub struct RemoteRigEntry {
pub rig_id: String,
pub display_name: Option<String>,
pub state: RigSnapshot,
pub audio_port: Option<u16>,
}
@@ -243,6 +243,7 @@ fn snapshot_remote_rigs(context: &FrontendRuntimeContext) -> Vec<RigEntry> {
.iter()
.map(|entry| RigEntry {
rig_id: entry.rig_id.clone(),
display_name: entry.display_name.clone(),
state: entry.state.clone(),
audio_port: entry.audio_port,
})