rreganjr / chichi-ng

component library for angular
MIT License
0 stars 0 forks source link

[Bug]: Sample/test data not appearing #44

Closed rreganjr closed 2 years ago

rreganjr commented 2 years ago

Chichi-ng Version

not listed

Angular Version

13.1

Description

None of the test agenda items appear. In the console for every addAgendaItem() it reports Item out of bounds. The boundsInterval start/end aren't defined in the scheduler-service before the makeTestData() is called in ngOnInit() in the event-scheduler component of the demo.

Expected Behavior

Agenda items with valid start/end relative to the defined start/end date in the event-scheduler component should be successfully added to the scheduler service.

If the bounds aren't configured yet an error should be reported/thrown.

there should be a way to configure the bounds so agenda items can be added before the event-scheduler component ngAfterViewInit() phase.

Actual Behavior

the scheduler service doesn't know the bounds before the ngAfterViewInit() phase and logs the added agenda items as out of bounds.

rreganjr commented 2 years ago

In visual-scheduler check that the timescale is defined before using it and thrown an error if not. In addAgendaItem service instead of logging on errors, throw errors. In demo event-scheduler makeTestData() log the errors for now