Skip to content

feat: add event reference provider and widget#8048

Open
mejo- wants to merge 1 commit intomainfrom
feat/event_reference_provider
Open

feat: add event reference provider and widget#8048
mejo- wants to merge 1 commit intomainfrom
feat/event_reference_provider

Conversation

@mejo-
Copy link
Member

@mejo- mejo- commented Mar 8, 2026

Fixes: #7104

Screenshot

image

@mejo- mejo- requested a review from hamza221 March 8, 2026 20:38
@mejo- mejo- self-assigned this Mar 8, 2026
@mejo- mejo- added 2. developing Work in progress enhancement New feature request labels Mar 8, 2026
@codecov
Copy link

codecov bot commented Mar 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@mejo- mejo- force-pushed the feat/event_reference_provider branch 2 times, most recently from fdd5263 to 7856804 Compare March 8, 2026 20:45
Fixes: #7104

Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- force-pushed the feat/event_reference_provider branch from 7856804 to ae2ecc3 Compare March 8, 2026 20:46
@mejo- mejo- changed the title feat: add event reference provider and widget for feat: add event reference provider and widget Mar 8, 2026
private readonly IL10N $l10n,
private readonly IURLGenerator $urlGenerator,
private readonly IManager $calendarManager,
private CalDavBackend $calDavBackend,
Copy link
Member

Choose a reason for hiding this comment

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

This should be made backend agnostic, and use OCP\ICalendar\IManager::getCalendarsForPrincipal in the getCalendar method, and OCP\Calendar\ICalendar\search in the getEventData method.

<style lang="scss" scoped>
.event {
width: 100%;
padding-inline: 12px;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
padding-inline: 12px;
padding-inline: calc(var(--default-grid-baseline) * 3);

Copy link
Contributor

@GVodyanov GVodyanov left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

Please use our CSS variables instead of custom values for padding/margin/gap/etc.

You can check them out here https://docs.nextcloud.com/server/latest/developer_manual/html_css_design/css.html

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

Labels

2. developing Work in progress enhancement New feature request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reference provider for appointments

3 participants