discourse/plugins/discourse-calendar
Régis Hanol 0624fc2745
UX: Rework the event bulk invite modal (#40496)
Previously, the event bulk invite modal defaulted each row to "Not
interested" — the internal `unknown` attendance that the backend treated
as a "remove invitee" instruction (`destroy_all`) — so sending the
default silently un-invited people, and a successful CSV upload never
closed the modal.

This converts the modal to FormKit, defaults new rows to "Going", drops
`unknown` from both the UI and the backend (unrecognized attendances are
now skipped and logged), and closes the modal with a success toast after
a CSV upload.
2026-06-18 10:38:34 +02:00
..
app UX: Rework the event bulk invite modal (#40496) 2026-06-18 10:38:34 +02:00
assets UX: Rework the event bulk invite modal (#40496) 2026-06-18 10:38:34 +02:00
config UX: Rework the event bulk invite modal (#40496) 2026-06-18 10:38:34 +02:00
db/migrate DEV: Migrate discourse-livestream setting values to core calendar settings (#40673) 2026-06-10 14:04:08 +10:00
jobs UX: Rework the event bulk invite modal (#40496) 2026-06-18 10:38:34 +02:00
lib DEV: Incorporate the discourse-livestream plugin into discourse-calendar (#40466) 2026-06-09 11:30:58 +10:00
spec UX: Rework the event bulk invite modal (#40496) 2026-06-18 10:38:34 +02:00
test/javascripts FIX: Event image crashed the advanced post-event builder (#40798) 2026-06-11 13:24:36 -03:00
vendor/holidays DEV: Add 2026 Singapore holidays (#40318) 2026-05-27 06:59:10 +08:00
.prettierignore
package.json DEV: Add a script for generating external types in discourse-types (#37095) 2026-03-09 20:37:43 +01:00
plugin.rb SECURITY: Group timezone serialization leaks hidden group members (#40873) 2026-06-15 12:51:05 +01:00
README.md
tsconfig.json DEV: Add a script for generating external types in discourse-types (#37095) 2026-03-09 20:37:43 +01:00

Discourse Calendar

Adds the ability to create a dynamic calendar in the first post of a topic.

Topic discussing the plugin itself can be found here: https://meta.discourse.org/t/discourse-calendar/97376

Customization

Events

  • discourse_post_event_event_will_start this DiscourseEvent will be triggered one hour before an event starts
  • discourse_post_event_event_started this DiscourseEvent will be triggered when an event starts
  • discourse_post_event_event_ended this DiscourseEvent will be triggered when an event ends

Custom Fields

Custom fields can be set in plugin settings. Once added a new form will appear on event UI. These custom fields are available when a plugin event is triggered.

Holidays

See an incorrect or missing holiday? Familiarize yourself with the holiday definition Syntax. Then make your updates in the vendor/holiday/definitions directory.

Generate updated holidays as follows.

cd vendor/holidays

# Generate holiday definitions
rake generate:definitions

Install the plugin and switch to the discourse root(not the plugin directory).

# Collect all holiday regions into assets/javascripts/lib/regions.js
bin/rails javascript:update_constants

Interactions with Other Plugins

You can use an element of this plugin with the Right Sidebar Blocks component. You'll want to ensure the desired route is enabled via the events calendar categories setting. In Right Sidebar Block's settings, the block name will be upcoming-events-list, and the params use this syntax, for example MMMM D, YYYY.