Commit Graph

117 Commits

Author SHA1 Message Date
Richard Steinmetz 5ad0b84810
test: replace \Safe\DateTimeImmutable with \DateTimeImmutable
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2024-04-17 08:31:01 +02:00
Anna Larch 0176063a82 fix(appointments): slot generation deviation for increments that don't fit modulo
Signed-off-by: Anna Larch <anna@nextcloud.com>
2024-03-07 16:25:13 +01:00
Anna Larch e49e4a6e94 fix(appointments): Decide rounding by increment OR length
Signed-off-by: Anna Larch <anna@nextcloud.com>
2024-03-04 20:36:46 +01:00
Anna Larch 37b2047242 fix(appointments): allow 5 minute increments for rounding in slot bookings
Signed-off-by: Anna Larch <anna@nextcloud.com>
2024-02-14 14:09:19 +01:00
Anna Larch 9d54b96c24 enh(appointments): add moar debug logging and overwrite app id
Signed-off-by: Anna Larch <anna@nextcloud.com>
2024-02-12 16:00:37 +01:00
escoand 5ac3078e6d use two different entry points
Signed-off-by: escoand <escoand@users.noreply.github.com>
2023-12-12 11:17:28 +01:00
Jonas Heinrich df2d51b666 feat: Ability to invite circles
This commit adds support for adding circles as attendees to a calendar event.
The relationship between the imported group and members will be compliant with
the iCal specification.

A circle with the title "testcircle" will be added as an attendee with iCal
attributes "CUTYPE=GROUP` and uri "mailto:circle+CIRCLEID@CIRCLE_INSTANCE".

Members of the circle will be imported as standard attendees. Each member gets
assigned to the circle group entry by assigning them to the group uri using the
iCal member property: "MEMBER='mailto:circle+CIRCLEID@CIRCLE_INSTANCE'".

Searching for circles is only enabled if the circles app is activated.

Circles added to the list of attendees get imported only once and are not
synced yet. While adding a circle, a notice about this is shown to the user.
Only members of local circles which are local users get imported.

Rendering groups in the frontend is done in a separate PR
https://github.com/nextcloud/calendar/pull/5396

Signed-off-by: Jonas Heinrich <heinrich@synyx.de>
2023-12-04 18:33:36 +01:00
Anna Larch 496896a34d fix: add VTIMEZONE to Appointments
Signed-off-by: Anna Larch <anna@nextcloud.com>
2023-11-07 13:18:50 +01:00
Daniel Kesselberg 3b5ecd08ff
fix: dont forward internal exceptions
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2023-10-30 14:51:30 +01:00
hamza221 8bbf4d280c revert unecessary refactoring of getDisplayName()
Signed-off-by: hamza221 <hamzamahjoubi221@gmail.com>
2023-10-06 16:26:27 +02:00
hamza221 732bf1aa64 use \OCP\IUserManager::getDisplayName
Signed-off-by: hamza221 <hamzamahjoubi221@gmail.com>
2023-10-04 23:01:21 +02:00
Anna Larch eae6deada2 revert: Augment the category menu by system tags and already used categories
Ref b3af4c3

Signed-off-by: Anna Larch <anna@nextcloud.com>
2023-09-28 17:15:32 +02:00
Christoph Wurst faa1c72e23
Revert "Revert "Create Talk rooms for appointments""
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-08-14 16:30:53 +02:00
Richard Steinmetz 814980e9f3
chore(tests): harden assertions in view controllers
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2023-08-01 18:11:30 +02:00
Anna Larch 488d8f6437 chore: add integration tests to CI
Signed-off-by: Anna Larch <anna@nextcloud.com>
2023-07-03 15:56:01 +02:00
Christoph Wurst 49e6bd2a97
chore: Set up static analysis
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-06-29 15:36:28 +02:00
Claus-Justus Heine b3af4c3507
Augment the category menu by system tags and already used categories.
This commit add all available "collaborative tags" and all already used
categories into option groups of the tags-menu of the side-bar editor.

This commit addresses and is a related to a couple of open issues:

nextcloud/calendar#3735 Calendar Categories: Propose Categories already used

- this should be fixed by this commit

nextcloud/calendar#1644 Add own categories, delete default ones

- this is partly fixed in the sense that collaboritive tags are now also
  proposed as calendar categories.
- still default categories cannot be deleted
- however, using option groups one at least has some sort of overview
  about the origin of the proposed category

nextcloud/server#29950 Save VEVENT CATEGORIES as vcategory

- this issue is totally "ignored" by this commit as the proposed
  solution there is not needed (the categories are already there in the
  oc_calendarobject_props table)
- that would have to be discussed there: but my impression that the
  tables and classed mentioned there are obsolete and no longer used.

Co-authored-by: Anna <anna@nextcloud.com>
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
2023-06-28 15:34:11 +02:00
Christoph Wurst 5b9c8796e9
Revert "Create Talk rooms for appointments"
This reverts commit 74fc70d71e.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-06-12 08:43:13 +02:00
Christoph Wurst c88cb60b81 fix: Allow dynamic autoloading for classes added during upgrade
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-06-09 12:25:22 +02:00
Thomas Citharel 3a42cf6ced
fix(Public-Sharing): Show footer with server details and eventual ToS through PublicTemplateResponse
The public calendar view used 'base' Template responses, preventing the footer that's being used on other public sharing pages from showing. This makes use of PublicTemplateResponse to show it automatically. It's however hidden on embed view.

Reference: https://help.nextcloud.com/t/feature-request-impressum-and-privacy-declaration-links/161162
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-05-02 11:30:16 +02:00
Christoph Wurst 74fc70d71e
Create Talk rooms for appointments
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-04-20 15:20:43 +02:00
Richard Steinmetz b28ab94c1b
chore: composer run cs:fix
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2023-04-19 10:18:28 +02:00
Richard Steinmetz a61f7a9155
fix(appointments): calendar booking notifications
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2023-03-06 09:32:29 +01:00
Anna Larch aefd8fc07e Add booking notifications
Signed-off-by: Anna Larch <anna@nextcloud.com>
2023-02-20 17:12:25 +01:00
Richard Steinmetz f97e970d59
Merge pull request #4251 from sazanof/enh/attachements-to-events
Add attachments to events
2023-02-15 17:57:24 +01:00
Mikhail Sazanov 9d964452e5 Add attachments to events
Signed-off-by: Mikhail Sazanov <m@sazanof.ru>
2023-02-15 18:45:53 +03:00
Anna Larch fc01bfd9b5 Refine exception handling for booking controller
Signed-off-by: Anna Larch <anna@nextcloud.com>
2023-02-01 12:08:27 +01:00
Daniel Kesselberg 040e66154b
chore!: drop support for PHP 7.4
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2023-01-02 21:40:18 +01:00
Christoph Wurst 9efe190f72
Merge pull request #4573 from ibpl/main-IB#1126265
Added parameter to hide option for calendar subscription via link
2022-10-31 12:06:21 +01:00
Pawel Boguslawski 0baaebc69a CI fixes
Fixes: ef4c1f920b
Related: https://github.com/nextcloud/calendar/pull/4573#issuecomment-1293498884
Author-Change-Id: IB#1126265
Signed-off-by: Pawel Boguslawski <pawel.boguslawski@ib.pl>
2022-10-28 16:20:17 +02:00
Anna 7edbe4c399
Merge pull request #4690 from e-foundation/enable-app-slowness-fix
Remove current view repair step
2022-10-28 12:02:16 +02:00
Anna Larch a5448476a3 Fix search results returning past events
for calendar widget

Signed-off-by: Anna Larch <anna@nextcloud.com>
2022-10-27 21:31:20 +02:00
Avinash Gusain 2c084474ba repair step removed
Signed-off-by: Avinash Gusain <avinashg@e.email>
2022-10-27 21:45:19 +05:30
Anna Larch 39cc2c818b Remove duplicate location in booking confirmation email
Fixes #4681

Signed-off-by: Anna Larch <anna@nextcloud.com>
2022-10-25 10:22:44 +02:00
Julien Veyssier 97681912d3 implement IButtonWidget and IIconWidget
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-10-17 13:02:49 +02:00
Anna Larch cabc0f7634 Add booking email with ics attachment
Signed-off-by: Anna Larch <anna@nextcloud.com>
2022-10-03 21:17:31 +02:00
Joas Schilling 74e64c8ecc
Fix coding style
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-08-05 08:59:41 +02:00
Anna Larch dc2be81d1d Add email validation and testing for booking
Signed-off-by: Anna Larch <anna@nextcloud.com>
2022-03-16 09:42:40 +01:00
Christoph Wurst dfa5e8fa18
Allow admins to force an event type
Any other value set by another client still shows up. This only
"enforces" the alarm type for those who only use the Calendar app.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-03-03 18:08:43 +01:00
Christoph Wurst 6bf4d07a3c
Allow admins to hide event exports
occ config:app:set calendar hide_event_download --value=yes

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-03-03 17:13:07 +01:00
Anna Larch 82acd3afd1 Check for TRANSP and CANCELLED property when conflict checking
Signed-off-by: Anna Larch <anna@nextcloud.com>
2021-12-02 15:15:51 +01:00
Christoph Wurst 693b1fb8a5
Log debug infos of appointment slots
The logic is a black box otherwise and impossible to debug in
production.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-11-29 14:15:40 +01:00
Christoph Wurst f88e39f507
Delete appointment configs when the user is deleted
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-11-25 16:06:34 +01:00
Anna Larch 508618780e
Change rounding logic to use interval instead of lenght
Signed-off-by: Anna Larch <anna@nextcloud.com>
2021-11-25 16:06:34 +01:00
Christoph Wurst 26e40b684f
Fix tests
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-11-25 16:06:33 +01:00
Christoph Wurst 8c63dc09f2
Format code
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-11-25 16:06:32 +01:00
Anna Larch fdac0052a5
Modify data structure of availability
Signed-off-by: Anna Larch <anna@nextcloud.com>
2021-11-25 16:06:32 +01:00
Anna Larch 34743dbb1a
Removed times 60 multiplier for appointments
Signed-off-by: Anna Larch <anna@nextcloud.com>
2021-11-25 16:06:32 +01:00
Anna Larch 3fe1fe790a
Add interval logic
Signed-off-by: Anna Larch <anna@nextcloud.com>
2021-11-25 16:06:32 +01:00
Anna Larch 9b21971a27
Add booking mechanism for apptments
Signed-off-by: Anna Larch <anna@nextcloud.com>
2021-11-25 16:06:32 +01:00