Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: add create event button to editor #567

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

poka-IT
Copy link

@poka-IT poka-IT commented May 15, 2024

Summary

This pull request introduces the following enhancements to the Discourse Calendar plugin:

  1. Event Creation Button Placement: The event creation button is now positioned in the same location as the previous plugin, ensuring a consistent user experience.
  2. Behavior Adjustment: The button now inserts the event text tag at the top of the message, regardless of the cursor position, improving usability.
  3. Configurable Categories: The list of categories where the button appears is configurable. Appears everywhere if not set, and nowhere if set to -1.

Implementation Details

  • The button's display logic has been refined to ensure it only appears in specified categories and on the first message of topics.
  • A new configuration option allows moderators to specify which categories should display the button.
  • Subcategories are automatically included if present.

Screenshots

image

image

These changes aim to improve the usability and configurability of the event creation button, making it more intuitive and flexible for different forum setups.


I'm sure this need to be review and improve by Discourse team, because it's my first Discourse plugin change.
This is actualy in production in https://forum.monnaie-libre.fr.

@poka-IT poka-IT changed the title feat: add create event button to editor FEATURE: add create event button to editor May 15, 2024
fix: add composerResized empty function

feat: conditionnal display button with settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant