#Scheduler issues (rrule + onDateChange)

10 messages · Page 1 of 1 (latest)

hollow kayak
#

Hei 🙂

First of all, huge thanks for the amazing work, especially the schedule component it’s really awesome.

I’m currently trying out the new schedule and ran into a couple of things.

  • When running tests (for a component that uses the schedule), I get the following error:
    SyntaxError: The requested module 'rrule' does not provide an export named 'RRule'

I’m using Vite 7 and Node v24 — am I doing something wrong, or could I be missing a dependency?

  • onDateChange seems to only return the start date.
    It would be very helpful, especially in the month view, to also have access to the start and end dates of the current view.

Would appreciate any hints or clarification — thanks a lot!

ivory snow
hollow kayak
#

Thanks a lot for the quick reply! 🙂
Yes, I’m using TypeScript. I was about to put together a small repo to reproduce the issue, but I’m currently running into some problems with jsdom. I’ll keep you updated once I’ve got something working.

hollow kayak
#

Hi again 🙂

I’ve put together a small repo to reproduce the issue: https://github.com/DanielBrommer/schedule-test

If run npm run vitest in this repo:

SyntaxError: The requested module 'rrule' does not provide an export named 'RRule'
 ❯ src/components/Welcome/Welcome.tsx:3:1
      1| import { Anchor, Text, Title } from '@mantine/core';
      2| import classes from './Welcome.module.css';
      3| import { Schedule } from '@mantine/schedule';
       | ^
      4|
      5| export function Welcome() { 

Additionally, I’ve noticed a couple of other small things:
In the month view, all-day events appear across two days.
When using onEventResize and onEventClick in the Schedule, it seems like onEventClick might also get triggered during a resize.

Thanks for your help!

GitHub

TEst. Contribute to DanielBrommer/schedule-test development by creating an account on GitHub.

ivory snow
hollow kayak
#

Thanks a lot for the quick fix, really appreciate it! 🫶

I’ve been experimenting with different time formats using dayjs (with and without timezone), but I couldn’t manage to get an all-day event to show on only a single day in the month view. Do you happen to have any hints or best practices for that?

Also, I noticed that the events now have an opacity of 0.1 (via --event-bg). Is there a recommended way to override that?

Happy to provide more info if needed. 🙂

ivory snow
hollow kayak
ivory snow
#

For events opacity:
You can set variant: 'filled' in the event to change variant