Commit Graph

227 Commits

Author SHA1 Message Date
yflory 95cdae304d Fix wrong month name in yearly recurring events #1398 2024-01-30 15:54:49 +01:00
zuzanna-maria 3efb3f6773 fixes datepicker not opening after date is selected 2024-01-24 14:53:57 +00:00
zuzanna-maria 95497ebe02 lint compliance 2024-01-08 12:36:08 +01:00
zuzanna-maria 8c32493a01 calendar datepicker on mobile now easily toggled #1084 2024-01-08 12:27:40 +01:00
David Benque 1c77d0699f Remove hard-coded translation strings 2023-12-14 10:44:23 +00:00
yflory d51bd92aa6 Merge branch 'feature-calendar-description' into staging 2023-12-13 15:38:47 +01:00
yflory 3da0eec8a7 Merge branch 'fixTimeZone' into staging 2023-12-13 15:13:14 +01:00
yflory ae11088b8a Merge branch 'staging' into toolbar 2023-12-13 14:19:43 +01:00
David Benque 3593b44e9f Remove //XXX 2023-12-12 15:24:49 +00:00
Fabrice Mouhartem c11f946379 Code cleanup
Remove `XXX` comments related to PRs #1308 and #1312
2023-12-12 10:58:18 +01:00
Fabrice Mouhartem a24bc397a6 Lint compliance 2023-12-07 18:10:59 +01:00
Fabrice Mouhartem 4163bd8b30 Replace “Location:” with an icon and remove the “Description:” text in the popup
Related to #1299 + #1171
2023-12-06 17:22:11 +01:00
Fabrice Mouhartem 38d350319b Uniform background color for fields in dark mode
Related to #1299 + #1171
2023-12-06 17:21:52 +01:00
yflory 37debdb866 Merge branch 'staging' into toolbar-prototype 2023-12-05 15:40:16 +01:00
yflory 31c3148580 Apply accessibility changes to all dropdowns 2023-11-23 16:48:39 +01:00
yflory c64644568b Merge branch 'REUSE-license-info' into staging 2023-11-22 17:21:09 +01:00
yflory 0fc74d2367 Merge branch 'staging' into fixTimeZone 2023-11-10 17:20:40 +01:00
yflory e24703e4e6 Fix wrong event start/end time in calendar on Daylight Saving Time days 2023-11-10 11:17:20 -05:00
Fabrice Mouhartem ccf0b108de calendar export: duplicate import of ical.js
The module ical.js is now imported for the whole file and not just the
import part (as it it used in the export as well).
2023-11-10 16:27:26 +01:00
Fabrice Mouhartem 937c41aa49 Lint compliance
ICAL.js is not a require.js module and doesn't export anything, should
be anonyme.
2023-11-10 16:25:25 +01:00
yflory 7b86af5ac4 Fix calendar not loading after latest commit 2023-11-09 17:56:53 +01:00
yflory 0a1ac01a45 Fix date parser on Daylight Saving time day with 12h format #1011 2023-11-09 16:58:53 +01:00
yflory 714f017397
Merge pull request #1299 from cryptpad/feature-calendar-description
Feature: Add a description field for calendar events
2023-11-09 14:49:12 +01:00
David Benque e4efdca33d Fix event modal drop-downs
They were being cut-off as per #1280
Thank you @ansuz for the fix
2023-11-08 12:04:58 +00:00
yflory 210606758b Detect and compute timezone errors due to Daylight Saving Time 2023-11-06 13:28:28 +01:00
Fabrice Mouhartem 039cb9d598 #1171: Don't send changes in description everytime 2023-11-02 13:39:17 +01:00
Fabrice Mouhartem df1b59513b #1171: Fix a change in the variable names 2023-11-02 13:32:57 +01:00
Fabrice Mouhartem 4c80de725f #1171: Use of ical.js for line formatting while exporting 2023-11-02 11:58:55 +01:00
Fabrice Mouhartem 66a2815993 #1171: Alignment of the description content 2023-11-02 11:45:01 +01:00
Fabrice Mouhartem a6c01f5b7c #1171: Integration with #1275 2023-11-02 11:42:45 +01:00
Fabrice Mouhartem a56b3ace7a #1171: Use CodeMirror in the description edition 2023-11-02 11:37:26 +01:00
Fabrice Mouhartem a2d0aad4a2 #1171: Bug with recurring events
An issue when getting back the content of an edited only recurring event
2023-11-02 11:37:25 +01:00
Fabrice Mouhartem 9b2f565c19 #1171: rename badly named variable
body was a wrong choice of name
2023-11-02 11:37:24 +01:00
Fabrice Mouhartem 6b7eedde22 #1171: Use the ical.js implementation for foldline
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.
2023-11-02 11:35:29 +01:00
Fabrice Mouhartem b9e698ef14 #1171: Cleaning code 2023-11-02 11:35:29 +01:00
Fabrice Mouhartem 00c1323f07 #1171: ICS line wrapping for descriptions in export
Descriptions can be long and RFC5545 states that a line shouldn't be
more than 75 bytes long.
2023-11-02 11:35:29 +01:00
Fabrice Mouhartem 087f786f9f #1171: Add translation keys
* Inlined at the beginning of `www/calendar/inner.js` for future
  integration in weblate on release.
2023-11-02 11:35:25 +01:00
Fabrice Mouhartem fba0ccd032 Lint compliance
Lint compliance for the calendar description field (#1171)
2023-11-02 11:34:52 +01:00
Fabrice Mouhartem 8c3c3d8d51 #1171: Render markdown with diffMK for details popup
* 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
```
2023-11-02 11:34:52 +01:00
Fabrice Mouhartem d61b8376cc #1171: fix no scroll in long descriptions 2023-11-02 11:34:52 +01:00
Fabrice Mouhartem 7ceca7d4af #1171: Rename description with body
* 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>
2023-11-02 11:34:50 +01:00
Fabrice Mouhartem 398df9d58f #1171: Calendar ICS import and export handle the `description` field 2023-11-02 11:29:07 +01:00
Fabrice Mouhartem bbb4a46e0f #1171: Fix nowrap in textareas 2023-11-02 11:29:00 +01:00
Fabrice Mouhartem 53ad4f5a25 #1171: The `textarea` is showing and is working as intended for the purpose 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.
2023-11-02 11:28:46 +01:00
yflory c354abb1e2 Fix calendar single event treated as recurrent 2023-10-31 16:01:37 +01:00
Fabrice Mouhartem dc522517c7 calendar: avoid warning disappearance
#1275: forgot to handle the case where a user changes its option, which
made the warning disappear…
2023-10-26 09:40:27 +02:00
Fabrice Mouhartem 4184a15d2d #1275: typo 2023-10-26 09:40:27 +02:00
Fabrice Mouhartem 31cb79548b calendar: Improve warnings when changing recurring events' calendar
Related to issue #1275's changes.
2023-10-26 09:40:27 +02:00
Fabrice Mouhartem 76101cc74c calendar: Use variables instead of inline test for readability
WIP for #1275
2023-10-26 09:40:27 +02:00
Fabrice Mouhartem ec6e1a030f calendar: confirmation dialog changes in case of changing calendar for recurring events
#1275: given the current implementation of recurring event, it is not
possible to move a group of events from a calendar to another.

- Disabling « Future event » if the user tries to move a recurring event
  from a calendar to another.
- Show a warning upon moving the first event to another calendar
  explaining why the user can only move the all events.
- Add a translation key for the above.
2023-10-26 09:40:27 +02:00