mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: AI chat (#5383)
* chore: ai type * chore: use patch to fix version issue * chore: update * chore: update * chore: integrate client api * chore: add schema * chore: setup event * chore: add event test * chore: add test * chore: update test * chore: load chat message * chore: load chat message * chore: chat ui * chore: disable create chat * chore: update client api * chore: disable chat * chore: ui theme * chore: ui theme * chore: copy message * chore: fix test * chore: show error * chore: update bloc * chore: update test * chore: lint * chore: icon * chore: hover * chore: show unsupported page * chore: adjust mobile ui * chore: adjust view title bar * chore: return related question * chore: error page * chore: error page * chore: code format * chore: prompt * chore: fix test * chore: ui adjust * chore: disable create chat * chore: add loading page * chore: fix test * chore: disable chat action * chore: add maximum text limit
This commit is contained in:
@ -170,6 +170,7 @@ fn sync_view(
|
||||
}
|
||||
}
|
||||
},
|
||||
ViewLayout::Chat => {},
|
||||
}
|
||||
|
||||
tokio::task::yield_now().await;
|
||||
@ -357,6 +358,7 @@ fn collab_type_from_view_layout(view_layout: &ViewLayout) -> CollabType {
|
||||
match view_layout {
|
||||
ViewLayout::Document => CollabType::Document,
|
||||
ViewLayout::Grid | ViewLayout::Board | ViewLayout::Calendar => CollabType::Database,
|
||||
ViewLayout::Chat => CollabType::Unknown,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -14,6 +14,9 @@ pub struct WorkspaceMemberPB {
|
||||
|
||||
#[pb(index = 3)]
|
||||
pub role: AFRolePB,
|
||||
|
||||
#[pb(index = 4, one_of)]
|
||||
pub avatar_url: Option<String>,
|
||||
}
|
||||
|
||||
impl From<WorkspaceMember> for WorkspaceMemberPB {
|
||||
@ -22,6 +25,7 @@ impl From<WorkspaceMember> for WorkspaceMemberPB {
|
||||
email: value.email,
|
||||
name: value.name,
|
||||
role: value.role.into(),
|
||||
avatar_url: value.avatar_url,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user