[PR #1884] [MERGED] chore: calendar plugin backend database data #4996

Closed
opened 2026-03-23 22:16:45 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/1884
Author: @richardshiue
Created: 2/24/2023
Status: Merged
Merged: 2/24/2023
Merged by: @appflowy

Base: mainHead: feat-calendar-view-3


📝 Commits (10+)

  • 840f215 chore: implement CalendarBloc
  • f6c3e8d chore: enable save and read the calendar setting
  • 146ff34 style: more precise variable name
  • ced8f5e chore: backend calendar settings
  • 160f2b6 chore: protobuf for layout settings
  • 7fbb70f chore: update test
  • ac1acc2 chore: Merge branch 'main' into feat-calendar-view-3
  • 53f8f6f chore: Enumerate the LayoutTypePB enum type to get the supported layout types
  • b315a8d fix: deserialize object type is not the same as serialize object type
  • ad036ce chore: add set/get calendar settings event

📊 Changes

13 files changed (+568 additions, -32 deletions)

View changed files

frontend/app_flowy/lib/plugins/calendar/application/calendar_bloc.dart (+159 -0)
frontend/app_flowy/lib/plugins/calendar/application/calendar_data_controller.dart (+115 -0)
frontend/app_flowy/lib/plugins/calendar/application/calendar_listener.dart (+65 -0)
📝 frontend/rust-lib/flowy-client-sync/src/client_database/database_view_revision_pad.rs (+27 -0)
frontend/rust-lib/flowy-database/src/entities/calendar_entities.rs (+85 -0)
📝 frontend/rust-lib/flowy-database/src/entities/mod.rs (+2 -0)
📝 frontend/rust-lib/flowy-database/src/entities/setting_entities.rs (+17 -23)
📝 frontend/rust-lib/flowy-database/src/event_handler.rs (+20 -0)
📝 frontend/rust-lib/flowy-database/src/event_map.rs (+10 -1)
📝 frontend/rust-lib/flowy-database/src/notification.rs (+2 -0)
📝 frontend/rust-lib/flowy-database/src/services/database_view/editor.rs (+21 -1)
📝 frontend/rust-lib/flowy-database/src/services/database_view/trait_impl.rs (+17 -6)
📝 shared-lib/database-model/src/view_rev.rs (+28 -1)

📄 Description

  • Introduces layout settings to a database, with each view having its own set of options
  • Options for the calendar view are also introduced in this PR, namely CalendarSettingsParams/PB
  • Add events and notifications for communication between frontend and backend
  • Introduces the CalendarBloc in the frontend's application domain

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

  • Passes existing tests

Checklist:

  • I have performed a self-review of my own code
  • I have commented on my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/1884 **Author:** [@richardshiue](https://github.com/richardshiue) **Created:** 2/24/2023 **Status:** ✅ Merged **Merged:** 2/24/2023 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `feat-calendar-view-3` --- ### 📝 Commits (10+) - [`840f215`](https://github.com/AppFlowy-IO/AppFlowy/commit/840f21538e0808c2720960b7a6fd30b26d9e15da) chore: implement CalendarBloc - [`f6c3e8d`](https://github.com/AppFlowy-IO/AppFlowy/commit/f6c3e8d532d2dffa7b05e1a0a59c0ef4c971b210) chore: enable save and read the calendar setting - [`146ff34`](https://github.com/AppFlowy-IO/AppFlowy/commit/146ff3469496d71a7ae81e68c4aa996e22d06fd8) style: more precise variable name - [`ced8f5e`](https://github.com/AppFlowy-IO/AppFlowy/commit/ced8f5ed93d74430bdabc8f34e26411496c7eba6) chore: backend calendar settings - [`160f2b6`](https://github.com/AppFlowy-IO/AppFlowy/commit/160f2b68f841055463bad13ae5f1b681fac56172) chore: protobuf for layout settings - [`7fbb70f`](https://github.com/AppFlowy-IO/AppFlowy/commit/7fbb70f6f8a5233f8cfc1668f2542d7ece3106e6) chore: update test - [`ac1acc2`](https://github.com/AppFlowy-IO/AppFlowy/commit/ac1acc24ab691fd8a2396be5189841256525de6d) chore: Merge branch 'main' into feat-calendar-view-3 - [`53f8f6f`](https://github.com/AppFlowy-IO/AppFlowy/commit/53f8f6fa4382028e9d815c465a68d965d9ef8c4a) chore: Enumerate the LayoutTypePB enum type to get the supported layout types - [`b315a8d`](https://github.com/AppFlowy-IO/AppFlowy/commit/b315a8da1a419d0209b5c42c83457f9958c3efee) fix: deserialize object type is not the same as serialize object type - [`ad036ce`](https://github.com/AppFlowy-IO/AppFlowy/commit/ad036ceb3e12e0f8e4a028d052252a163fca1335) chore: add set/get calendar settings event ### 📊 Changes **13 files changed** (+568 additions, -32 deletions) <details> <summary>View changed files</summary> ➕ `frontend/app_flowy/lib/plugins/calendar/application/calendar_bloc.dart` (+159 -0) ➕ `frontend/app_flowy/lib/plugins/calendar/application/calendar_data_controller.dart` (+115 -0) ➕ `frontend/app_flowy/lib/plugins/calendar/application/calendar_listener.dart` (+65 -0) 📝 `frontend/rust-lib/flowy-client-sync/src/client_database/database_view_revision_pad.rs` (+27 -0) ➕ `frontend/rust-lib/flowy-database/src/entities/calendar_entities.rs` (+85 -0) 📝 `frontend/rust-lib/flowy-database/src/entities/mod.rs` (+2 -0) 📝 `frontend/rust-lib/flowy-database/src/entities/setting_entities.rs` (+17 -23) 📝 `frontend/rust-lib/flowy-database/src/event_handler.rs` (+20 -0) 📝 `frontend/rust-lib/flowy-database/src/event_map.rs` (+10 -1) 📝 `frontend/rust-lib/flowy-database/src/notification.rs` (+2 -0) 📝 `frontend/rust-lib/flowy-database/src/services/database_view/editor.rs` (+21 -1) 📝 `frontend/rust-lib/flowy-database/src/services/database_view/trait_impl.rs` (+17 -6) 📝 `shared-lib/database-model/src/view_rev.rs` (+28 -1) </details> ### 📄 Description - Introduces layout settings to a database, with each view having its own set of options - Options for the calendar view are also introduced in this PR, namely CalendarSettingsParams/PB - Add events and notifications for communication between frontend and backend - Introduces the CalendarBloc in the frontend's application domain ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [x] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [x] This change requires a documentation update ## How Has This Been Tested? - [x] Passes existing tests ## Checklist: - [x] I have performed a self-review of my own code - [x] I have commented on my code, particularly in hard-to-understand areas - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] Any dependent changes have been merged and published in downstream modules --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 22:16:45 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#4996
No description provided.