Feat/calendar with backend data (#1930)

* chore: enable calendar view

* chore: update database group listener

* refactor: remove board data controller

* refactor: remove group backend service

* refactor: remove calendar controller

* chore: create default calendar setting

* chore: send calednar setting notifications

* refactor: rename the card in kanban board, prepare to reuse in calendar

* refactor: support custom card cell

* chore: return calendar events

* refactor: remove groupId in card, make card more generic

* chore: display cell

* chore: display three cards in calendar

* chore: create calendar card

* refactor: create row with data

* chore: support create event

* ci: fix tauri build

* chore: disable create calendar
This commit is contained in:
Nathan.fooo
2023-03-08 21:19:44 +08:00
committed by GitHub
parent 90da54d12f
commit 7106195d8a
92 changed files with 2407 additions and 1305 deletions

View File

@ -186,6 +186,9 @@ pub enum ErrorCode {
#[error("Payload should not be empty")]
UnexpectedEmptyPayload = 60,
#[error("Only the date type can be used in calendar")]
UnexpectedCalendarFieldType = 61,
}
impl ErrorCode {

View File

@ -82,6 +82,10 @@ impl FlowyError {
static_flowy_error!(field_record_not_found, ErrorCode::FieldRecordNotFound);
static_flowy_error!(payload_none, ErrorCode::UnexpectedEmptyPayload);
static_flowy_error!(http, ErrorCode::HttpError);
static_flowy_error!(
unexpect_calendar_field_type,
ErrorCode::UnexpectedCalendarFieldType
);
}
impl std::convert::From<ErrorCode> for FlowyError {