AppFlowy icon indicating copy to clipboard operation
AppFlowy copied to clipboard

[Bug] Cannot add events to Calendar

Open Xazin opened this issue 1 year ago • 1 comments

Bug Description

When creating an event in the calendar, it is possible to change the type and name of the Date field.

Changed the type of the field to Text, and the name and value of the field respectively to Hello and World.

Then changed to another page (where the calendar is referenced), the event was now missing. Went back to the calendar view, and was then unable to add an event to the calendar at all.

How to Reproduce

  1. Create a Calendar
  2. Create a Document
  3. Reference the Calendar in the new document
  4. Navigate to the Calendar
  5. Add an event
  6. Change type of the field Date to Text
  7. Change name of the field Date to Hello
  8. Change value of the field Date to World
  9. Navigate to the Document
  10. Event is missing
  11. Navigate back to the Calendar
  12. Try to add an event but nothing happens

Expected Behavior

  1. Create a Calendar
  2. Create a Document
  3. Reference the Calendar in the new document
  4. Navigate to the Calendar
  5. Add an event
  6. The Date fields name and type cannot be changed

Operating System

Windows

AppFlowy Version(s)

0.2.5

Screenshots

No response

Additional Context

Just changing the Date field type to anything other than Date is enough to cause the bug.

Xazin avatar Jul 03 '23 05:07 Xazin

Hello @Xazin, I'll be working on this. I also realize the date field can be deleted as well which is definitely undesired behavior.

richardshiue avatar Jul 04 '23 02:07 richardshiue

cannot reproduce it on macOS closing it for now

annieappflowy avatar Apr 01 '24 07:04 annieappflowy