mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
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:
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user