feat: Implement summary field for database row (#5246)

* chore: impl summary field

* chore: draft ui

* chore: add summary event

* chore: impl desktop ui

* chore: impl mobile ui

* chore: update test

* chore: disable ai test
This commit is contained in:
Nathan.fooo
2024-05-05 22:04:34 +08:00
committed by GitHub
parent 999ffeba21
commit a69e83c2cb
83 changed files with 1802 additions and 628 deletions

View File

@ -2,6 +2,7 @@ use std::collections::HashMap;
use std::sync::Arc;
use bytes::Bytes;
pub use collab_folder::View;
use collab_folder::ViewLayout;
use tokio::sync::RwLock;
@ -52,7 +53,10 @@ pub trait FolderOperationHandler {
/// * `view_id`: the view id
/// * `name`: the name of the view
/// * `data`: initial data of the view. The data should be parsed by the [FolderOperationHandler]
/// implementation. For example, the data of the database will be [DatabaseData].
/// implementation.
/// For example,
/// 1. the data of the database will be [DatabaseData] that is serialized to JSON
/// 2. the data of the document will be [DocumentData] that is serialized to JSON
/// * `layout`: the layout of the view
/// * `meta`: use to carry extra information. For example, the database view will use this
/// to carry the reference database id.