Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/enhanced serde to cell #344

Merged
merged 10 commits into from
Dec 8, 2024
Merged

Feat/enhanced serde to cell #344

merged 10 commits into from
Dec 8, 2024

Conversation

speed2exe
Copy link
Contributor

@speed2exe speed2exe commented Dec 5, 2024

Adding test cases and improvement for cell type option json serialization and deserialization

  • Rich Text
  • Select
  • Checkbox
  • Number
  • Date
  • URL

@speed2exe speed2exe marked this pull request as ready for review December 5, 2024 15:48
@speed2exe speed2exe requested a review from appflowy December 5, 2024 15:48
@@ -118,8 +121,39 @@ impl TypeOptionCellReader for DateTypeOption {

impl TypeOptionCellWriter for DateTypeOption {
fn convert_json_to_cell(&self, json_value: Value) -> Cell {
let cell_data = serde_json::from_value::<DateCellData>(json_value).unwrap();
Cell::from(&cell_data)
let date_cell_data: DateCellData = match json_value {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should use stringify_cell which will format the string as predefine format.

@appflowy appflowy merged commit b6c74cf into main Dec 8, 2024
6 checks passed
@appflowy appflowy deleted the feat/enhanced-serde-to-cell branch December 8, 2024 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants