feat(bridge,ui): add list_channels API and interactive dashboard
- Add Channel model to mm-core - Implement get_my_channels in mm-client - Add list_channels handler and routing in mm-bridge - Create mattermost-dashboard-mode with interactive connection prompt - Add dev-check.sh script for quick Rust validation
This commit is contained in:
@@ -9,5 +9,5 @@ pub mod model;
|
||||
pub use error::{BridgeError, ErrorKind};
|
||||
pub use ids::{ChannelId, PostId, ServerId, TeamId, UserId};
|
||||
pub use model::{
|
||||
BridgeInfo, BridgeState, BridgeStatus, Post, ServerConfig, ServerSummary, Team, User,
|
||||
BridgeInfo, BridgeState, BridgeStatus, Channel, Post, ServerConfig, ServerSummary, Team, User,
|
||||
};
|
||||
|
||||
@@ -65,6 +65,17 @@ pub struct Team {
|
||||
pub display_name: String,
|
||||
}
|
||||
|
||||
/// Normalized Mattermost channel. Only fields needed by the MVP UI.
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct Channel {
|
||||
pub id: ChannelId,
|
||||
pub team_id: TeamId,
|
||||
#[serde(rename = "type")]
|
||||
pub channel_type: String, // "O" (Open), "P" (Private), "D" (Direct), "G" (Group)
|
||||
pub display_name: String,
|
||||
pub name: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct Post {
|
||||
pub id: PostId,
|
||||
|
||||
Reference in New Issue
Block a user