Commit Graph

50 Commits

Author SHA1 Message Date
Alan Guo Xiang Tan 1c61e4324f
PERF: Fix N+1 problem on `DiscoursePostEvent::EventsController#index` (#698) 2025-03-10 15:27:55 +08: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
Sam 647ba1ca7f
FEATURE: allow event editors to control list of users on the event (#614)
Previously event editors could remove people from an event but had no way
of acting on behalf of users in the event and adding them.

That meant that for events to properly show up in agenda and so on a user
must actively click a button.

In some cases (company ran events) the event manager may prefer controlling
attendance.
2024-10-14 08:59:23 +11:00
Loïc Guitaut 665d35f914 DEV: Fix new Rubocop offenses 2024-03-05 16:54:54 +01:00
Natalie Tay 84ef46a38c
SECURITY: Hide invitees from users who are not allowed to see the event post (#544) 2024-02-22 11:32:47 +08:00
Natalie Tay dfc4fa15f3
SECURITY: Disallow self invite to private events (#543) 2024-02-21 15:36:36 +08:00
Renato Atilio 189846f980
DEV: fix another time dependent flaky test (#529) 2024-01-18 11:24:43 -03:00
Renato Atilio b622e0f200
FEATURE: support upcomingDays parameter on the upcoming events list (#524)
Adds a before parameter to the events endpoint and uses it through a upcomingDays parameter to the upcoming events list component – which can be used when adding it to the right sidebar blocks theme component.
2024-01-17 21:54:39 -03:00
Jarek Radosz 2201b254ff
DEV: Update linting (#503) 2024-01-15 11:24:00 +00:00
Renato Atilio 9fe3eb2583
FEATURE: support count parameter on the events list component (#513)
* FEATURE: support count parameter on the events list component

* DEV: fix linting
2024-01-08 15:09:47 -03:00
Renato Atilio becfe9b2ad
FEATURE: site setting to include expired events on calendar views (#499)
* FEATURE: site setting to include expired events on calendar views

Adds a new site setting to include expired events on calendar views (Upcoming Events and Category Calendar).

Past events are displayed with the configured color (from the category or from the "Map events to color" site setting) as text and border colors instead of the background.
2023-12-12 19:10:54 -03:00
Renato Atilio b9188c4c16
DEV: optional include_details param for events' list (#496) 2023-12-08 22:01:04 -03:00
Natalie Tay f32d0e1851
FIX: Show sub category events (#478) 2023-11-11 00:16:15 +08: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
Jarek Radosz 548ccfba1d
DEV: Fix a spec tied to a specific year (#369)
The spec checks specific 2022 holidays, so it started to fail as soon as we entered 2023. 😉 Freezing the time to 2022 fixes the problem.
2023-01-02 13:18:52 +01:00
Jan Cernik b9c8144e32
FEATURE: Add option to leave public events (#364) 2022-12-29 16:48:32 -03:00
David Taylor 3e9ab14bcd
DEV: Introduce syntax_tree for ruby formatting (#363) 2022-12-29 13:30:41 +01:00
Rafael dos Santos Silva b4c366b35d
DEV: Ruby 3.1 compat (#358) 2022-12-20 23:53:14 -03:00
Andrei Prigorshnev ca5ae3e7e0
SECURITY: Do not expose private group members (#345) 2022-11-14 18:18:15 +04:00
Andrei Prigorshnev e0efb16264
DEV: Drop hidden setting which was making holiday status public (#337) 2022-10-28 14:51:35 +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
Frank 6820f7a433
Feature/sort by event start date (#320)
FEATURE:
 - Added custom fields `sort_topics_by_event_start_date` and `disable_topic_resorting`
 - Sort topics of event categories by event start date. Event categories have custom field `sort_topics_by_event_start_date` set to true.
 - Disable re-sorting of categories with custom field `disable_topic_resorting`
 - Event date displayed beside the Topic title can optionally be set to show the local date-time, instead of relative date-time.
 -
2022-09-23 06:02:48 +08:00
Shaun d31e07c01c
Allow admins to enable and disable holidays (#283)
* DEV: Add backend functionality to enable/disable holidays

This will add two backend endpoints, one to disable holidays and
another to enable holidays.

I also introduced a new `Holiday` service that is responsible for
getting the holidays and attaching a new `disabled` attribute to the
holidays. The `#index` action has been updated to use this new service,
so it will return this new `disabled` attribute.

* DEV: Only add enabled holidays to the calendar

I updated this job so that it will use the new `Holiday` service, which
will return the holidays like before but with a new `disabled` field,
which this job will use to only add enabled holidays to the calendar.

* FEATURE: Allow admins to disable/enable holidays

The main thing I added here is a new component `admin-holiday-list-item`
that is responsible for displaying a holiday, and an enable or disable
button and the corresponding functionality.
2022-06-28 19:43:20 -03:00
David Taylor 67b81b3d69
DEV: Add hidden setting which makes holiday status public (#288)
This is a temporary addition, pending a more radical refactoring of the holiday-emoji-flair system.
2022-06-17 18:26:42 +01:00
Shaun 910ce2dde6
FEATURE: Allow admins to view holidays by region (#275) 2022-06-03 13:26:14 -04:00
Penar Musaraj 0c48a4ea1d
DEV: Fix flakey spec (#271) 2022-05-17 13:04:08 -04:00
Shaun 0e154a62a0
DEV: Add API endpoints for holidays (#269)
Adds two new endpoints available to admins:
* `/admin/discourse-calendar/holiday-regions` - this will return a list of holiday regions (as defined by the Holidays gem)
* `/admin/discourse-calendar/holiday-regions/:id/holidays` - this will return all of the holidays for a given region
2022-05-17 10:26:19 -04:00
Arpit Jalan b900276fb1
FEATURE: add events calendar on the category page (#248)
* FEATURE: add events calendar on the category page

This commit adds a new site setting `events calendar category` for events calendar that is separate and independent from `calendar categories`. If a category is present in both `events calendar category` and `calendar categories` then priority is given to `calendar categories`.

* remove some jQuery usage

* rename `events_calendar_category` to `events_calendar_categories`

* add tests
2022-04-22 22:11:54 +05:30
Joffrey JAFFEUX 6b8f894006
DEV: fabricators are now autoloaded by core (#225) 2022-02-22 11:21:09 +01:00
Jordan Vidrine 8bd20e6636
UX: Add tabs to filter between different types of RSVPed guests (#174)
* UX: Adding tabs to invitees modal

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
2021-09-28 14:49:02 -05:00
jjaffeux ae6f7c9d25 FIX: custom fields are now part of markdown 2020-08-25 13:22:09 +02:00
jjaffeux 04abec77ca FIX: prevents custom fields to override raw_invitees
This commit also refactors specs to better test this behavior and enforces the validation of raw invitees.
2020-08-14 10:17:17 +02:00
jjaffeux 86dbc7d289 DEV: treats private invitees as public and only create them on attendance 2020-08-12 12:04:04 +02:00
jjaffeux ad57efb6fe REFACTOR: makes reminders to be in raw 2020-08-10 23:38:04 +02:00
jjaffeux da91f7417d FEATURE: allows to set reminder
Note that reminders; as custom fields, are only editable on created event and not when creating it.
2020-08-10 16:02:12 +02:00
jjaffeux 5c5ffdaaab FEATURE: allows to remove invitees from the modal listing them 2020-08-09 13:41:10 +02:00
jjaffeux 4e5fad6b4f FEATURE: inline bulk invite 2020-08-09 10:01:21 +02:00
jjaffeux a29b7ab270 FEATURE: syncs topic tracking with attendance 2020-08-04 08:39:19 +02:00
Joffrey JAFFEUX 1451a65f54
FEATURE: allows to bulk invite into events (#54) 2020-08-03 15:47:01 +02:00
Joffrey JAFFEUX c6b531d741
FEATURE: allows to add a url to an event (#52) 2020-08-03 08:58:52 +02:00
jjaffeux ea0dd41046 FIX: ensures we are updating the correct invitee 2020-05-10 17:27:44 +02:00
jjaffeux 8ccc7f3d85 FIX: ensures post event works when no user is logged in 2020-05-02 10:20:25 +02:00
jjaffeux 166d5ff7ff FIX: post owner should be considered as any other invitable 2020-04-28 12:28:39 +02:00
jjaffeux cde452ca8e FEATURE: limits who can create/act on events based on groups 2020-04-12 09:36:12 +02:00
Joffrey JAFFEUX 03dfa04971
UX: only groups can be invited (#29) 2020-04-09 23:01:47 +02:00
Joffrey JAFFEUX 31dfaf4557
REFACTOR: removes display invitees option (#28) 2020-04-09 20:45:38 +02:00
Joffrey JAFFEUX 5665832fe7
REFACTOR: ensures consistent naming with discourse-post-event (#26) 2020-04-09 18:10:45 +02:00
jjaffeux fe6c2e6102 FEATURE: uses post_event date in op to decorate topic title 2020-03-27 21:37:38 +01:00
jjaffeux 2bf615cffc fix spec 2020-03-26 22:34:21 +01:00
Joffrey JAFFEUX 988b066ab5
FEATURE: implements initial support for post events (#24) 2020-03-26 14:11:33 +01:00