[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:
@@ -277,6 +277,7 @@ fn cache_remote_rigs(config: &RemoteClientConfig, rigs: &[RigEntry]) {
|
|||||||
.iter()
|
.iter()
|
||||||
.map(|entry| RemoteRigEntry {
|
.map(|entry| RemoteRigEntry {
|
||||||
rig_id: entry.rig_id.clone(),
|
rig_id: entry.rig_id.clone(),
|
||||||
|
display_name: entry.display_name.clone(),
|
||||||
state: entry.state.clone(),
|
state: entry.state.clone(),
|
||||||
audio_port: entry.audio_port,
|
audio_port: entry.audio_port,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ use trx_core::{DynResult, RigRequest, RigState};
|
|||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct RemoteRigEntry {
|
pub struct RemoteRigEntry {
|
||||||
pub rig_id: String,
|
pub rig_id: String,
|
||||||
|
pub display_name: Option<String>,
|
||||||
pub state: RigSnapshot,
|
pub state: RigSnapshot,
|
||||||
pub audio_port: Option<u16>,
|
pub audio_port: Option<u16>,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -243,6 +243,7 @@ fn snapshot_remote_rigs(context: &FrontendRuntimeContext) -> Vec<RigEntry> {
|
|||||||
.iter()
|
.iter()
|
||||||
.map(|entry| RigEntry {
|
.map(|entry| RigEntry {
|
||||||
rig_id: entry.rig_id.clone(),
|
rig_id: entry.rig_id.clone(),
|
||||||
|
display_name: entry.display_name.clone(),
|
||||||
state: entry.state.clone(),
|
state: entry.state.clone(),
|
||||||
audio_port: entry.audio_port,
|
audio_port: entry.audio_port,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user