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

Feature: Add a description field for calendar events #1299

Merged
merged 19 commits into from
Nov 9, 2023

Conversation

Chouhartem
Copy link
Contributor

Note: Two new descriptions keys : calendar_desc and calendar_description are to be added upon version release.

@Chouhartem Chouhartem added Feature Request Something you want that isn't implemented Calendar Related to CryptPad internal calendar app labels Oct 20, 2023
@Chouhartem Chouhartem linked an issue Oct 20, 2023 that may be closed by this pull request
@davidbenque davidbenque added this to the 5.6.0 milestone Oct 20, 2023
@davidbenque davidbenque changed the title Feature: Add a description field for calendars Feature: Add a description field for calendar events Oct 20, 2023
Chouhartem and others added 16 commits November 2, 2023 11:28
…urpose of

creating and updating the calendar event.

BUG: carriage returns don't seem to work
WIP: the text is hardcoded as of now, have to use Messages library for
translations.
* Rename description in the schedule object
  -> Use the body property of [tui-calendar](https://github.com/nhn/tui.calendar/)
  for to show the description in the details popup :
  <https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/template.md#popupdetailbody>
* Sanitized markdown raises a warning:
```
marked(): sanitize and sanitizer parameters are deprecated since version
          0.7.0, should not be used and will be removed in the future.
            Read more here:
          https://marked.js.org/#/USING_ADVANCED.md#options
          marked.min.js:6:44783
```
Lint compliance for the calendar description field (#1171)
* Inlined at the beginning of `www/calendar/inner.js` for future
  integration in weblate on release.
Descriptions can be long and RFC5545 states that a line shouldn't be
more than 75 bytes long.
According to [RFC5545](https://www.rfc-editor.org/rfc/rfc5545#section-3.1):

```
  Note: It is possible for very simple implementations to generate
  improperly folded lines in the middle of a UTF-8 multi-octet
  sequence.  For this reason, implementations need to unfold lines
  in such a way to properly restore the original sequence.
```

It actually happens when an emoji takes the 75th and 76th bit.
body was a wrong choice of name
An issue when getting back the content of an edited only recurring event
@Chouhartem Chouhartem force-pushed the feature-calendar-description branch from 7a3279e to 66a2815 Compare November 2, 2023 10:45
@Chouhartem
Copy link
Contributor Author

Hello,

I rebased with staging, integrated the changes that have been made and add the following features:

  • Use Codemirror to edit the description field in a nice way.
  • Fix a bug when editing a recurring event

@Chouhartem Chouhartem requested a review from yflory November 2, 2023 10:47
@yflory yflory merged commit 714f017 into staging Nov 9, 2023
Chouhartem added a commit to Chouhartem/cryptpad that referenced this pull request Dec 6, 2023
Chouhartem added a commit to Chouhartem/cryptpad that referenced this pull request Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Calendar Related to CryptPad internal calendar app Feature Request Something you want that isn't implemented
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a description field to an event
3 participants