mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
Merge pull request #907 from AppFlowy-IO/feat/enable_create_board
chore: enable create board
This commit is contained in:
commit
9188c1193e
10
CHANGELOG.md
10
CHANGELOG.md
@ -1,5 +1,15 @@
|
|||||||
# Release Notes
|
# Release Notes
|
||||||
|
|
||||||
|
## Version 0.0.5 - beta.1 - 2022-08-25
|
||||||
|
|
||||||
|
New features
|
||||||
|
- Board-view database
|
||||||
|
- Group by single select
|
||||||
|
- drag and drop cards
|
||||||
|
- insert / delete cards
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Version 0.0.4 - 2022-06-06
|
## Version 0.0.4 - 2022-06-06
|
||||||
- Drag to adjust the width of a column
|
- Drag to adjust the width of a column
|
||||||
- Upgrade to Flutter 3.0
|
- Upgrade to Flutter 3.0
|
||||||
|
@ -31,7 +31,7 @@ class BoardPluginBuilder implements PluginBuilder {
|
|||||||
|
|
||||||
class BoardPluginConfig implements PluginConfig {
|
class BoardPluginConfig implements PluginConfig {
|
||||||
@override
|
@override
|
||||||
bool get creatable => false;
|
bool get creatable => true;
|
||||||
}
|
}
|
||||||
|
|
||||||
class BoardPlugin extends Plugin {
|
class BoardPlugin extends Plugin {
|
||||||
|
@ -45,8 +45,7 @@ class _BoardSelectOptionCellState extends State<BoardSelectOptionCell> {
|
|||||||
)
|
)
|
||||||
.toList();
|
.toList();
|
||||||
return Padding(
|
return Padding(
|
||||||
padding:
|
padding: EdgeInsets.only(top: BoardSizes.cardCellVPadding),
|
||||||
EdgeInsets.symmetric(vertical: BoardSizes.cardCellVPadding),
|
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.centerLeft,
|
||||||
child: AbsorbPointer(
|
child: AbsorbPointer(
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
class BoardSizes {
|
class BoardSizes {
|
||||||
static double get cardCellVPadding => 4;
|
static double get cardCellVPadding => 6;
|
||||||
}
|
}
|
||||||
|
@ -157,6 +157,9 @@ pub fn select_option_color_from_index(index: usize) -> SelectOptionColorPB {
|
|||||||
pub struct SelectOptionIds(Vec<String>);
|
pub struct SelectOptionIds(Vec<String>);
|
||||||
|
|
||||||
impl SelectOptionIds {
|
impl SelectOptionIds {
|
||||||
|
pub fn new() -> Self {
|
||||||
|
Self(vec![])
|
||||||
|
}
|
||||||
pub fn into_inner(self) -> Vec<String> {
|
pub fn into_inner(self) -> Vec<String> {
|
||||||
self.0
|
self.0
|
||||||
}
|
}
|
||||||
@ -181,6 +184,12 @@ impl std::convert::From<String> for SelectOptionIds {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl ToString for SelectOptionIds {
|
||||||
|
fn to_string(&self) -> String {
|
||||||
|
self.0.join(SELECTION_IDS_SEPARATOR)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl std::convert::From<Option<String>> for SelectOptionIds {
|
impl std::convert::From<Option<String>> for SelectOptionIds {
|
||||||
fn from(s: Option<String>) -> Self {
|
fn from(s: Option<String>) -> Self {
|
||||||
match s {
|
match s {
|
||||||
|
@ -86,7 +86,10 @@ pub fn make_default_board() -> BuildGridContext {
|
|||||||
}
|
}
|
||||||
1 => {
|
1 => {
|
||||||
row_builder.insert_text_cell(&text_field_id, "Learn French".to_string());
|
row_builder.insert_text_cell(&text_field_id, "Learn French".to_string());
|
||||||
row_builder.insert_select_option_cell(&multi_select_field_id, travel_option.id.clone());
|
let mut options = SelectOptionIds::new();
|
||||||
|
options.push(fun_option.id.clone());
|
||||||
|
options.push(travel_option.id.clone());
|
||||||
|
row_builder.insert_select_option_cell(&multi_select_field_id, options.to_string());
|
||||||
}
|
}
|
||||||
|
|
||||||
2 => {
|
2 => {
|
||||||
@ -114,7 +117,10 @@ pub fn make_default_board() -> BuildGridContext {
|
|||||||
|
|
||||||
2 => {
|
2 => {
|
||||||
row_builder.insert_text_cell(&text_field_id, "Write atomic essays ".to_string());
|
row_builder.insert_text_cell(&text_field_id, "Write atomic essays ".to_string());
|
||||||
row_builder.insert_select_option_cell(&multi_select_field_id, fun_option.id.clone());
|
let mut options = SelectOptionIds::new();
|
||||||
|
options.push(fun_option.id.clone());
|
||||||
|
options.push(work_option.id.clone());
|
||||||
|
row_builder.insert_select_option_cell(&multi_select_field_id, options.to_string());
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
@ -132,7 +138,10 @@ pub fn make_default_board() -> BuildGridContext {
|
|||||||
}
|
}
|
||||||
1 => {
|
1 => {
|
||||||
row_builder.insert_text_cell(&text_field_id, "Visit Chicago".to_string());
|
row_builder.insert_text_cell(&text_field_id, "Visit Chicago".to_string());
|
||||||
row_builder.insert_select_option_cell(&multi_select_field_id, travel_option.id.clone());
|
let mut options = SelectOptionIds::new();
|
||||||
|
options.push(travel_option.id.clone());
|
||||||
|
options.push(fun_option.id.clone());
|
||||||
|
row_builder.insert_select_option_cell(&multi_select_field_id, options.to_string());
|
||||||
}
|
}
|
||||||
|
|
||||||
_ => {}
|
_ => {}
|
||||||
|
Loading…
Reference in New Issue
Block a user