voelin-gpui: VOELIN_DEMO_SERVER, the logged Move to my channel, and what a click costs
- VOELIN_DEMO_SERVER=<0..2> puts another sample server on screen: the second is observed and the third is not connected, both with empty trees, which is how the pictures of an empty server are made. - The person's context menu offers Move to my channel; the engine has no command to move another client, so the action is logged. - A test that holds what the caches cannot save: pressing and releasing a clickable element refresh the window, so a click renders every pane, and a hover renders only the pane the pointer is over. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
26302bcdde
commit
aa640cf2b0
5 files changed
+119
-4
No files matched your search
@@ -26,7 +26,7 @@ use voelin_ui_vm::bridge::TreeItem;
|
||||
use voelin_ui_vm::tree::ChannelId;
|
||||
|
||||
use super::actions::{
|
||||
EditChannel, JoinChannel, OpenClient, OpenMember, SelectChannel, ToggleChannel,
|
||||
EditChannel, JoinChannel, MoveClient, OpenClient, OpenMember, SelectChannel, ToggleChannel,
|
||||
};
|
||||
use super::tree_model::{Emptiness, TreeEvent, TreeModel};
|
||||
use super::widgets::{Avatar, icon, live_badge, small_picture};
|
||||
@@ -364,6 +364,8 @@ fn client_row(theme: &VoelinTheme, item: &TreeItem) -> AnyElement {
|
||||
.context_menu(move |menu, _, _| {
|
||||
menu.menu("Show the card", Box::new(OpenMember { client: id as i32 }))
|
||||
.menu("Volume…", Box::new(OpenClient { client: id as u16 }))
|
||||
.separator()
|
||||
.menu("Move to my channel", Box::new(MoveClient { client: id as u16 }))
|
||||
})
|
||||
.into_any_element()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user