[PR #1901] [MERGED] chore: include time per cell #5004

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/1901
Author: @richardshiue
Created: 2/28/2023
Status: Merged
Merged: 3/9/2023
Merged by: @appflowy

Base: mainHead: include-time-per-cell


📝 Commits (10+)

  • 62b2328 style: autoformat
  • cda2a88 chore: add include_time to cell data
  • 0123f8f chore: remove include_time from date field type options
  • 56b0975 chore: fix tests
  • 5cfe3fd chore: custom deserializer for date cell data
  • 1a7ef68 chore: add more tests
  • 6e905a0 chore: simplify date calculation logic
  • eca2728 chore: move include time to per-cell setting in UI
  • cc77a7f test: add another text str test
  • 5a393ba chore: merge remote-tracking branch 'upstream/main' into include-time-per-cell

📊 Changes

13 files changed (+340 additions, -170 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/plugins/database_view/application/cell/cell_controller_builder.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/database_view/application/cell/cell_data_persistence.dart (+9 -5)
📝 frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/date_cell/date_cal_bloc.dart (+45 -40)
📝 frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/date_cell/date_editor.dart (+8 -3)
📝 frontend/rust-lib/flowy-database/src/event_handler.rs (+1 -0)
📝 frontend/rust-lib/flowy-database/src/services/cell/cell_operation.rs (+4 -3)
📝 frontend/rust-lib/flowy-database/src/services/database_view/editor.rs (+3 -2)
📝 frontend/rust-lib/flowy-database/src/services/field/type_options/date_type_option/date_tests.rs (+116 -20)
📝 frontend/rust-lib/flowy-database/src/services/field/type_options/date_type_option/date_type_option.rs (+56 -79)
📝 frontend/rust-lib/flowy-database/src/services/field/type_options/date_type_option/date_type_option_entities.rs (+80 -17)
📝 frontend/rust-lib/flowy-database/src/services/field/type_options/text_type_option/text_tests.rs (+15 -0)
📝 frontend/rust-lib/flowy-database/tests/database/block_test/util.rs (+1 -0)
📝 frontend/rust-lib/flowy-database/tests/database/field_test/util.rs (+1 -0)

📄 Description

Change the option of including a time for date cells in the appflowy database from an option that applies to the entire field to one that you can toggle for each cell. Toggling the include time option on the header will toggle the setting for all the individual cells in the database.

todo

  • fix test
  • connect to frontend
  • header option
  • more tests (?)

resolves #1888, resolves #695

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

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/1901 **Author:** [@richardshiue](https://github.com/richardshiue) **Created:** 2/28/2023 **Status:** ✅ Merged **Merged:** 3/9/2023 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `include-time-per-cell` --- ### 📝 Commits (10+) - [`62b2328`](https://github.com/AppFlowy-IO/AppFlowy/commit/62b23281a6fffc218568bfeb32904d20216c4a53) style: autoformat - [`cda2a88`](https://github.com/AppFlowy-IO/AppFlowy/commit/cda2a88bb8b248c5d86c321dfc0cf8cc5a7c3122) chore: add include_time to cell data - [`0123f8f`](https://github.com/AppFlowy-IO/AppFlowy/commit/0123f8fc952c314f355741a45153b5abd44b331b) chore: remove include_time from date field type options - [`56b0975`](https://github.com/AppFlowy-IO/AppFlowy/commit/56b097551496c17a333b3531bd7e1e260142df16) chore: fix tests - [`5cfe3fd`](https://github.com/AppFlowy-IO/AppFlowy/commit/5cfe3fd7c025a82b78b29765203cf4f90c1303a3) chore: custom deserializer for date cell data - [`1a7ef68`](https://github.com/AppFlowy-IO/AppFlowy/commit/1a7ef68792b79e95f42cea56d552cb05d650cd0a) chore: add more tests - [`6e905a0`](https://github.com/AppFlowy-IO/AppFlowy/commit/6e905a02877f4716c9cae2e2ef52b36e8867c5ee) chore: simplify date calculation logic - [`eca2728`](https://github.com/AppFlowy-IO/AppFlowy/commit/eca2728d19bc80f0c1b0da3bb6620f265b509181) chore: move include time to per-cell setting in UI - [`cc77a7f`](https://github.com/AppFlowy-IO/AppFlowy/commit/cc77a7f1d416e907399a2f556836061fc8a4a183) test: add another text str test - [`5a393ba`](https://github.com/AppFlowy-IO/AppFlowy/commit/5a393ba1a07bc05409be195a1fa1e6e1b11af152) chore: merge remote-tracking branch 'upstream/main' into include-time-per-cell ### 📊 Changes **13 files changed** (+340 additions, -170 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/plugins/database_view/application/cell/cell_controller_builder.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/database_view/application/cell/cell_data_persistence.dart` (+9 -5) 📝 `frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/date_cell/date_cal_bloc.dart` (+45 -40) 📝 `frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/date_cell/date_editor.dart` (+8 -3) 📝 `frontend/rust-lib/flowy-database/src/event_handler.rs` (+1 -0) 📝 `frontend/rust-lib/flowy-database/src/services/cell/cell_operation.rs` (+4 -3) 📝 `frontend/rust-lib/flowy-database/src/services/database_view/editor.rs` (+3 -2) 📝 `frontend/rust-lib/flowy-database/src/services/field/type_options/date_type_option/date_tests.rs` (+116 -20) 📝 `frontend/rust-lib/flowy-database/src/services/field/type_options/date_type_option/date_type_option.rs` (+56 -79) 📝 `frontend/rust-lib/flowy-database/src/services/field/type_options/date_type_option/date_type_option_entities.rs` (+80 -17) 📝 `frontend/rust-lib/flowy-database/src/services/field/type_options/text_type_option/text_tests.rs` (+15 -0) 📝 `frontend/rust-lib/flowy-database/tests/database/block_test/util.rs` (+1 -0) 📝 `frontend/rust-lib/flowy-database/tests/database/field_test/util.rs` (+1 -0) </details> ### 📄 Description Change the option of including a time for date cells in the appflowy database from an option that applies to the entire field to one that you can toggle for each cell. Toggling the include time option on the header will toggle the setting for all the individual cells in the database. todo - [x] fix test - [x] connect to frontend - [ ] header option - [ ] more tests (?) resolves #1888, resolves #695 ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) ## 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 - [ ] 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:47 +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#5004
No description provided.