Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Calendar: add extension points for plugins - #6137

Open
iprokhorov wants to merge 1 commit into
kimai:mainfrom
dkd:feature/calender-extension-points-for-plugins
Open

Calendar: add extension points for plugins#6137
iprokhorov wants to merge 1 commit into
kimai:mainfrom
dkd:feature/calender-extension-points-for-plugins

Conversation

@iprokhorov

@iprokhorov iprokhorov commented Aug 18, 2026

Copy link
Copy Markdown

Description

Dispatch custom events so plugins can hook into the calendar rendering without modifying the core:

  • kimai.calendar.eventContent: allows manipulating an event's DOM element directly in eventDidMount (e.g. adding badges or icons)
  • kimai.calendar.eventPopover: allows injecting additional HTML into the event popover content in renderEventPopoverContent

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I verified that my code applies to the guidelines (composer code-check)
  • I updated the documentation (see here)
  • I agree that this code is used in Kimai (see license)

@CLAassistant

CLAassistant commented Aug 18, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@iprokhorov

Copy link
Copy Markdown
Author

https://github.com/kimai/www.kimai.org/tree/main/_documentation documentation unavailable

@iprokhorov
iprokhorov force-pushed the feature/calender-extension-points-for-plugins branch from cd1d9a2 to be6b7e1 Compare August 18, 2026 21:54
Dispatch custom events so plugins can hook into the calendar rendering
without modifying the core:
- `kimai.calendar.eventContent`: allows manipulating an event's DOM
  element directly in `eventDidMount` (e.g. adding badges or icons)
- `kimai.calendar.eventPopover`: allows injecting additional HTML into
  the event popover content in `renderEventPopoverContent`
@iprokhorov
iprokhorov force-pushed the feature/calender-extension-points-for-plugins branch from be6b7e1 to 8ce8631 Compare August 21, 2026 09:25
@iprokhorov

Copy link
Copy Markdown
Author

@kevinpapst could you please take a look on this?

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused changes safely provide the described extension points without unresolved issues.

Pull request overview

Adds plugin extension points to calendar event rendering.

Changes:

  • Dispatches events for DOM and popover customization.
  • Exposes timesheet metadata to listeners.
  • Sanitizes injected popover HTML.
File summaries
File Description
assets/js/widgets/KimaiCalendar.js Adds calendar plugin hooks and metadata exposure.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@kevinpapst

Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants