feat: add end date to time cell data (#3369)

* feat: add end date to time cell data

* feat: implement ui for end time

* test: add date to text test

* chore: clippy warnings

* fix: unexpected time parsing

* fix: fix the date logic when toggling end date

---------

Co-authored-by: nathan <nathan@appflowy.io>
This commit is contained in:
Richard Shiue
2023-09-19 09:58:15 +08:00
committed by GitHub
parent b700f95c7f
commit 124d435f09
21 changed files with 629 additions and 124 deletions

View File

@ -331,7 +331,7 @@ impl<'a> TestRowBuilder<'a> {
date: Some(data),
time,
include_time,
clear_flag: None,
..Default::default()
})
.unwrap();
let date_field = self.field_with_type(field_type);

View File

@ -102,7 +102,10 @@ pub fn make_date_cell_string(timestamp: i64) -> String {
serde_json::to_string(&DateCellChangeset {
date: Some(timestamp),
time: None,
end_date: None,
end_time: None,
include_time: Some(false),
is_range: Some(false),
clear_flag: None,
})
.unwrap()