Commit Graph

22 Commits

Author SHA1 Message Date
Alan Guo Xiang Tan a6d940770a
DEV: Bump rubocop-discourse to 3.8.0 (#643)
This commit resolves all `Lint/OrAssignmentToConstant` cop violations.
2024-11-15 06:43:27 +08:00
Joffrey JAFFEUX 557d00b886
FEATURE: keeps going invitees for recurring events (#632)
Prior to this fix when computing the next event date we were resetting the status of every invitees. The status will now only be reset for non going users.
2024-10-25 09:23:16 +09:00
Joffrey JAFFEUX d31933bf49
DEV: moves translatations under discourse_post_event (#627)
Various events in the life of this plugin have caused an over complicated key and duplicated keys. This commits attempts to regroup everything related to discourse_post_event under a top level `discourse_post_event` key, removes the `event_ui` level as it's not very clear, technically everything is UI. And finally attempts to remove the duplicates.
2024-10-23 14:06:09 +11:00
Joffrey JAFFEUX b4c4e4e0bc
DEV: migrate post event to glimmer (#615)
This commit is making two major changes:

- Move all the post event widgets code to glimmer
- Implement tracked models to ensure reactivity, many paths didn't have real reactivity atm and were mostly working by luck or the fact that widgets re-render a lot
---------

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
2024-10-22 12:38:40 +09:00
Régis Hanol 20a9fe4a39
FIX: BBCode parsing specs (#575)
Requires discourse/discourse#27173 to be merged.

Will add a `.discourse-compatibility` once merged.
2024-06-18 11:53:10 +02:00
Jarek Radosz 2201b254ff
DEV: Update linting (#503) 2024-01-15 11:24:00 +00:00
Krzysztof Kotlarek d873057af6
DEV: Replace deprecated min_trust_to_create_post (#505)
In https://github.com/discourse/discourse/pull/24740, `min_trust_to_create_topic` site setting was replaced by `create_topic_allowed_groups`. This PR replaces the former, deprecated one, with the latter.
2023-12-14 14:37:41 +11:00
Krzysztof Kotlarek 1c5beb4432
DEV: merge discourse post event settings to calendar (#490)
Before, site settings were divided into `discourse calendar` and `discourse events`.

This PR is merging them. Also, translation were moved under `discourse_calendar` key.
2023-12-07 08:59:08 +11:00
Ted Johansson ec7945d120
DEV: Replace deprecated queue_jobs site setting in tests (#464)
The #queue_jobs= method on site settings has been deprecated and replaced by Jobs.run_later! and Jobs.run_immediately!. This PR replaces usages in this plugin so we can remove the fallback in core.
2023-10-27 10:47:27 +08:00
Sam b6ea7363d0
FEATURE: allow every 4 weeks as an interval (#440)
This allows us to sync up 2 week and 4 week events, monthly goes out of
sync

Also fixes... test suite failing in Australia
2023-09-28 16:20:40 +10:00
Jarek Radosz 6761e2c84f
DEV: Clean up the plugin (#426) 2023-08-01 22:32:30 +02:00
Jan Cernik 6309490901
FIX: Don't set holiday user status for non-holiday calendars (#425) 2023-08-01 10:18:05 -03:00
Jan Cernik ef2751f916
FIX: Disable invitation notifications for recurrent events (#393) 2023-03-14 18:50:06 -03:00
Jan Cernik 0e3369e370
FEATURE: Option to configure the holiday emoji (#385)
This allows setting a custom emoji for the holiday status and changes the default from 🏝️ to 📅
2023-01-24 16:21:00 -03:00
Selase Krakani 35a2d0b498
FIX: Make users_on_holiday return type consistent (#373)
Return an empty array instead of nil when the plugin store has not yet
been populated with `users_on_holiday`.

At the moment, the `currently_away` report fails if the
`UpdateHolidayUsernames` never gets the chance to update `users_on_holiday`.
2023-01-10 12:22:44 +00:00
David Taylor 3e9ab14bcd
DEV: Introduce syntax_tree for ruby formatting (#363) 2022-12-29 13:30:41 +01:00
Jan Cernik f4f16d958e
FEATURE: Add option to bump topic (#344)
It allows you to set an auto-bump topic timer based on the start date of an event
2022-12-01 09:14:07 -03:00
Angus McLeod d5a493a61e
FIX: handle localised automatic group names in event validation (#352) 2022-11-29 09:36:00 +11:00
Andrei Prigorshnev 159cb657b7
FEATURE: set holiday status immediately when adding or updating calendar post (#338)
Before this, it took up to 10 minutes for status to update after posting on the calendar topic or editing an existing calendar topic post. Now status will be updating immediately.
2022-11-17 18:42:43 +04:00
Andrei Prigorshnev ca5ae3e7e0
SECURITY: Do not expose private group members (#345) 2022-11-14 18:18:15 +04:00
Andrei Prigorshnev ccb4993e57
FEATURE: when user is on holiday set user status in core (#333)
Before, the calendar plugin was setting this custom holiday flair in many places in Discourse. Starting from this PR, the calendar plugin will be setting user status in core instead.

Note that from now we start to show holiday's end date. If a user has several holiday events simultaneously (this can happen easily, for example, if a user is on vacation and today is a public holiday in their country), the date will be taken from the longest event.

Note also that there is an edge case that's not handled in this PR - if a user has several holidays one after another (let's say they are sick this week and has a vacation on the next week), it would be nice to show as the end date of the holiday the ending date of the second holiday. For now, the plugin uses the end date of the current holiday in such cases, but I'll improve it in one of the next PRs.

Also, in this PR, I directly use methods of the user model from Core. We definitely need API calls instead. This fix is also coming soon.
2022-10-24 16:57:53 +04:00
David Taylor 6f16ae10dc
DEV: Bump rubocop-discourse (#328)
* DEV: Bump rubocop-discourse

* Fix rubocop violations
2022-10-03 22:19:41 +02:00