0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
discourse/plugins/discourse-calendar
Kris 80df3e2154
UX: hide timeline for livestream topics, make layout more reliable (#42209)
Livestream topics need as much space as possible because they have an
added chat sidebar. This change adds a transformer that allows the
plugin to use the progress bar instead of the timeline, which saves a
good amount of space while still allowing navigation through many posts.

This also solves a minor issue when entering 20+ posts deep into a
livestream topic would prevent you from getting the livestream layout
(hidden avatar) when viewing OP.

<img width="3012" height="1724" alt="image"
src="https://github.com/user-attachments/assets/2576ce2b-b900-4c58-bf25-9c611f9659e4"
/>
2026-07-31 10:16:52 -04:00
..
app SECURITY: Remove stale invitee access for users removed from invited groups on private events (#42187) 2026-07-30 15:15:46 -05:00
assets UX: hide timeline for livestream topics, make layout more reliable (#42209) 2026-07-31 10:16:52 -04:00
config FEATURE: Promote Ideas & Events category types to permanent status (#42080) 2026-07-29 09:20:40 +10:00
db FIX: Cook event location and description as inline markdown (#41994) 2026-07-28 18:59:23 +02:00
jobs FEATURE: Embedded Zoom webinar for livestream events (#40973) 2026-07-16 10:58:56 +10:00
lib SECURITY: Remove stale invitee access for users removed from invited groups on private events (#42187) 2026-07-30 15:15:46 -05:00
spec UX: hide timeline for livestream topics, make layout more reliable (#42209) 2026-07-31 10:16:52 -04:00
test/javascripts UX: keep livestream chat position throughout whole topic (#42193) 2026-07-31 10:02:53 +10:00
vendor/holidays DEV: Add 2026 Singapore holidays (#40318) 2026-05-27 06:59:10 +08:00
.prettierignore
about.json UX: improve livestream chat messaging (#41750) 2026-07-21 11:07:31 +10:00
package.json
plugin.rb UX: hide timeline for livestream topics, make layout more reliable (#42209) 2026-07-31 10:16:52 -04:00
README.md
tsconfig.json

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.